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.

Code Duplication    Length = 12-12 lines in 3 locations

symphony/lib/toolkit/class.pagemanager.php 1 location

@@ 123-134 (lines=12) @@
120
     *  String, which is the path to the template if the template is found,
121
     *  false otherwise
122
     */
123
    public static function getTemplate($name)
124
    {
125
        $format = '%s/%s.xsl';
126
127
        if (file_exists($template = sprintf($format, WORKSPACE . '/template', $name))) {
128
            return $template;
129
        } elseif (file_exists($template = sprintf($format, TEMPLATE, $name))) {
130
            return $template;
131
        } else {
132
            return false;
133
        }
134
    }
135
136
    /**
137
     * This function creates the initial `.xsl` template for the page, whether

symphony/lib/toolkit/class.resourcespage.php 1 location

@@ 446-457 (lines=12) @@
443
     *  String, which is the path to the template if the template is found,
444
     *  false otherwise
445
     */
446
    protected function getTemplate($name)
447
    {
448
        $format = '%s/%s.tpl';
449
450
        if (file_exists($template = sprintf($format, WORKSPACE . '/template', $name))) {
451
            return $template;
452
        } elseif (file_exists($template = sprintf($format, TEMPLATE, $name))) {
453
            return $template;
454
        } else {
455
            return false;
456
        }
457
    }
458
}
459

symphony/lib/core/class.errorhandler.php 1 location

@@ 159-170 (lines=12) @@
156
     *  String, which is the path to the template if the template is found,
157
     *  false otherwise
158
     */
159
    public static function getTemplate($name)
160
    {
161
        $format = '%s/%s.tpl';
162
163
        if (file_exists($template = sprintf($format, WORKSPACE . '/template', $name))) {
164
            return $template;
165
        } elseif (file_exists($template = sprintf($format, TEMPLATE, $name))) {
166
            return $template;
167
        } else {
168
            return false;
169
        }
170
    }
171
172
    /**
173
     * The render function will take an Exception and output a HTML page