Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
35 | protected function respond503() |
||
36 | { |
||
37 | $message = 'Website is down for maintenance'; |
||
38 | $content = '<h1>'.$message.'</h1>'; |
||
39 | |||
40 | header($message, true, 503); |
||
41 | |||
42 | $errorFile = $this->get503File(); |
||
43 | |||
44 | if(is_file($errorFile)) { |
||
45 | $content = file_get_contents($errorFile); |
||
46 | } |
||
47 | |||
48 | echo $content; |
||
49 | exit(); |
||
50 | } |
||
51 | |||
64 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.