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

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

symphony/content/content.blueprintssections.php 1 location

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

symphony/content/content.systemauthors.php 1 location

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