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 = 20-20 lines in 2 locations

src/php/Prose/FromRuntimeTable.php 1 location

@@ 62-81 (lines=20) @@
59
     *
60
     * @return object The table from the config
61
     */
62
    public function getTable()
63
    {
64
        // get our table name from the constructor
65
        $tableName = $this->args[0];
66
67
        // what are we doing?
68
        $log = usingLog()->startAction("get '{$tableName}' table from runtime config");
69
70
        // get the table config
71
        $tables = $this->getAllTables();
72
73
        // make sure we have a table
74
        if (!isset($tables->$tableName)){
75
            $tables->$tableName = new BaseObject();
76
        }
77
78
        // all done
79
        $log->endAction();
80
        return $tables->$tableName;
81
    }
82
83
    public function getGroupFromTable($group)
84
    {

src/php/Storyplayer/SPv2/Modules/Host/FromHost.php 1 location

@@ 641-660 (lines=20) @@
638
     *
639
     * @return string
640
     */
641
    public function getLocalFolder()
642
    {
643
        // what are we doing?
644
        $log = usingLog()->startAction("get local folder for host '{$this->args[0]}'");
645
646
        // make sure we have valid host details
647
        $hostDetails = $this->getHostDetails();
648
649
        // does it have a folder defined?
650
        if (isset($hostDetails->dir)) {
651
            $retval = $hostDetails->dir;
652
        }
653
        else {
654
            $retval = getcwd();
655
        }
656
657
        // all done
658
        $log->endAction($retval);
659
        return $retval;
660
    }
661
}
662