Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public function index(HTTPRequest $request) |
||
|
|||
18 | { |
||
19 | if (!DebugBar::config()->get('enable_storage')) { |
||
20 | return $this->httpError(404, 'Storage not enabled'); |
||
21 | } |
||
22 | $debugbar = DebugBar::getDebugBar(); |
||
23 | if (!$debugbar) { |
||
24 | return $this->httpError(404, 'DebugBar not enabled'); |
||
25 | } |
||
26 | $openHandler = new OpenHandler($debugbar); |
||
27 | $openHandler->handle(); |
||
28 | exit(); // Handle will echo and set headers |
||
29 | } |
||
31 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.