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

src/Phase/TakeATicket/DataSource/Sqlite.php 1 location

@@ 29-36 (lines=8) @@
26
     * @param  $key
27
     * @return mixed|null
28
     */
29
    public function fetchSetting($key)
30
    {
31
        $conn = $this->getDbConn();
32
        $row = $conn->fetchAssoc('SELECT settingValue FROM settings WHERE settingKey=:key', ['key' => $key]);
33
34
        return $row ? $row['settingValue'] : null;
35
        // rowCount seems to not work on sqlite: http://php.net/manual/en/pdostatement.rowcount.php
36
    }
37
}
38

src/Phase/TakeATicket/DataSource/AbstractSql.php 1 location

@@ 624-630 (lines=7) @@
621
     *
622
     * @return array
623
     */
624
    public function fetchTicketById($id)
625
    {
626
        $conn = $this->getDbConn();
627
        $song = $conn->fetchAssoc('SELECT * FROM ' . self::TICKETS_TABLE . ' WHERE id = :id', ['id' => $id]);
628
629
        return $song;
630
    }
631
632
    /**
633
     * Get current value of a named setting, NULL if missing