1 | <?php |
||
23 | class Application extends BaseApplication |
||
24 | { |
||
25 | const NAME = 'CLIFramework'; |
||
1 ignored issue
–
show
|
|||
26 | const VERSION = '0.0.1-dev'; |
||
27 | |||
28 | /** |
||
29 | * The kernel. |
||
30 | * |
||
31 | * @var \Symfony\Component\HttpKernel\KernelInterface $kernel |
||
32 | */ |
||
33 | private $kernel; |
||
34 | |||
35 | /** |
||
36 | * The container. |
||
37 | * |
||
38 | * @var \Symfony\Component\DependencyInjection\ContainerInterface $container |
||
39 | */ |
||
40 | private $container; |
||
41 | |||
42 | /** |
||
43 | * Construct the application. |
||
44 | * |
||
45 | * @param \Symfony\Component\DependencyInjection\ContainerInterface $container |
||
46 | * |
||
47 | * @return void |
||
48 | */ |
||
49 | public function __construct(Kernel $kernel) |
||
67 | |||
68 | /** |
||
69 | * Get kernel. |
||
70 | * |
||
71 | * @return \Symfony\Component\HttpKernel\KernelInterface |
||
72 | */ |
||
73 | public function getKernel() |
||
77 | |||
78 | /** |
||
79 | * Runs the current application. |
||
80 | * |
||
81 | * @param \Symfony\Component\Console\Input\InputInterface $input |
||
82 | * @param \Symfony\Component\Console\Output\OutputInterface $output |
||
83 | * |
||
84 | * @return int |
||
85 | */ |
||
86 | public function doRun(InputInterface $input, OutputInterface $output) |
||
92 | |||
93 | /** |
||
94 | * Register commands into the application |
||
95 | * |
||
96 | * @return void |
||
97 | */ |
||
98 | protected function registerCommands() |
||
106 | } |
||
107 |
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
will produce issues in the first and second line, while this second example
will produce no issues.