| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public static function notFound(string $uri): Http |
||
| 20 | { |
||
| 21 | $siteConfigurationFile = File::relativePath(Config::get('configurationFile')); |
||
| 22 | |||
| 23 | $body = <<<MD |
||
| 24 | The URI `$uri` could not be find. |
||
| 25 | |||
| 26 | Please check in `$siteConfigurationFile` for static pages or `./src/routes.php` for dynamic routes. |
||
| 27 | |||
| 28 | ``` |
||
| 29 | $uri: |
||
| 30 | template: # ... |
||
| 31 | variables: |
||
| 32 | # ... |
||
| 33 | config: |
||
| 34 | # ... |
||
| 35 | ``` |
||
| 36 | MD; |
||
| 37 | |||
| 38 | return new self("`{$uri}` was not found.", $body, 404); |
||
| 39 | } |
||
| 40 | |||
| 46 |