GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Pull Request — 3.x (#2549)
by
unknown
02:15
created

HtmlNotFoundOutput::render()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 38

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 38
rs 9.312
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
namespace Slim\Handlers\Renderables;
3
4
use Slim\Interfaces\RenderableInterface;
5
6
class HtmlNotFoundOutput implements RenderableInterface
7
{
8
9
    public function render($args)
10
    {
11
        $request = $args[0];
12
        $homeUrl = (string)($request->getUri()->withPath('')->withQuery('')->withFragment(''));
13
        return <<<END
14
<html>
15
    <head>
16
        <title>Page Not Found</title>
17
        <style>
18
            body{
19
                margin:0;
20
                padding:30px;
21
                font:12px/1.5 Helvetica,Arial,Verdana,sans-serif;
22
            }
23
            h1{
24
                margin:0;
25
                font-size:48px;
26
                font-weight:normal;
27
                line-height:48px;
28
            }
29
            strong{
30
                display:inline-block;
31
                width:65px;
32
            }
33
        </style>
34
    </head>
35
    <body>
36
        <h1>Page Not Found</h1>
37
        <p>
38
            The page you are looking for could not be found. Check the address bar
39
            to ensure your URL is spelled correctly. If all else fails, you can
40
            visit our home page at the link below.
41
        </p>
42
        <a href='$homeUrl'>Visit the Home Page</a>
43
    </body>
44
</html>
45
END;
46
    }
47
}