Skip to content

Commit cadd16a

Browse files
committedMar 10, 2025
Apply phpcs
1 parent c94e9e7 commit cadd16a

22 files changed

+41
-16
lines changed
 

Diff for: ‎src/DocBlock/Description/TaggedDescription.php

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public function __construct(iterable $components = [])
3737

3838
/**
3939
* @param iterable<mixed, object> $components
40+
*
4041
* @return list<TagInterface>
4142
*/
4243
private function getTagsFromComponents(iterable $components): array

Diff for: ‎src/DocBlock/Description/TaggedDescriptionInterface.php

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ interface TaggedDescriptionInterface extends
2727
* elements are defined.
2828
*
2929
* @var DescriptionInterface
30+
*
3031
* @readonly
3132
*/
3233
public iterable $components { get; }

Diff for: ‎src/DocBlock/DocBlock.php

+2
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ public function offsetGet(mixed $offset): ?TagInterface
6666

6767
/**
6868
* @internal direct usage of {@see offsetSet()} is not recommended
69+
*
6970
* @throws \BadMethodCallException
7071
*/
7172
public function offsetSet(mixed $offset, mixed $value): void
@@ -75,6 +76,7 @@ public function offsetSet(mixed $offset, mixed $value): void
7576

7677
/**
7778
* @internal direct usage of {@see offsetUnset()} is not recommended
79+
*
7880
* @throws \BadMethodCallException
7981
*/
8082
public function offsetUnset(mixed $offset): void

Diff for: ‎src/DocBlock/Polyfill/Description/TaggedDescriptionInterface.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
/**
1212
* @internal polyfill interface for the {@see \TypeLang\PHPDoc\DocBlock\Description\TaggedDescriptionInterface}
1313
*
14-
* @property-read \Traversable<array-key, DescriptionInterface|TagInterface> $components
15-
*
1614
* @template-extends \Traversable<array-key, DescriptionInterface|TagInterface>
15+
*
16+
* @property-read \Traversable<array-key, DescriptionInterface|TagInterface> $components
1717
*/
1818
interface TaggedDescriptionInterface extends
1919
DescriptionInterface,

Diff for: ‎src/DocBlock/Polyfill/Tag/InvalidTagInterface.php

-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,3 @@
1313
*/
1414
interface InvalidTagInterface extends
1515
TagInterface {}
16-

Diff for: ‎src/DocBlock/Tag/InvalidTagInterface.php

-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,3 @@ interface InvalidTagInterface extends TagInterface
1616
*/
1717
public \Throwable $reason { get; }
1818
}
19-

Diff for: ‎src/DocBlock/Tag/MethodTag/MethodTag.php

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
* with a class or interface.
3737
*
3838
* ```
39+
*
3940
* * @method [static] <CallableType> [<description>]
4041
* * @method [static] <ReturnType> <CallableType> [<description>]
4142
* * @method [static] <CallableType>: <ReturnType> [<description>]

Diff for: ‎src/DocBlock/Tag/OptionalVariableProviderInterface.php

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ interface OptionalVariableProviderInterface
1515
* entry does not contain a name.
1616
*
1717
* @var non-empty-string|null
18+
*
1819
* @readonly
1920
*/
2021
public ?string $variable { get; }

Diff for: ‎src/DocBlock/Tag/ParamTag/ParamTag.php

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
* limited to structural elements of type method or function.
2929
*
3030
* ```
31+
*
3132
* * @param [<Type>] $<variable> [<description>]
3233
* ```
3334
*/

Diff for: ‎src/DocBlock/Tag/PropertyTag/PropertyTag.php

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
* - Also @see PropertyWrite for "`@property-write`" tag implementation.
3535
*
3636
* ```
37+
*
3738
* * @property[<-read|-write>] [<Type>] $<name> [<description>]
3839
* ```
3940
*/

Diff for: ‎src/DocBlock/Tag/ReturnTag/ReturnTag.php

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
* structural elements of type method or function.
3131
*
3232
* ```
33+
*
3334
* * @return [<Type>] [<description>]
3435
* ```
3536
*/

Diff for: ‎src/DocBlock/Tag/TagInterface.php

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ interface TagInterface extends OptionalDescriptionProviderInterface, \Stringable
2121
* (Fully Qualified Name), as well as the '-' character.
2222
*
2323
* @var non-empty-string
24+
*
2425
* @readonly
2526
*/
2627
public string $name { get; }

Diff for: ‎src/DocBlock/Tag/TagsProviderInterface.php

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ interface TagsProviderInterface
1313
* Gets tags list for this object.
1414
*
1515
* @var iterable<array-key, TagInterface>
16+
*
1617
* @readonly
1718
*/
1819
public iterable $tags { get; }

Diff for: ‎src/DocBlock/Tag/TemplateExtendsTag/TemplateExtendsTag.php

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
/**
88
* ```
9+
*
910
* * @template-extends <Type> [<description>]
1011
* * @extends <Type> [<description>]
1112
* ```

Diff for: ‎src/DocBlock/Tag/TemplateExtendsTag/TemplateImplementsTag.php

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
/**
88
* ```
9+
*
910
* * @template-implements <Type> [<description>]
1011
* * @implements <Type> [<description>]
1112
* ```

Diff for: ‎src/DocBlock/Tag/TemplateTag/TemplateTag.php

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
/**
1212
* ```
13+
*
1314
* * @tempalte <name> ['of' <Type>] [<description>]
1415
* ```
1516
*/

Diff for: ‎src/DocBlock/Tag/ThrowsTag/ThrowsTag.php

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
* detailed view is created and the consumer knows for which errors to check.
2626
*
2727
* ```
28+
*
2829
* * @throws [<Type>] [<description>]
2930
* ```
3031
*/

Diff for: ‎src/DocBlock/Tag/VarTag/VarTag.php

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
* while several items are represented.
2727
*
2828
* ```
29+
*
2930
* * @var [<Type>] $<variable> [<description>]
3031
* ```
3132
*/

Diff for: ‎src/DocBlock/Tag/VariableProviderInterface.php

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ interface VariableProviderInterface extends OptionalVariableProviderInterface
1414
* this interface is attached.
1515
*
1616
* @var non-empty-string
17+
*
1718
* @readonly
1819
*/
1920
public string $variable { get; }

Diff for: ‎src/Parser/Content/Stream.php

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public function shift(int $offset, bool $ltrim = true): void
4949

5050
/**
5151
* @api
52+
*
5253
* @param callable(self):bool $context
5354
*/
5455
public function lookahead(callable $context): void

Diff for: ‎src/Parser/Tag/RegexTagParser.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44

55
namespace TypeLang\PHPDoc\Parser\Tag;
66

7-
use TypeLang\PHPDoc\DocBlock\Tag\UnknownTag;
87
use TypeLang\PHPDoc\DocBlock\Tag\Factory\TagFactory;
98
use TypeLang\PHPDoc\DocBlock\Tag\Factory\TagFactoryInterface;
10-
use TypeLang\PHPDoc\DocBlock\Tag\InvalidTag;
119
use TypeLang\PHPDoc\DocBlock\Tag\TagInterface;
10+
use TypeLang\PHPDoc\DocBlock\Tag\UnknownTag;
1211
use TypeLang\PHPDoc\Exception\InvalidTagNameException;
1312
use TypeLang\PHPDoc\Exception\RuntimeExceptionInterface;
1413
use TypeLang\PHPDoc\Parser\Description\DescriptionParserInterface;

Diff for: ‎src/polyfill.php

+20-10
Original file line numberDiff line numberDiff line change
@@ -10,40 +10,50 @@
1010

1111
\class_alias(
1212
Polyfill\Description\OptionalDescriptionProviderInterface::class,
13-
Description\OptionalDescriptionProviderInterface::class);
13+
Description\OptionalDescriptionProviderInterface::class,
14+
);
1415

1516
\class_alias(
1617
Polyfill\Description\DescriptionProviderInterface::class,
17-
Description\DescriptionProviderInterface::class);
18+
Description\DescriptionProviderInterface::class,
19+
);
1820

1921
\class_alias(
2022
Polyfill\Tag\OptionalTypeProviderInterface::class,
21-
Tag\OptionalTypeProviderInterface::class);
23+
Tag\OptionalTypeProviderInterface::class,
24+
);
2225

2326
\class_alias(
2427
Polyfill\Tag\TypeProviderInterface::class,
25-
Tag\TypeProviderInterface::class);
28+
Tag\TypeProviderInterface::class,
29+
);
2630

2731
\class_alias(
2832
Polyfill\Tag\OptionalVariableProviderInterface::class,
29-
Tag\OptionalVariableProviderInterface::class);
33+
Tag\OptionalVariableProviderInterface::class,
34+
);
3035

3136
\class_alias(
3237
Polyfill\Tag\VariableProviderInterface::class,
33-
Tag\VariableProviderInterface::class);
38+
Tag\VariableProviderInterface::class,
39+
);
3440

3541
\class_alias(
3642
Polyfill\Tag\TagsProviderInterface::class,
37-
Tag\TagsProviderInterface::class);
43+
Tag\TagsProviderInterface::class,
44+
);
3845

3946
\class_alias(
4047
Polyfill\Tag\TagInterface::class,
41-
Tag\TagInterface::class);
48+
Tag\TagInterface::class,
49+
);
4250

4351
\class_alias(
4452
Polyfill\Tag\InvalidTagInterface::class,
45-
Tag\InvalidTagInterface::class);
53+
Tag\InvalidTagInterface::class,
54+
);
4655

4756
\class_alias(
4857
Polyfill\Description\TaggedDescriptionInterface::class,
49-
Description\TaggedDescriptionInterface::class);
58+
Description\TaggedDescriptionInterface::class,
59+
);

0 commit comments

Comments
 (0)
Please sign in to comment.