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/core/class.errorhandler.php 1 location

@@ 269-280 (lines=12) @@
266
         *  String, which is the path to the template if the template is found,
267
         *  false otherwise
268
         */
269
        public static function getTemplate($name)
270
        {
271
            $format = '%s/%s.tpl';
272
273
            if (file_exists($template = sprintf($format, WORKSPACE . '/template', $name))) {
274
                return $template;
275
            } elseif (file_exists($template = sprintf($format, TEMPLATE, $name))) {
276
                return $template;
277
            } else {
278
                return false;
279
            }
280
        }
281
282
        /**
283
         * The shutdown function will capture any fatal errors and format them as a

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

@@ 485-496 (lines=12) @@
482
         *  String, which is the path to the template if the template is found,
483
         *  false otherwise
484
         */
485
        public static function getTemplate($name)
486
        {
487
            $format = '%s/%s.xsl';
488
489
            if (file_exists($template = sprintf($format, WORKSPACE . '/template', $name))) {
490
                return $template;
491
            } elseif (file_exists($template = sprintf($format, TEMPLATE, $name))) {
492
                return $template;
493
            } else {
494
                return false;
495
            }
496
        }
497
498
        /**
499
         * A wrapper for `General::writeFile`, this function takes a `$path`

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

@@ 459-470 (lines=12) @@
456
         *  String, which is the path to the template if the template is found,
457
         *  false otherwise
458
         */
459
        protected function getTemplate($name)
460
        {
461
            $format = '%s/%s.tpl';
462
463
            if (file_exists($template = sprintf($format, WORKSPACE . '/template', $name))) {
464
                return $template;
465
            } elseif (file_exists($template = sprintf($format, TEMPLATE, $name))) {
466
                return $template;
467
            } else {
468
                return false;
469
            }
470
        }
471
    }
472