src/Visitor/Php/Symfony/FormTypeLabelImplicit.php 1 location
|
@@ 54-57 (lines=4) @@
|
| 51 |
|
// only if no custom label was found, proceed |
| 52 |
|
if ($customLabel === false) { |
| 53 |
|
$label = $node->args[0]->value->value; |
| 54 |
|
if (!empty($label)) { |
| 55 |
|
$sl = new SourceLocation($label, $this->getAbsoluteFilePath(), $node->getAttribute('startLine')); |
| 56 |
|
$this->collection->addLocation($sl); |
| 57 |
|
} |
| 58 |
|
} |
| 59 |
|
} |
| 60 |
|
} |
src/Visitor/Php/Symfony/FlashMessage.php 1 location
|
@@ 44-46 (lines=3) @@
|
| 41 |
|
if (('addFlash' === $name && $callerName === 'this' && $caller instanceof Node\Expr\Variable) || |
| 42 |
|
('add' === $name && $callerName === 'getFlashBag' && $caller instanceof Node\Expr\MethodCall) |
| 43 |
|
) { |
| 44 |
|
if (null !== $label = $this->getStringArgument($node, 1)) { |
| 45 |
|
$this->collection->addLocation(new SourceLocation($label, $this->getAbsoluteFilePath(), $node->getAttribute('startLine'))); |
| 46 |
|
} |
| 47 |
|
} |
| 48 |
|
} |
| 49 |
|
} |