| 1 | <?php |
||
| 12 | class ReturnAndYieldInOneMethod implements Pass\AnalyzerPassInterface |
||
| 13 | { |
||
| 14 | const DESCRIPTION = 'Checks for using return and yield statements in a one method and discourages it.'; |
||
| 15 | |||
| 16 | use DefaultMetadataPassTrait; |
||
| 17 | use ResolveExpressionTrait; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param Stmt $stmt |
||
| 21 | * @param Context $context |
||
| 22 | * @return bool |
||
| 23 | */ |
||
| 24 | 1 | public function pass(Stmt $stmt, Context $context) |
|
| 39 | |||
| 40 | /** |
||
| 41 | * @return array |
||
| 42 | */ |
||
| 43 | 1 | public function getRegister() |
|
| 49 | } |
||
| 50 |