Conditions | 3 |
Paths | 4 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
16 | 1 | public function __construct(string $message = "", int $code = 0, Throwable $previous = null) { |
|
17 | 1 | if (!$message) { |
|
18 | 1 | $message = elgg_echo('loggedoutrequired'); |
|
19 | } |
||
20 | 1 | if (!$code) { |
|
21 | 1 | $code = ELGG_HTTP_FORBIDDEN; |
|
22 | } |
||
23 | 1 | parent::__construct($message, $code, $previous); |
|
24 | 1 | } |
|
26 |