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

Skip to content

Commit 8b3f852

Browse files
committed
Apply coding standard fixes.
1 parent 75e91df commit 8b3f852

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function getTypes($class, $property, array $context = array())
128128
$types = array();
129129
/** @var DocBlock\Tags\Var_|DocBlock\Tags\Return_|DocBlock\Tags\Param $tag */
130130
foreach ($docBlock->getTagsByName($tag) as $tag) {
131-
if ($tag && $tag->getType() !== null) {
131+
if ($tag && null !== $tag->getType()) {
132132
$types = array_merge($types, $this->phpDocTypeHelper->getTypes($tag->getType()));
133133
}
134134
}
@@ -217,7 +217,7 @@ private function getDocBlockFromProperty($class, $property)
217217
*/
218218
private function getDocBlockFromMethod($class, $ucFirstProperty, $type)
219219
{
220-
$prefixes = $type === self::ACCESSOR ? ReflectionExtractor::$accessorPrefixes : ReflectionExtractor::$mutatorPrefixes;
220+
$prefixes = self::ACCESSOR === $type ? ReflectionExtractor::$accessorPrefixes : ReflectionExtractor::$mutatorPrefixes;
221221
$prefix = null;
222222

223223
foreach ($prefixes as $prefix) {

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'));
@@ -99,5 +99,4 @@ class OmittedParamTagTypeDocBlock
9999
public function setOmittedType(array $omittedTagType)
100100
{
101101
}
102-
103102
}

0 commit comments

Comments
 (0)