Skip to content

Commit f8d4fda

Browse files
TomasVotrubajaapio
authored andcommitted
fix cs
1 parent e9e3528 commit f8d4fda

18 files changed

+54
-54
lines changed

src/DocBlock/Tag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ interface Tag
2020
public function getName(): string;
2121

2222
/**
23-
* @return Tag Class that implements Tag
23+
* @return Tag|mixed Class that implements Tag
2424
*/
2525
public static function create(string $body);
2626

tests/unit/DocBlock/StandardTagFactoryTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public function testPassingYourOwnSetOfTagHandlers(): void
147147
* @uses phpDocumentor\Reflection\DocBlock\StandardTagFactory::__construct
148148
* @uses phpDocumentor\Reflection\DocBlock\StandardTagFactory::addService
149149
*/
150-
public function testExceptionIsThrownIfProvidedTagIsNotWellformed() : void
150+
public function testExceptionIsThrownIfProvidedTagIsNotWellformed(): void
151151
{
152152
$this->expectException('InvalidArgumentException');
153153
$this->expectExceptionMessage('The tag "@user[myuser" does not seem to be wellformed, please check it for errors');
@@ -236,7 +236,7 @@ public function testRegisteringAHandlerForANewTag(): void
236236
* @uses phpDocumentor\Reflection\DocBlock\StandardTagFactory::__construct
237237
* @uses phpDocumentor\Reflection\DocBlock\StandardTagFactory::addService
238238
*/
239-
public function testHandlerRegistrationFailsIfProvidedTagNameIsNamespaceButNotFullyQualified() : void
239+
public function testHandlerRegistrationFailsIfProvidedTagNameIsNamespaceButNotFullyQualified(): void
240240
{
241241
$this->expectException('InvalidArgumentException');
242242
$resolver = m::mock(FqsenResolver::class);
@@ -249,7 +249,7 @@ public function testHandlerRegistrationFailsIfProvidedTagNameIsNamespaceButNotFu
249249
* @uses phpDocumentor\Reflection\DocBlock\StandardTagFactory::__construct
250250
* @uses phpDocumentor\Reflection\DocBlock\StandardTagFactory::addService
251251
*/
252-
public function testHandlerRegistrationFailsIfProvidedHandlerIsEmpty() : void
252+
public function testHandlerRegistrationFailsIfProvidedHandlerIsEmpty(): void
253253
{
254254
$this->expectException('InvalidArgumentException');
255255
$resolver = m::mock(FqsenResolver::class);
@@ -262,7 +262,7 @@ public function testHandlerRegistrationFailsIfProvidedHandlerIsEmpty() : void
262262
* @uses phpDocumentor\Reflection\DocBlock\StandardTagFactory::__construct
263263
* @uses phpDocumentor\Reflection\DocBlock\StandardTagFactory::addService
264264
*/
265-
public function testHandlerRegistrationFailsIfProvidedHandlerIsNotAnExistingClassName() : void
265+
public function testHandlerRegistrationFailsIfProvidedHandlerIsNotAnExistingClassName(): void
266266
{
267267
$this->expectException('InvalidArgumentException');
268268
$resolver = m::mock(FqsenResolver::class);
@@ -275,7 +275,7 @@ public function testHandlerRegistrationFailsIfProvidedHandlerIsNotAnExistingClas
275275
* @uses phpDocumentor\Reflection\DocBlock\StandardTagFactory::__construct
276276
* @uses phpDocumentor\Reflection\DocBlock\StandardTagFactory::addService
277277
*/
278-
public function testHandlerRegistrationFailsIfProvidedHandlerDoesNotImplementTheTagInterface() : void
278+
public function testHandlerRegistrationFailsIfProvidedHandlerDoesNotImplementTheTagInterface(): void
279279
{
280280
$this->expectException('InvalidArgumentException');
281281
$resolver = m::mock(FqsenResolver::class);

tests/unit/DocBlock/Tags/AuthorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function testHasTheAuthorMailAddress(): void
9898
/**
9999
* @covers ::__construct
100100
*/
101-
public function testInitializationFailsIfEmailIsNotValid() : void
101+
public function testInitializationFailsIfEmailIsNotValid(): void
102102
{
103103
$this->expectException('InvalidArgumentException');
104104
new Author('Mike van Riel', 'mike');

tests/unit/DocBlock/Tags/CoversTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public function testFactoryMethod(): void
149149
/**
150150
* @covers ::create
151151
*/
152-
public function testFactoryMethodFailsIfBodyIsNotEmpty() : void
152+
public function testFactoryMethodFailsIfBodyIsNotEmpty(): void
153153
{
154154
$this->expectException('InvalidArgumentException');
155155
$this->assertNull(Covers::create(''));

tests/unit/DocBlock/Tags/DeprecatedTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function testIfTagCanBeRenderedUsingSpecificFormatter(): void
7979
* @covers ::__construct
8080
* @covers ::getVersion
8181
*/
82-
public function testHasVersionNumber()
82+
public function testHasVersionNumber(): void
8383
{
8484
$expected = '1.0';
8585

@@ -93,7 +93,7 @@ public function testHasVersionNumber()
9393
* @covers \phpDocumentor\Reflection\DocBlock\Tags\BaseTag::getDescription
9494
* @uses \phpDocumentor\Reflection\DocBlock\Description
9595
*/
96-
public function testHasDescription()
96+
public function testHasDescription(): void
9797
{
9898
$expected = new Description('Description');
9999

@@ -107,7 +107,7 @@ public function testHasDescription()
107107
* @covers ::__toString
108108
* @uses \phpDocumentor\Reflection\DocBlock\Description
109109
*/
110-
public function testStringRepresentationIsReturned()
110+
public function testStringRepresentationIsReturned(): void
111111
{
112112
$fixture = new Deprecated('1.0', new Description('Description'));
113113

@@ -121,7 +121,7 @@ public function testStringRepresentationIsReturned()
121121
* @uses \phpDocumentor\Reflection\DocBlock\Description
122122
* @uses \phpDocumentor\Reflection\Types\Context
123123
*/
124-
public function testFactoryMethod()
124+
public function testFactoryMethod(): void
125125
{
126126
$descriptionFactory = m::mock(DescriptionFactory::class);
127127
$context = new Context('');

tests/unit/DocBlock/Tags/GenericTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function testFactoryMethod(): void
128128
/**
129129
* @covers ::create
130130
*/
131-
public function testFactoryMethodFailsIfNameIsNotEmpty() : void
131+
public function testFactoryMethodFailsIfNameIsNotEmpty(): void
132132
{
133133
$this->expectException('InvalidArgumentException');
134134
Generic::create('', '');
@@ -138,7 +138,7 @@ public function testFactoryMethodFailsIfNameIsNotEmpty() : void
138138
* @covers ::create
139139
* @covers ::__construct
140140
*/
141-
public function testFactoryMethodFailsIfNameContainsIllegalCharacters() : void
141+
public function testFactoryMethodFailsIfNameContainsIllegalCharacters(): void
142142
{
143143
$this->expectException('InvalidArgumentException');
144144
Generic::create('', 'name/myname');

tests/unit/DocBlock/Tags/MethodTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ public function testCollectionReturnTypes(
367367
/**
368368
* @covers ::create
369369
*/
370-
public function testFactoryMethodFailsIfBodyIsEmpty() : void
370+
public function testFactoryMethodFailsIfBodyIsEmpty(): void
371371
{
372372
$this->expectException('InvalidArgumentException');
373373
Method::create('');
@@ -376,7 +376,7 @@ public function testFactoryMethodFailsIfBodyIsEmpty() : void
376376
/**
377377
* @covers ::create
378378
*/
379-
public function testFactoryMethodReturnsNullIfBodyIsIncorrect() : void
379+
public function testFactoryMethodReturnsNullIfBodyIsIncorrect(): void
380380
{
381381
$this->expectException('InvalidArgumentException');
382382
$this->assertNull(Method::create('body('));
@@ -385,7 +385,7 @@ public function testFactoryMethodReturnsNullIfBodyIsIncorrect() : void
385385
/**
386386
* @covers ::create
387387
*/
388-
public function testFactoryMethodFailsIfResolverIsNull() : void
388+
public function testFactoryMethodFailsIfResolverIsNull(): void
389389
{
390390
$this->expectException('InvalidArgumentException');
391391
Method::create('body');
@@ -394,7 +394,7 @@ public function testFactoryMethodFailsIfResolverIsNull() : void
394394
/**
395395
* @covers ::create
396396
*/
397-
public function testFactoryMethodFailsIfDescriptionFactoryIsNull() : void
397+
public function testFactoryMethodFailsIfDescriptionFactoryIsNull(): void
398398
{
399399
$this->expectException('InvalidArgumentException');
400400
Method::create('body', new TypeResolver());
@@ -403,7 +403,7 @@ public function testFactoryMethodFailsIfDescriptionFactoryIsNull() : void
403403
/**
404404
* @covers ::__construct
405405
*/
406-
public function testCreationFailsIfBodyIsNotString() : void
406+
public function testCreationFailsIfBodyIsNotString(): void
407407
{
408408
$this->expectException('InvalidArgumentException');
409409
new Method([]);
@@ -412,7 +412,7 @@ public function testCreationFailsIfBodyIsNotString() : void
412412
/**
413413
* @covers ::__construct
414414
*/
415-
public function testCreationFailsIfBodyIsEmpty() : void
415+
public function testCreationFailsIfBodyIsEmpty(): void
416416
{
417417
$this->expectException('InvalidArgumentException');
418418
new Method('');
@@ -421,7 +421,7 @@ public function testCreationFailsIfBodyIsEmpty() : void
421421
/**
422422
* @covers ::__construct
423423
*/
424-
public function testCreationFailsIfStaticIsNotBoolean() : void
424+
public function testCreationFailsIfStaticIsNotBoolean(): void
425425
{
426426
$this->expectException('InvalidArgumentException');
427427
new Method('body', [], null, []);
@@ -430,7 +430,7 @@ public function testCreationFailsIfStaticIsNotBoolean() : void
430430
/**
431431
* @covers ::__construct
432432
*/
433-
public function testCreationFailsIfArgumentRecordContainsInvalidEntry() : void
433+
public function testCreationFailsIfArgumentRecordContainsInvalidEntry(): void
434434
{
435435
$this->expectException('InvalidArgumentException');
436436
new Method('body', [ [ 'name' => 'myName', 'unknown' => 'nah' ] ]);

tests/unit/DocBlock/Tags/ParamTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public function testFactoryMethod(): void
183183
* @uses \phpDocumentor\Reflection\TypeResolver
184184
* @uses \phpDocumentor\Reflection\DocBlock\DescriptionFactory
185185
*/
186-
public function testFactoryMethodFailsIfEmptyBodyIsGiven() : void
186+
public function testFactoryMethodFailsIfEmptyBodyIsGiven(): void
187187
{
188188
$this->expectException('InvalidArgumentException');
189189
$descriptionFactory = m::mock(DescriptionFactory::class);
@@ -193,7 +193,7 @@ public function testFactoryMethodFailsIfEmptyBodyIsGiven() : void
193193
/**
194194
* @covers ::create
195195
*/
196-
public function testFactoryMethodFailsIfResolverIsNull() : void
196+
public function testFactoryMethodFailsIfResolverIsNull(): void
197197
{
198198
$this->expectException('InvalidArgumentException');
199199
Param::create('body');
@@ -203,7 +203,7 @@ public function testFactoryMethodFailsIfResolverIsNull() : void
203203
* @covers ::create
204204
* @uses \phpDocumentor\Reflection\TypeResolver
205205
*/
206-
public function testFactoryMethodFailsIfDescriptionFactoryIsNull() : void
206+
public function testFactoryMethodFailsIfDescriptionFactoryIsNull(): void
207207
{
208208
$this->expectException('InvalidArgumentException');
209209
Param::create('body', new TypeResolver());

tests/unit/DocBlock/Tags/PropertyReadTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public function testFactoryMethod(): void
169169
* @uses \phpDocumentor\Reflection\TypeResolver
170170
* @uses \phpDocumentor\Reflection\DocBlock\DescriptionFactory
171171
*/
172-
public function testFactoryMethodFailsIfEmptyBodyIsGiven() : void
172+
public function testFactoryMethodFailsIfEmptyBodyIsGiven(): void
173173
{
174174
$this->expectException('InvalidArgumentException');
175175
$descriptionFactory = m::mock(DescriptionFactory::class);
@@ -179,7 +179,7 @@ public function testFactoryMethodFailsIfEmptyBodyIsGiven() : void
179179
/**
180180
* @covers ::create
181181
*/
182-
public function testFactoryMethodFailsIfResolverIsNull() : void
182+
public function testFactoryMethodFailsIfResolverIsNull(): void
183183
{
184184
$this->expectException('InvalidArgumentException');
185185
PropertyRead::create('body');
@@ -189,7 +189,7 @@ public function testFactoryMethodFailsIfResolverIsNull() : void
189189
* @covers ::create
190190
* @uses \phpDocumentor\Reflection\TypeResolver
191191
*/
192-
public function testFactoryMethodFailsIfDescriptionFactoryIsNull() : void
192+
public function testFactoryMethodFailsIfDescriptionFactoryIsNull(): void
193193
{
194194
$this->expectException('InvalidArgumentException');
195195
PropertyRead::create('body', new TypeResolver());

tests/unit/DocBlock/Tags/PropertyTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public function testFactoryMethod(): void
164164
* @uses \phpDocumentor\Reflection\TypeResolver
165165
* @uses \phpDocumentor\Reflection\DocBlock\DescriptionFactory
166166
*/
167-
public function testFactoryMethodFailsIfEmptyBodyIsGiven() : void
167+
public function testFactoryMethodFailsIfEmptyBodyIsGiven(): void
168168
{
169169
$this->expectException('InvalidArgumentException');
170170
$descriptionFactory = m::mock(DescriptionFactory::class);
@@ -174,7 +174,7 @@ public function testFactoryMethodFailsIfEmptyBodyIsGiven() : void
174174
/**
175175
* @covers ::create
176176
*/
177-
public function testFactoryMethodFailsIfResolverIsNull() : void
177+
public function testFactoryMethodFailsIfResolverIsNull(): void
178178
{
179179
$this->expectException('InvalidArgumentException');
180180
Property::create('body');
@@ -184,7 +184,7 @@ public function testFactoryMethodFailsIfResolverIsNull() : void
184184
* @covers ::create
185185
* @uses \phpDocumentor\Reflection\TypeResolver
186186
*/
187-
public function testFactoryMethodFailsIfDescriptionFactoryIsNull() : void
187+
public function testFactoryMethodFailsIfDescriptionFactoryIsNull(): void
188188
{
189189
$this->expectException('InvalidArgumentException');
190190
Property::create('body', new TypeResolver());

0 commit comments

Comments
 (0)