| Conditions | 3 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | public function pass($stmt, Context $context) |
||
| 21 | { |
||
| 22 | if ($stmt instanceof For_ && count($stmt->cond) > 1) { |
||
| 23 | $context->notice( |
||
| 24 | 'for_loop_multiple', |
||
| 25 | 'Number of conditions in for larger than one.Merge them using && symbol.', |
||
| 26 | $stmt |
||
| 27 | ); |
||
| 28 | return true; |
||
| 29 | } |
||
| 30 | return false; |
||
| 31 | } |
||
| 32 | /** |
||
| 42 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.