Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2.0438 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | 2 | public function __construct($arg, $function = '') { |
|
24 | 2 | $this->arg = $arg; |
|
25 | 2 | $this->function = $function; |
|
26 | |||
27 | 2 | if (empty($function)) { |
|
28 | $message = sprintf('Missing argument $%s.', $arg); |
||
29 | } else { |
||
30 | 2 | $message = sprintf('Missing argument $%s for %s.', $arg, $function); |
|
31 | } |
||
32 | |||
33 | 2 | parent::__construct($message, 500); |
|
34 | 2 | } |
|
35 | } |
||
36 |