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.

Issues (3647)

symphony/content/content.systemlog.php (4 issues)

1
<?php
2
/**
3
 * @package content
4
 */
5
/**
6
 * Displays the contents of the Symphony `ACTIVITY_LOG`
7
 * log to any user who is logged in. If a user is not logged
8
 * in, or the log file is unreadable, they will be directed
9
 * to a 404 page
10
 */
11
class contentSystemLog
0 ignored issues
show
This class is not in CamelCase format.

Classes in PHP are usually named in CamelCase.

In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. The whole name starts with a capital letter as well.

Thus the name database provider becomes DatabaseProvider.

Loading history...
12
{
13
    public function build()
14
    {
15
        if (!is_file(ACTIVITY_LOG) || !$log = @file_get_contents(ACTIVITY_LOG)) {
0 ignored issues
show
The constant ACTIVITY_LOG was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
16
            Administration::instance()->errorPageNotFound();
17
        }
18
19
        header('Content-Type: text/plain');
20
21
        print $log;
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable $log does not seem to be defined for all execution paths leading up to this point.
Loading history...
22
        exit;
0 ignored issues
show
Using exit here is not recommended.

In general, usage of exit should be done with care and only when running in a scripting context like a CLI script.

Loading history...
23
    }
24
}
25