Skip to content

Commit 591f593

Browse files
committed
code styles fixes only
1 parent 8c3953e commit 591f593

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/DocBlock.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,11 @@ public function getTagsWithTypeByName(string $name) : array
175175
$result = [];
176176

177177
foreach ($this->getTagsByName($name) as $tag) {
178-
if ($tag instanceof TagWithType) {
179-
$result[] = $tag;
178+
if (!$tag instanceof TagWithType) {
179+
continue;
180180
}
181+
182+
$result[] = $tag;
181183
}
182184

183185
return $result;

tests/unit/DocBlockTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
namespace phpDocumentor\Reflection;
1515

1616
use Mockery as m;
17-
use phpDocumentor\Reflection\DocBlock\Tags\Author;
1817
use phpDocumentor\Reflection\DocBlock\Tags\Deprecated;
1918
use phpDocumentor\Reflection\Types\Context;
2019
use phpDocumentor\Reflection\Types\String_;
@@ -23,7 +22,7 @@
2322
/**
2423
* @uses \Webmozart\Assert\Assert
2524
*
26-
* @coversDefaultClass phpDocumentor\Reflection\DocBlock
25+
* @coversDefaultClass \phpDocumentor\Reflection\DocBlock
2726
* @covers ::<private>
2827
*/
2928
class DocBlockTest extends TestCase

0 commit comments

Comments
 (0)