mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-17 17:47:13 +00:00
Fix code style
This commit is contained in:
@@ -17,7 +17,6 @@ use phpDocumentor\Reflection\Types\Context as TypeContext;
|
||||
use phpDocumentor\Reflection\Utils;
|
||||
|
||||
use function count;
|
||||
use function explode;
|
||||
use function implode;
|
||||
use function ltrim;
|
||||
use function min;
|
||||
|
||||
@@ -42,9 +42,7 @@ class Serializer
|
||||
|
||||
/** @var Formatter A custom tag formatter. */
|
||||
protected $tagFormatter;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
/** @var string */
|
||||
private $lineEnding;
|
||||
|
||||
/**
|
||||
|
||||
@@ -21,7 +21,6 @@ interface Tag
|
||||
|
||||
/**
|
||||
* @return Tag|mixed Class that implements Tag
|
||||
*
|
||||
* @phpstan-return ?Tag
|
||||
*/
|
||||
public static function create(string $body);
|
||||
|
||||
@@ -59,7 +59,6 @@ final class Method extends BaseTag implements Factory\StaticMethod
|
||||
|
||||
/**
|
||||
* @param array<int, array<string, Type|string>> $arguments
|
||||
*
|
||||
* @phpstan-param array<int, array{name: string, type: Type}|string> $arguments
|
||||
*/
|
||||
public function __construct(
|
||||
@@ -186,7 +185,6 @@ final class Method extends BaseTag implements Factory\StaticMethod
|
||||
|
||||
/**
|
||||
* @return array<int, array<string, Type|string>>
|
||||
*
|
||||
* @phpstan-return array<int, array{name: string, type: Type}>
|
||||
*/
|
||||
public function getArguments(): array
|
||||
@@ -239,10 +237,9 @@ final class Method extends BaseTag implements Factory\StaticMethod
|
||||
|
||||
/**
|
||||
* @param mixed[][]|string[] $arguments
|
||||
* @phpstan-param array<int, array{name: string, type: Type}|string> $arguments
|
||||
*
|
||||
* @return mixed[][]
|
||||
*
|
||||
* @phpstan-param array<int, array{name: string, type: Type}|string> $arguments
|
||||
* @phpstan-return array<int, array{name: string, type: Type}>
|
||||
*/
|
||||
private function filterArguments(array $arguments = []): array
|
||||
|
||||
+1
-1
@@ -14,8 +14,8 @@ declare(strict_types=1);
|
||||
namespace phpDocumentor\Reflection;
|
||||
|
||||
use phpDocumentor\Reflection\Exception\PcreException;
|
||||
|
||||
use Webmozart\Assert\Assert;
|
||||
|
||||
use function preg_last_error;
|
||||
use function preg_split as php_preg_split;
|
||||
|
||||
|
||||
@@ -22,6 +22,8 @@ use PHPUnit\Framework\TestCase;
|
||||
|
||||
use function str_replace;
|
||||
|
||||
use const PHP_EOL;
|
||||
|
||||
/**
|
||||
* @coversDefaultClass \phpDocumentor\Reflection\DocBlock\DescriptionFactory
|
||||
* @covers ::<private>
|
||||
|
||||
@@ -17,6 +17,10 @@ use Mockery as m;
|
||||
use phpDocumentor\Reflection\DocBlock;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
use function str_replace;
|
||||
|
||||
use const PHP_EOL;
|
||||
|
||||
/**
|
||||
* @coversDefaultClass \phpDocumentor\Reflection\DocBlock\Serializer
|
||||
* @covers ::<private>
|
||||
|
||||
@@ -462,7 +462,6 @@ class StandardTagFactoryTest extends TestCase
|
||||
|
||||
/**
|
||||
* @return string[][]
|
||||
*
|
||||
* @phpstan-return array<string, array<int, string>>
|
||||
*/
|
||||
public function validTagProvider(): array
|
||||
@@ -526,7 +525,6 @@ class StandardTagFactoryTest extends TestCase
|
||||
|
||||
/**
|
||||
* @return string[][]
|
||||
*
|
||||
* @phpstan-return list<array<int, string>>
|
||||
*/
|
||||
public function invalidTagProvider(): array
|
||||
|
||||
@@ -23,6 +23,10 @@ use phpDocumentor\Reflection\Types\Context;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use ReflectionClass;
|
||||
|
||||
use function str_replace;
|
||||
|
||||
use const PHP_EOL;
|
||||
|
||||
/**
|
||||
* @uses \Webmozart\Assert\Assert
|
||||
* @uses \phpDocumentor\Reflection\DocBlock
|
||||
|
||||
Reference in New Issue
Block a user