Total Complexity | 3 |
Total Lines | 56 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class ShortenCommand extends Command |
||
9 | { |
||
10 | /** |
||
11 | * The console command name. |
||
12 | * |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $signature = 'url:shorten |
||
16 | {url? : The URL to shorten} |
||
17 | {--D|driver= : The driver to use to shorten the URL.}'; |
||
18 | |||
19 | /** |
||
20 | * The console command description. |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $description = 'Shorten a given URL'; |
||
25 | |||
26 | /** |
||
27 | * The URL Shortener instance. |
||
28 | * |
||
29 | * @var \LaraCrafts\UrlShortener\UrlShortenerManager |
||
30 | */ |
||
31 | protected $shortener; |
||
32 | |||
33 | /** |
||
34 | * Create a new ShortenCommand instance. |
||
35 | * |
||
36 | * @param \LaraCrafts\UrlShortener\UrlShortenerManager $shortener |
||
37 | */ |
||
38 | public function __construct(UrlShortenerManager $shortener) |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * Execute the console command. |
||
47 | * |
||
48 | * @return mixed |
||
49 | */ |
||
50 | public function handle() |
||
66 |
This check looks for function or method calls that always return null and whose return value is used.
The method
getObject()
can return nothing but null, so it makes no sense to use the return value.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.