eZ/Publish/Core/MVC/Symfony/Translation/TranslatableExceptionsFileVisitor.php 1 location
|
@@ 123-136 (lines=14) @@
|
| 120 |
|
$node = $node->expr; |
| 121 |
|
$ignore = false; |
| 122 |
|
$desc = $meaning = null; |
| 123 |
|
if (null !== $docComment = $this->getDocCommentForNode($node)) { |
| 124 |
|
if ($docComment instanceof Doc) { |
| 125 |
|
$docComment = $docComment->getText(); |
| 126 |
|
} |
| 127 |
|
foreach ($this->docParser->parse($docComment, 'file ' . $this->file . ' near line ' . $node->getLine()) as $annot) { |
| 128 |
|
if ($annot instanceof Ignore) { |
| 129 |
|
$ignore = true; |
| 130 |
|
} elseif ($annot instanceof Desc) { |
| 131 |
|
$desc = $annot->text; |
| 132 |
|
} elseif ($annot instanceof Meaning) { |
| 133 |
|
$meaning = $annot->text; |
| 134 |
|
} |
| 135 |
|
} |
| 136 |
|
} |
| 137 |
|
|
| 138 |
|
if (!$node->args[0]->value instanceof String_) { |
| 139 |
|
if ($ignore) { |
eZ/Publish/Core/MVC/Symfony/Translation/ValidationErrorFileVisitor.php 1 location
|
@@ 116-129 (lines=14) @@
|
| 113 |
|
|
| 114 |
|
$ignore = false; |
| 115 |
|
$desc = $meaning = null; |
| 116 |
|
if (null !== $docComment = $this->getDocCommentForNode($node)) { |
| 117 |
|
if ($docComment instanceof Doc) { |
| 118 |
|
$docComment = $docComment->getText(); |
| 119 |
|
} |
| 120 |
|
foreach ($this->docParser->parse($docComment, 'file ' . $this->file . ' near line ' . $node->getLine()) as $annot) { |
| 121 |
|
if ($annot instanceof Ignore) { |
| 122 |
|
$ignore = true; |
| 123 |
|
} elseif ($annot instanceof Desc) { |
| 124 |
|
$desc = $annot->text; |
| 125 |
|
} elseif ($annot instanceof Meaning) { |
| 126 |
|
$meaning = $annot->text; |
| 127 |
|
} |
| 128 |
|
} |
| 129 |
|
} |
| 130 |
|
|
| 131 |
|
if (!$node->args[0]->value instanceof String_) { |
| 132 |
|
if ($ignore) { |