1 | <?php |
||
7 | class PingdomSkeleton extends AbstractSkeleton |
||
8 | { |
||
9 | |||
10 | const NAME = "pingdom"; |
||
11 | |||
12 | /** |
||
13 | * @return string |
||
14 | */ |
||
15 | public function getName() |
||
19 | |||
20 | /** |
||
21 | * @param \ArrayObject $project |
||
22 | * |
||
23 | * @return mixed |
||
24 | */ |
||
25 | public function create(\ArrayObject $project) |
||
29 | /** |
||
30 | * @return mixed |
||
31 | */ |
||
32 | public function preMaintenance() |
||
36 | |||
37 | /** |
||
38 | * @return mixed |
||
39 | */ |
||
40 | public function postMaintenance() |
||
44 | |||
45 | /** |
||
46 | * @param \ArrayObject $project |
||
47 | * |
||
48 | * @return mixed |
||
49 | */ |
||
50 | public function maintenance(\ArrayObject $project) |
||
69 | |||
70 | /** |
||
71 | * @param \ArrayObject $project |
||
72 | * |
||
73 | * @return mixed |
||
74 | */ |
||
75 | public function preBackup(\ArrayObject $project) |
||
79 | |||
80 | /** |
||
81 | * @param \ArrayObject $project |
||
82 | * |
||
83 | * @return mixed |
||
84 | */ |
||
85 | public function postBackup(\ArrayObject $project) |
||
89 | |||
90 | /** |
||
91 | * @param \ArrayObject $project |
||
92 | * |
||
93 | * @return mixed |
||
94 | */ |
||
95 | public function preRemove(\ArrayObject $project) |
||
99 | |||
100 | /** |
||
101 | * @param \ArrayObject $project |
||
102 | * |
||
103 | * @return mixed |
||
104 | */ |
||
105 | public function postRemove(\ArrayObject $project) |
||
121 | |||
122 | /** |
||
123 | * @return string[] |
||
124 | */ |
||
125 | public function dependsOn() |
||
129 | |||
130 | } |
||
131 |
This check looks for calls to
isset(...)
orempty()
on variables that are yet undefined. These calls will always produce the same result and can be removed.This is most likely caused by the renaming of a variable or the removal of a function/method parameter.