Skip to content

Commit 6fa60f9

Browse files
committed
Fix code style
1 parent c5e702d commit 6fa60f9

File tree

9 files changed

+13
-12
lines changed

9 files changed

+13
-12
lines changed

src/DocBlock/DescriptionFactory.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
use phpDocumentor\Reflection\Utils;
1818

1919
use function count;
20-
use function explode;
2120
use function implode;
2221
use function ltrim;
2322
use function min;

src/DocBlock/Serializer.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ class Serializer
4242

4343
/** @var Formatter A custom tag formatter. */
4444
protected $tagFormatter;
45-
/**
46-
* @var string
47-
*/
45+
/** @var string */
4846
private $lineEnding;
4947

5048
/**

src/DocBlock/Tag.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ public function getName(): string;
2121

2222
/**
2323
* @return Tag|mixed Class that implements Tag
24-
*
2524
* @phpstan-return ?Tag
2625
*/
2726
public static function create(string $body);

src/DocBlock/Tags/Method.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ final class Method extends BaseTag implements Factory\StaticMethod
5959

6060
/**
6161
* @param array<int, array<string, Type|string>> $arguments
62-
*
6362
* @phpstan-param array<int, array{name: string, type: Type}|string> $arguments
6463
*/
6564
public function __construct(
@@ -186,7 +185,6 @@ public function getMethodName(): string
186185

187186
/**
188187
* @return array<int, array<string, Type|string>>
189-
*
190188
* @phpstan-return array<int, array{name: string, type: Type}>
191189
*/
192190
public function getArguments(): array
@@ -239,10 +237,9 @@ public function __toString(): string
239237

240238
/**
241239
* @param mixed[][]|string[] $arguments
240+
* @phpstan-param array<int, array{name: string, type: Type}|string> $arguments
242241
*
243242
* @return mixed[][]
244-
*
245-
* @phpstan-param array<int, array{name: string, type: Type}|string> $arguments
246243
* @phpstan-return array<int, array{name: string, type: Type}>
247244
*/
248245
private function filterArguments(array $arguments = []): array

src/Utils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
namespace phpDocumentor\Reflection;
1515

1616
use phpDocumentor\Reflection\Exception\PcreException;
17-
1817
use Webmozart\Assert\Assert;
18+
1919
use function preg_last_error;
2020
use function preg_split as php_preg_split;
2121

tests/unit/DocBlock/DescriptionFactoryTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
use function str_replace;
2424

25+
use const PHP_EOL;
26+
2527
/**
2628
* @coversDefaultClass \phpDocumentor\Reflection\DocBlock\DescriptionFactory
2729
* @covers ::<private>

tests/unit/DocBlock/SerializerTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
use phpDocumentor\Reflection\DocBlock;
1818
use PHPUnit\Framework\TestCase;
1919

20+
use function str_replace;
21+
22+
use const PHP_EOL;
23+
2024
/**
2125
* @coversDefaultClass \phpDocumentor\Reflection\DocBlock\Serializer
2226
* @covers ::<private>

tests/unit/DocBlock/StandardTagFactoryTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,6 @@ public function testValidFormattedTags(string $input, string $tagName, string $r
462462

463463
/**
464464
* @return string[][]
465-
*
466465
* @phpstan-return array<string, array<int, string>>
467466
*/
468467
public function validTagProvider(): array
@@ -526,7 +525,6 @@ public function testInValidFormattedTags(string $input): void
526525

527526
/**
528527
* @return string[][]
529-
*
530528
* @phpstan-return list<array<int, string>>
531529
*/
532530
public function invalidTagProvider(): array

tests/unit/DocBlockFactoryTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
use PHPUnit\Framework\TestCase;
2424
use ReflectionClass;
2525

26+
use function str_replace;
27+
28+
use const PHP_EOL;
29+
2630
/**
2731
* @uses \Webmozart\Assert\Assert
2832
* @uses \phpDocumentor\Reflection\DocBlock

0 commit comments

Comments
 (0)