1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | /** |
||
6 | * This file is part of Laravel Zero. |
||
7 | * |
||
8 | * (c) Nuno Maduro <[email protected]> |
||
9 | * |
||
10 | * For the full copyright and license information, please view the LICENSE |
||
11 | * file that was distributed with this source code. |
||
12 | */ |
||
13 | |||
14 | namespace LaravelZero\Framework\Components\Updater; |
||
15 | |||
16 | use LaravelZero\Framework\Commands\Command; |
||
17 | |||
18 | class SelfUpdateCommand extends Command |
||
19 | { |
||
20 | /** |
||
21 | * {@inheritdoc} |
||
22 | */ |
||
23 | protected $name = 'self-update'; |
||
24 | |||
25 | /** |
||
26 | * {@inheritdoc} |
||
27 | */ |
||
28 | protected $description = 'Allows to self-update a build application'; |
||
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | public function handle(Updater $updater) |
||
34 | { |
||
35 | $this->output->title('Checking for a new version...'); |
||
36 | |||
37 | $result = $updater->update($this->output); |
||
0 ignored issues
–
show
|
|||
38 | } |
||
39 | } |
||
40 |
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.