Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Code Duplication    Length = 18-23 lines in 2 locations

app/Http/Controllers/API/V1/DonorsController.php 1 location

@@ 34-56 (lines=23) @@
31
     * @param  integer $id
32
     * @return void
33
     */
34
    public function show($id)
35
    {
36
37
        $donor = Donor::find($id);
38
39
        if (!$donor) {
40
            return response()->json(
41
                [
42
                    'error_code' => 404,
43
                    'error_message' => 'Donor not found!'
44
                ], 404
45
            );
46
        }
47
48
        return response()->json(
49
            [
50
                'first_name' => $donor->user->first_name,
51
                'last_name' => $donor->user->last_name,
52
              //   'email' => $donor->user->email,
53
              //   'birthdate' => $donor->user->birthdate,
54
            ]
55
        );
56
    }
57
58
    public function store()
59
    {

app/Http/Controllers/Auth/AuthenticateController.php 1 location

@@ 105-122 (lines=18) @@
102
     *
103
     * @return void
104
     */
105
    public function userInfo()
106
    {
107
        $user = JWTAuth::parseToken()->authenticate();
108
109
        // If the token is invalid
110
        if (!$user) {
111
            return response()->json([ 'invalid_user' ], 401);
112
        }
113
114
        return response()->json(
115
            [
116
              'first_name' => $user->first_name,
117
              'last_name' => $user->last_name,
118
            //   'email' => $user->email,
119
              'username' => $user->username
120
            ], 200
121
        );
122
    }
123
}
124