Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8b3f852

Browse filesBrowse files
committed
Apply coding standard fixes.
1 parent 75e91df commit 8b3f852
Copy full SHA for 8b3f852

File tree

Expand file treeCollapse file tree

2 files changed

+3
-4
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+3
-4
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/PropertyInfo/Extractor/PhpDocExtractor.php
+2-2Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/PropertyInfo/Tests/Extractors/PhpDocExtractorTest.php
+1-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.