| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | protected function enterDocument(DocumentNode $node): ?NodeInterface |
||
| 26 | { |
||
| 27 | foreach ($node->getDefinitions() as $definition) { |
||
| 28 | if (!$definition instanceof ExecutableDefinitionNodeInterface) { |
||
| 29 | $this->context->reportError( |
||
| 30 | new ValidationException( |
||
| 31 | nonExecutableDefinitionMessage($this->getDefinitionName($definition)), |
||
| 32 | [$definition] |
||
| 33 | ) |
||
| 34 | ); |
||
| 35 | } |
||
| 36 | } |
||
| 37 | |||
| 38 | return $node; |
||
| 39 | } |
||
| 56 |