1 | <?php |
||
16 | class jabberPingsTheCulture extends \Threaded implements \Collectable |
||
17 | { |
||
18 | /** |
||
19 | * @var Discord |
||
20 | */ |
||
21 | protected $discord; |
||
22 | /** |
||
23 | * @var Logger |
||
24 | */ |
||
25 | protected $log; |
||
26 | /** |
||
27 | * @var Config |
||
28 | */ |
||
29 | protected $config; |
||
30 | /** |
||
31 | * @var Db |
||
32 | */ |
||
33 | protected $db; |
||
34 | /** |
||
35 | * @var cURL |
||
36 | */ |
||
37 | protected $curl; |
||
38 | /** |
||
39 | * @var Settings |
||
40 | */ |
||
41 | protected $settings; |
||
42 | /** |
||
43 | * @var Permissions |
||
44 | */ |
||
45 | protected $permissions; |
||
46 | /** |
||
47 | * @var ServerConfig |
||
48 | */ |
||
49 | protected $serverConfig; |
||
50 | /** |
||
51 | * @var Users |
||
52 | */ |
||
53 | protected $users; |
||
54 | /** |
||
55 | * @var array |
||
56 | */ |
||
57 | protected $extras; |
||
58 | |||
59 | public function __construct($discord, $log, $config, $db, $curl, $settings, $permissions, $serverConfig, $users, $extras) |
||
72 | |||
73 | public function run() |
||
109 | } |
||
110 |
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.