Test Setup Failed
Branch master (5ae7ae)
by Marcel
17:28
created
app/Http/Controllers/MissingController.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
         if ($orderby == 'developer.name') {
20 20
             $games = Game::Join('games_developer', 'games.id', '=', 'games_developer.game_id')
21 21
                 ->Join('developer', 'games_developer.developer_id', '=', 'developer.id')
22
-                ->leftJoin('tag_relations as tr', function ($join) {
22
+                ->leftJoin('tag_relations as tr', function($join) {
23 23
                     $join->on('tr.content_id', '=', 'games.id');
24 24
                     $join->on('tr.content_type', '=', \DB::raw("'game'"));
25 25
                 })
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
                 ]);
33 33
         } elseif ($orderby == 'game.release_date') {
34 34
             $games = Game::Join('games_files', 'games.id', '=', 'games_files.game_id')
35
-                ->leftJoin('tag_relations as tr', function ($join) {
35
+                ->leftJoin('tag_relations as tr', function($join) {
36 36
                     $join->on('tr.content_id', '=', 'games.id');
37 37
                     $join->on('tr.content_type', '=', \DB::raw("'game'"));
38 38
                 })
@@ -45,9 +45,9 @@  discard block
 block discarded – undo
45 45
                 ->paginate($rows, [
46 46
                     'games.*',
47 47
                 ]);
48
-        } else {
48
+        }else {
49 49
             $games = Game::with(['tags'])->select(['games.*', \DB::raw('COUNT(tr.id) as ctr')])
50
-                ->leftJoin('tag_relations as tr', function ($join) {
50
+                ->leftJoin('tag_relations as tr', function($join) {
51 51
                     $join->on('tr.content_id', '=', 'games.id');
52 52
                     $join->on('tr.content_type', '=', \DB::raw("'game'"));
53 53
                 })
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
                 ->paginate($rows, [
94 94
                     'games.*',
95 95
                 ]);
96
-        } else {
96
+        }else {
97 97
             $games = Game::with(['tags'])->select(['games.*', \DB::raw('COUNT(tr.id) as ctr')])
98 98
                 ->leftJoin('screenshots as tr', 'tr.game_id', '=', 'games.id')
99 99
                 ->groupBy('games.id')
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
                 ->paginate($rows, [
138 138
                     'games.*',
139 139
                 ]);
140
-        } else {
140
+        }else {
141 141
             $games = Game::with(['tags'])->select(['games.*', \DB::raw('COUNT(tr.id) as ctr')])
142 142
                 ->leftJoin('games_files as tr', 'tr.game_id', '=', 'games.id')
143 143
                 ->groupBy('games.id')
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
                 ->paginate($rows, [
179 179
                     'games.*',
180 180
                 ]);
181
-        } else {
181
+        }else {
182 182
             $games = Game::with(['tags'])->select(['games.*'])
183 183
                 ->where('games.desc_md', '=', '')
184 184
                 ->groupBy('games.id')
Please login to merge, or discard this patch.
app/Http/Controllers/Api/v2/AuthenticationController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 
26 26
         try {
27 27
             $token = $JWTAuth->attempt($credentials);
28
-            if (! $token) {
28
+            if (!$token) {
29 29
                 throw new AccessDeniedHttpException();
30 30
             }
31 31
         } catch (JWTException $e) {
Please login to merge, or discard this patch.
app/Http/Controllers/Api/v1/TakoController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 {
17 17
     public function filelist()
18 18
     {
19
-        $list = GamesFile::with('gamefiletype', 'game.maker' )->get(); //->take(5);
19
+        $list = GamesFile::with('gamefiletype', 'game.maker')->get(); //->take(5);
20 20
 
21 21
         return $list;
22 22
     }
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
         }
33 33
     }
34 34
 
35
-    public function getMakers(){
35
+    public function getMakers() {
36 36
         $maker = Maker::all();
37 37
 
38 38
         return $maker;
Please login to merge, or discard this patch.
app/Http/Controllers/BoardController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
                 \DB::table('board_cats')
77 77
                     ->where('id', '=', $catid)
78 78
                     ->increment('order');
79
-            } else {
79
+            }else {
80 80
                 \DB::table('board_cats')
81 81
                     ->where('id', '=', $catid)
82 82
                     ->decrement('order');
@@ -129,9 +129,9 @@  discard block
 block discarded – undo
129 129
 
130 130
         DatabaseHelper::setThreadViewDate($threadid);
131 131
 
132
-        if (! Input::get('page')) {
132
+        if (!Input::get('page')) {
133 133
             return redirect('board/thread/'.$threadid.'?page='.$posts->lastPage());
134
-        } else {
134
+        }else {
135 135
             return view('board.threads.show', [
136 136
                 'posts'     => $posts,
137 137
                 'poll'      => $poll,
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
             event(new Obyx('post-add', \Auth::id()));
212 212
 
213 213
             $url = \URL::route('board.thread.show', [$threadid]).'#c'.$pid;
214
-        } else {
214
+        }else {
215 215
             $url = \URL::route('board.thread.show', [$threadid]);
216 216
         }
217 217
 
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
                 $c->user_id = \Auth::id();
332 332
                 $c->answer_id = $request->get('answer_id');
333 333
                 $c->save();
334
-            } else {
334
+            }else {
335 335
                 $vote = new BoardPollVote();
336 336
                 $vote->poll_id = $request->get('poll_id');
337 337
                 $vote->user_id = \Auth::id();
Please login to merge, or discard this patch.
app/Http/Controllers/SearchController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     {
18 18
         if ($query == '') {
19 19
             return view('search.index');
20
-        } else {
20
+        }else {
21 21
             $rows = (\Auth::check()) ? \Auth::user()->settings->rows_per_page_games : config('app.rows_per_page_games');
22 22
 
23 23
             //$games = Game::search($query)->orderBy($orderby, $direction)->paginate($rows);
Please login to merge, or discard this patch.
app/Http/Controllers/Player2kController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
                 'gamefileid' => $gamefileid,
28 28
                 'game'       => $game,
29 29
             ]);
30
-        } else {
30
+        }else {
31 31
             return redirect()->action('IndexController@index');
32 32
         }
33 33
     }
Please login to merge, or discard this patch.
app/Http/Controllers/MessagesController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,9 +98,9 @@
 block discarded – undo
98 98
                 $thread->markAsRead($userId);
99 99
                 $messages = $thread->messages()->paginate(25);
100 100
 
101
-                if (! Input::get('page')) {
101
+                if (!Input::get('page')) {
102 102
                     return redirect('messages/'.$id.'?page='.$messages->lastPage());
103
-                } else {
103
+                }else {
104 104
                     return view('messenger.show', compact('thread', 'users', 'messages'));
105 105
                 }
106 106
             }
Please login to merge, or discard this patch.
app/Console/Commands/PT.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -79,20 +79,20 @@  discard block
 block discarded – undo
79 79
                         $filename = $zip->getNameIndex($i);
80 80
 
81 81
                         //Filter Directory and _MACOSX from index
82
-                        if (! ends_with($filename, '/') and ! starts_with($filename, '_MACOSX')) {
82
+                        if (!ends_with($filename, '/') and !starts_with($filename, '_MACOSX')) {
83 83
 
84 84
                             //Get root path of the file
85 85
                             $phelper = new PlayerHelper();
86 86
                             $imp = $phelper->getZipRootPath($filename);
87 87
 
88 88
                             //if root path not ''
89
-                            if (! $imp == '') {
89
+                            if (!$imp == '') {
90 90
                                 $rel = new PlayerFileGamefileRel();
91 91
                                 $rel->gamefile_id = $gamefile->id;
92 92
 
93
-                                if (! ends_with(strtolower($imp), ['.exe', '.lmu', '.ldb', 'ini', '.dll', 'lmt', 'lsd'])) {
93
+                                if (!ends_with(strtolower($imp), ['.exe', '.lmu', '.ldb', 'ini', '.dll', 'lmt', 'lsd'])) {
94 94
                                     $rel->orig_filename = preg_replace('/(\.\w+$)/', '', strtolower($imp));
95
-                                } else {
95
+                                }else {
96 96
                                     $rel->orig_filename = strtolower($imp);
97 97
                                 }
98 98
 
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
                                 $newfilepath = storage_path('app/public/games_hashed/'.substr($filehash, 0, 2).'/');
106 106
 
107 107
                                 //check for directory existance
108
-                                if (! file_exists($newfilepath)) {
108
+                                if (!file_exists($newfilepath)) {
109 109
                                     mkdir($newfilepath);
110 110
                                 }
111 111
 
@@ -114,14 +114,14 @@  discard block
 block discarded – undo
114 114
 
115 115
                                 //check for Database existance of this file
116 116
                                 $check = PlayerFileHash::whereFilehash($filehash)->first();
117
-                                if (! $check) {
117
+                                if (!$check) {
118 118
                                     //create a new record to player_file_hash table
119 119
                                     $pfh = new PlayerFileHash();
120 120
                                     $pfh->filehash = $filehash;
121 121
                                     $pfh->save();
122 122
 
123 123
                                     $rel->file_hash_id = $pfh->id;
124
-                                } else {
124
+                                }else {
125 125
                                     $rel->file_hash_id = $check->id;
126 126
                                 }
127 127
 
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
                         }
131 131
                     }
132 132
                     $zip->close();
133
-                } else {
133
+                }else {
134 134
                     continue;
135 135
                 }
136 136
             }
Please login to merge, or discard this patch.
app/Console/Commands/GetMissingGameFilesCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
 
56 56
         foreach ($gf as $g) {
57 57
             $filepath = storage_path('app/public/'.$g->filename);
58
-            if (! file_exists($filepath)) {
58
+            if (!file_exists($filepath)) {
59 59
                 $i += 1;
60 60
                 $dev = GamesDeveloper::whereGameId($g->id)->first();
61 61
                 $content .= $i.' - '.$g->game->title.' - '.$g->game->subtitle.' - '.$g->game_id.' - '.$g->game->maker->short.' - '.$g->filename.' - '.$g->release_version.' - '.$g->user->name.PHP_EOL;
Please login to merge, or discard this patch.