Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | protected function renderHtmlErrorMessage() |
||
22 | { |
||
23 | $title = 'DrMVC Application Error'; |
||
24 | $html = '<p>A website error has occurred. Sorry for the temporary inconvenience.</p>'; |
||
25 | $output = sprintf( |
||
26 | "<html><head><meta http-equiv='Content-Type' content='text/html; charset=utf-8'>" . |
||
27 | "<title>%s</title><style>body{margin:0;padding:30px;font:12px/1.5 Helvetica,Arial,Verdana," . |
||
28 | "sans-serif;}h1{margin:0;font-size:48px;font-weight:normal;line-height:48px;}strong{" . |
||
29 | "display:inline-block;width:65px;}</style></head><body><h1>%s</h1>%s</body></html>", |
||
30 | $title, |
||
31 | $title, |
||
32 | $html |
||
33 | ); |
||
34 | return $output; |
||
35 | } |
||
37 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.