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 = 13-13 lines in 3 locations

symphony/content/content.blueprintspages.php 1 location

@@ 25-37 (lines=13) @@
22
         * @param array $parts
23
         * @return array
24
         */
25
        public function parseContext(array &$context, array $parts)
26
        {
27
            // Order is important!
28
            $params = array_fill_keys(array('action', 'id', 'flag'), null);
29
30
            if (isset($parts[2])) {
31
                $extras = preg_split('/\//', $parts[2], -1, PREG_SPLIT_NO_EMPTY);
32
                list($params['action'], $params['id'], $params['flag']) = $extras;
33
                $params['id'] = (int)$params['id'];
34
            }
35
36
            $context = array_filter($params);
37
        }
38
39
        public function __viewIndex()
40
        {

symphony/content/content.blueprintssections.php 1 location

@@ 22-34 (lines=13) @@
19
         * @param array $parts
20
         * @return array
21
         */
22
        public function parseContext(array &$context, array $parts)
23
        {
24
            // Order is important!
25
            $params = array_fill_keys(array('action', 'id', 'flag'), null);
26
27
            if (isset($parts[2])) {
28
                $extras = preg_split('/\//', $parts[2], -1, PREG_SPLIT_NO_EMPTY);
29
                list($params['action'], $params['id'], $params['flag']) = $extras;
30
                $params['id'] = (int)$params['id'];
31
            }
32
33
            $context = array_filter($params);
34
        }
35
36
        public function build(array $context = array())
37
        {

symphony/content/content.systemauthors.php 1 location

@@ 25-37 (lines=13) @@
22
         * @param array $parts
23
         * @return array
24
         */
25
        public function parseContext(array &$context, array $parts)
26
        {
27
            // Order is important!
28
            $params = array_fill_keys(array('action', 'id', 'flag'), null);
29
30
            if (isset($parts[2])) {
31
                $extras = preg_split('/\//', $parts[2], -1, PREG_SPLIT_NO_EMPTY);
32
                list($params['action'], $params['id'], $params['flag']) = $extras;
33
                $params['id'] = (int)$params['id'];
34
            }
35
36
            $context = array_filter($params);
37
        }
38
39
        public function sort(&$sort, &$order, $params)
40
        {