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