Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | public function handle() |
||
27 | { |
||
28 | $sites = SiteRepository::getAllForSslCheck(); |
||
29 | |||
30 | $this->comment('Start checking the ssl certificate of '.count($sites).' sites...'); |
||
31 | |||
32 | SiteRepository::getAllForSslCheck()->each(function(Site $site) { |
||
33 | $this->info("Checking ssl-certificate of {$site->url}"); |
||
34 | |||
35 | $certificate = SslCertificate::createForHostName($site->url->getHost()); |
||
|
|||
36 | }); |
||
37 | |||
38 | $this->info('All done!'); |
||
39 | } |
||
40 | } |
||
41 |
This check looks for variable assignements that are either overwritten by other assignments or where the variable is not used subsequently.
Both the
$myVar
assignment in line 1 and the$higher
assignment in line 2 are dead. The first because$myVar
is never used and the second because$higher
is always overwritten for every possible time line.