1 | <?php |
||
13 | class MissingBreakStatement implements Pass\ConfigurablePassInterface, Pass\AnalyzerPassInterface |
||
14 | { |
||
15 | /** |
||
16 | * @param Stmt\Switch_ $switchStmt |
||
17 | * @param Context $context |
||
18 | * @return bool |
||
19 | */ |
||
20 | 1 | public function pass(Stmt\Switch_ $switchStmt, Context $context) |
|
31 | |||
32 | /** |
||
33 | * @return TreeBuilder |
||
34 | */ |
||
35 | public function getConfiguration() |
||
44 | |||
45 | /** |
||
46 | * @return array |
||
47 | */ |
||
48 | 1 | public function getRegister() |
|
54 | |||
55 | /** |
||
56 | * @param Stmt\Case_ $case |
||
57 | * @param Context $context |
||
58 | * @return bool |
||
59 | */ |
||
60 | 1 | private function checkCaseStatement(Stmt\Case_ $case, Context $context) |
|
92 | } |
||
93 |