| Total Complexity | 3 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 61.53% |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 17 | class SelfUpdateCommand extends \SelfUpdate\SelfUpdateCommand |
||
| 18 | { |
||
| 19 | 24 | protected function configure() |
|
| 20 | { |
||
| 21 | 24 | $app = $this->applicationName; |
|
| 22 | |||
| 23 | $this |
||
| 24 | 24 | ->setAliases(array('self-update')) |
|
| 25 | 24 | ->setDescription("Updates $app to the latest version.") |
|
| 26 | 24 | ->setHelp( |
|
| 27 | <<<EOT |
||
| 28 | 24 | The <info>self-update</info> command checks github for newer |
|
| 29 | 24 | versions of $app and if found, installs the latest. |
|
| 30 | EOT |
||
| 31 | ); |
||
| 32 | 24 | } |
|
| 33 | |||
| 34 | protected function execute(InputInterface $input, OutputInterface $output) { |
||
| 42 | } |
||
| 43 | } |
||
| 44 |
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.