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

app/models/Todo.php 1 location

@@ 12-24 (lines=13) @@
9
10
class Todo extends Model{
11
12
    public function getAll(){
13
14
        $database = Database::openConnection();
15
        $query  = "SELECT todo.id AS id, users.id AS user_id, users.name AS user_name, todo.content ";
16
        $query .= "FROM users, todo ";
17
        $query .= "WHERE users.id = todo.user_id ";
18
19
        $database->prepare($query);
20
        $database->execute();
21
        $todo = $database->fetchAllAssociative();
22
23
        return $todo;
24
     }
25
26
    public function create($userId, $content){
27

app/models/User.php 1 location

@@ 275-286 (lines=12) @@
272
     * @param  integer $userId
273
     * @return array
274
     */
275
    public function getNotifications($userId){
276
277
        $database = Database::openConnection();
278
        $query = "SELECT target, count FROM notifications WHERE user_id = :user_id";
279
280
        $database->prepare($query);
281
        $database->bindValue(":user_id", $userId);
282
        $database->execute();
283
284
        $notifications = $database->fetchAllAssociative();
285
        return $notifications;
286
      }
287
288
    /**
289
     * Clear Notifications for a specific target