1 | <?php |
||
10 | class NestedTernary implements Pass\AnalyzerPassInterface |
||
11 | { |
||
12 | use DefaultMetadataPassTrait; |
||
13 | |||
14 | const DESCRIPTION = 'Discourages the use of nested ternaries.'; |
||
15 | |||
16 | /** |
||
17 | * @param Expr\Ternary $expr |
||
18 | * @param Context $context |
||
19 | * @return bool |
||
20 | */ |
||
21 | 3 | public function pass(Expr\Ternary $expr, Context $context) |
|
35 | |||
36 | /** |
||
37 | * @return array |
||
38 | */ |
||
39 | 1 | public function getRegister() |
|
45 | } |
||
46 |