| 1 | <?php |
||
| 11 | class ProcessExecutor implements ConfigAwareInterface, LoggerAwareInterface, OutputAwareInterface, VerbosityThresholdInterface |
||
| 12 | { |
||
| 13 | use ExecTrait; |
||
| 14 | use TaskIO; // uses LoggerAwareTrait and ConfigAwareTrait |
||
| 15 | use ProgressIndicatorAwareTrait; |
||
| 16 | use OutputAwareTrait; |
||
| 17 | |||
| 18 | public function __construct(Process $process) |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @return string |
||
| 26 | */ |
||
| 27 | public function getCommand() |
||
| 31 | |||
| 32 | public function run() |
||
| 36 | } |
||
| 37 |
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.