| Conditions | 5 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 67 | protected function validateSyntax_statement() : void |
||
| 68 | { |
||
| 69 | $info = $this->params->getInfo(); |
||
| 70 | |||
| 71 | $variable = $info->getVariableByIndex(0); |
||
| 72 | $keyword = $info->getKeywordByIndex(1); |
||
| 73 | $container = $info->getVariableByIndex(2); |
||
| 74 | |||
| 75 | if($variable && $keyword && $container && $keyword->isForIn()) |
||
| 76 | { |
||
| 77 | return; |
||
| 78 | } |
||
| 79 | |||
| 80 | $this->validationResult->makeError( |
||
| 81 | t('Not a valid for loop.').' '.t('Is the %1$s keyword missing?', 'in:'), |
||
| 82 | self::VALIDATION_INVALID_FOR_STATEMENT |
||
| 83 | ); |
||
| 86 |