Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
19 | 25 | protected function configure() |
|
20 | { |
||
21 | 25 | $app = $this->applicationName; |
|
22 | |||
23 | $this |
||
24 | 25 | ->setAliases(array('self-update')) |
|
25 | 25 | ->setDescription("Updates $app to the latest version.") |
|
26 | 25 | ->setHelp( |
|
27 | <<<EOT |
||
28 | The <info>self-update</info> command checks github for newer |
||
29 | 25 | versions of $app and if found, installs the latest. |
|
30 | EOT |
||
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.