| Conditions | 3 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | 40 | public function pass(Stmt $stmt, Context $context) |
|
| 23 | { |
||
| 24 | 40 | if ($this->returnStatementExists($stmt) && $this->yieldStatementExists($stmt)) { |
|
| 25 | 1 | $context->notice('return_and_yield_in_one_method', 'Do not use return and yield in a one method', $stmt); |
|
| 26 | 1 | return true; |
|
| 27 | } |
||
| 28 | |||
| 29 | 40 | return false; |
|
| 30 | } |
||
| 31 | |||
| 62 |