1 | <?php |
||
11 | class DoNotUseGoto implements Pass\ConfigurablePassInterface, Pass\AnalyzerPassInterface |
||
12 | { |
||
13 | /** |
||
14 | * @param Stmt\Goto_ $stmt |
||
15 | * @param Context $context |
||
16 | * @return bool |
||
17 | */ |
||
18 | 1 | public function pass(Stmt\Goto_ $stmt, Context $context) |
|
19 | { |
||
20 | 1 | $context->notice('do_not_use_goto', 'Do not use goto statements', $stmt); |
|
21 | |||
22 | 1 | return true; |
|
23 | } |
||
24 | |||
25 | /** |
||
26 | * @return TreeBuilder |
||
27 | */ |
||
28 | public function getConfiguration() |
||
37 | |||
38 | /** |
||
39 | * @return array |
||
40 | */ |
||
41 | 1 | public function getRegister() |
|
47 | } |
||
48 |