| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function renderDefault($driver, $database = null, $commands = null) |
||
|
|
|||
| 17 | { |
||
| 18 | if (!$this->driver->permissions()->canExecuteCommands()) { |
||
| 19 | throw new ForbiddenRequestException('Executing commands is not available'); |
||
| 20 | } |
||
| 21 | $this->database = $database; |
||
| 22 | $this->commands = $commands; |
||
| 23 | $this->template->results = $this->results; |
||
| 24 | } |
||
| 25 | |||
| 44 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.