Fix code style

This commit is contained in:
Jaapio
2021-08-26 22:32:25 +02:00
parent c5e702d299
commit 6fa60f9f08
9 changed files with 13 additions and 12 deletions
-1
View File
@@ -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;
+1 -3
View File
@@ -42,9 +42,7 @@ class Serializer
/** @var Formatter A custom tag formatter. */
protected $tagFormatter;
/**
* @var string
*/
/** @var string */
private $lineEnding;
/**
-1
View File
@@ -21,7 +21,6 @@ interface Tag
/**
* @return Tag|mixed Class that implements Tag
*
* @phpstan-return ?Tag
*/
public static function create(string $body);
+1 -4
View File
@@ -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
View File
@@ -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>
+4
View File
@@ -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
+4
View File
@@ -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