Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6f0a970

Browse files
committed
Apply coding standard fixes.
1 parent 0c9bee4 commit 6f0a970

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Symfony/Component/PropertyInfo/Extractor/PhpDocExtractor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public function getTypes($class, $property, array $context = array())
131131
$types = array();
132132
/** @var DocBlock\Tags\Var_|DocBlock\Tags\Return_|DocBlock\Tags\Param $tag */
133133
foreach ($docBlock->getTagsByName($tag) as $tag) {
134-
if ($tag && $tag->getType() !== null) {
134+
if ($tag && null !== $tag->getType()) {
135135
$types = array_merge($types, $this->phpDocTypeHelper->getTypes($tag->getType()));
136136
}
137137
}

src/Symfony/Component/PropertyInfo/Tests/Extractors/PhpDocExtractorTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function testExtract($property, array $type = null, $shortDescription, $l
3939
$this->assertSame($shortDescription, $this->extractor->getShortDescription('Symfony\Component\PropertyInfo\Tests\Fixtures\Dummy', $property));
4040
$this->assertSame($longDescription, $this->extractor->getLongDescription('Symfony\Component\PropertyInfo\Tests\Fixtures\Dummy', $property));
4141
}
42-
42+
4343
public function testParamTagTypeIsOmitted()
4444
{
4545
$this->assertNull($this->extractor->getTypes(OmittedParamTagTypeDocBlock::class, 'omittedType'));
@@ -190,5 +190,4 @@ class OmittedParamTagTypeDocBlock
190190
public function setOmittedType(array $omittedTagType)
191191
{
192192
}
193-
194193
}

0 commit comments

Comments
 (0)