1 | <?php |
||
10 | class BacktickUsage implements AnalyzerPassInterface |
||
11 | { |
||
12 | use DefaultMetadataPassTrait; |
||
13 | |||
14 | const DESCRIPTION = 'Discourages the use of backtick operator for shell execution.'; |
||
15 | |||
16 | /** |
||
17 | * @param Expr\ShellExec $expr |
||
18 | * @param Context $context |
||
19 | * @return bool |
||
20 | */ |
||
21 | public function pass(Expr\ShellExec $expr, Context $context) |
||
31 | |||
32 | /** |
||
33 | * {@inheritdoc} |
||
34 | */ |
||
35 | public function getRegister() |
||
41 | } |
||
42 |