| Conditions | 5 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 57 | protected function validateSyntax_statement() : void |
||
| 58 | { |
||
| 59 | $info = $this->params->getInfo(); |
||
| 60 | |||
| 61 | $variable = $info->getVariableByIndex(0); |
||
| 62 | $keyword = $info->getKeywordByIndex(1); |
||
| 63 | $container = $info->getVariableByIndex(2); |
||
| 64 | |||
| 65 | if($variable && $keyword && $container && $keyword->isForIn()) |
||
| 66 | { |
||
| 67 | return; |
||
| 68 | } |
||
| 69 | |||
| 70 | $this->validationResult->makeError( |
||
| 71 | t('Not a valid for loop.').' '.t('Is the %1$s keyword missing?', 'in:'), |
||
| 72 | self::VALIDATION_INVALID_FOR_STATEMENT |
||
| 73 | ); |
||
| 76 |