Skip to content

Commit eec5118

Browse files
committed
Update php-cs-fix configuration
1 parent 3560103 commit eec5118

15 files changed

+30
-15
lines changed

Contracts/AuthorityInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ public function components(): array;
5454
* A null value provided for the host is equivalent to removing the host
5555
* information.
5656
*
57-
* @throws SyntaxError for invalid component or transformations
58-
* that would result in an object in invalid state.
57+
* @throws SyntaxError for invalid component or transformations
58+
* that would result in an object in invalid state.
5959
* @throws MissingFeature for component or transformations
6060
* requiring IDN support when IDN support is not present
6161
* or misconfigured.

Contracts/UriInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,8 @@ public function withUserInfo(Stringable|string|null $user, Stringable|string|nul
234234
* A null value provided for the host is equivalent to removing the host
235235
* information.
236236
*
237-
* @throws SyntaxError for invalid component or transformations
238-
* that would result in an object in invalid state.
237+
* @throws SyntaxError for invalid component or transformations
238+
* that would result in an object in invalid state.
239239
* @throws MissingFeature for component or transformations
240240
* requiring IDN support when IDN support is not present
241241
* or misconfigured.

Encoder.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use League\Uri\Contracts\UriComponentInterface;
1818
use League\Uri\Exceptions\SyntaxError;
1919
use Stringable;
20+
2021
use function preg_match;
2122
use function preg_replace_callback;
2223
use function rawurldecode;

FeatureDetection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use finfo;
1717
use League\Uri\Exceptions\MissingFeature;
1818
use League\Uri\IPv4\Calculator;
19+
1920
use const PHP_INT_SIZE;
2021

2122
/**

IPv4/Calculator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function multiply(mixed $value1, mixed $value2);
4949
* Divide numbers.
5050
*
5151
* @param mixed $value The number being divided.
52-
* @param mixed $base The number that $value is being divided by.
52+
* @param mixed $base The number that $value is being divided by.
5353
*
5454
* @return mixed the result of the division
5555
*/
@@ -68,7 +68,7 @@ public function pow(mixed $value, int $exponent);
6868
* Returns the int point remainder (modulo) of the division of the arguments.
6969
*
7070
* @param mixed $value The dividend
71-
* @param mixed $base The divisor
71+
* @param mixed $base The divisor
7272
*
7373
* @return mixed the remainder
7474
*/

IPv4/Converter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use League\Uri\Exceptions\MissingFeature;
1717
use League\Uri\FeatureDetection;
1818
use Stringable;
19+
1920
use function array_pop;
2021
use function count;
2122
use function explode;

IPv4/GMPCalculator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
namespace League\Uri\IPv4;
1515

1616
use GMP;
17+
1718
use function gmp_add;
1819
use function gmp_cmp;
1920
use function gmp_div_q;
@@ -22,6 +23,7 @@
2223
use function gmp_mul;
2324
use function gmp_pow;
2425
use function gmp_sub;
26+
2527
use const GMP_ROUND_MINUSINF;
2628

2729
final class GMPCalculator implements Calculator

Idna/Converter.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@
1717
use League\Uri\Exceptions\SyntaxError;
1818
use League\Uri\FeatureDetection;
1919
use Stringable;
20+
2021
use function idn_to_ascii;
2122
use function idn_to_utf8;
2223
use function rawurldecode;
24+
2325
use const INTL_IDNA_VARIANT_UTS46;
2426

2527
/**
@@ -52,7 +54,7 @@ final class Converter
5254
*
5355
* @see Converter::toAscii()
5456
*
55-
* @throws SyntaxError if the string cannot be converted to UNICODE using IDN UTS46 algorithm
57+
* @throws SyntaxError if the string cannot be converted to UNICODE using IDN UTS46 algorithm
5658
* @throws ConversionFailed if the conversion returns error
5759
*/
5860
public static function toAsciiOrFail(Stringable|string $domain, Option|int|null $options = null): string

Idna/ConverterTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public static function toUnicodeProvider(): iterable
7171
'expectedDomain' => 'www.食狮.公司.cn',
7272
],
7373
'IDN to IDN domain' => [
74-
'domain' => new class() implements Stringable {
74+
'domain' => new class () implements Stringable {
7575
public function __toString(): string
7676
{
7777
return 'www.食狮.公司.cn';
@@ -117,7 +117,7 @@ public static function toAsciiProvider(): iterable
117117
'expectedDomain' => 'www.ulb.ac.be.',
118118
],
119119
'ASCII to ASCII domain' => [
120-
'domain' => new class() implements Stringable {
120+
'domain' => new class () implements Stringable {
121121
public function __toString(): string
122122
{
123123
return 'www.xn--85x722f.xn--55qx5d.cn';
@@ -153,7 +153,7 @@ public function testHostIsIDN(Stringable|string|null $host, bool $expected): voi
153153
public static function provideIDNUri(): iterable
154154
{
155155
yield 'ascii host' => [
156-
'host' => new class() implements Stringable {
156+
'host' => new class () implements Stringable {
157157
public function __toString(): string
158158
{
159159
return 'www.example.com';

Idna/OptionTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
namespace League\Uri\Idna;
1515

1616
use PHPUnit\Framework\TestCase;
17+
1718
use const IDNA_CHECK_BIDI;
1819
use const IDNA_NONTRANSITIONAL_TO_ASCII;
1920
use const IDNA_USE_STD3_RULES;

0 commit comments

Comments
 (0)