Test Setup Failed
Push — master ( 18aad0...79eeb7 )
by Marcel
05:40
created
app/Events/GameView.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     /**
19 19
      * Create a new event instance.
20 20
      *
21
-     * @param $gameid
21
+     * @param integer $gameid
22 22
      * @return void
23 23
      */
24 24
     public function __construct($gameid)
Please login to merge, or discard this patch.
app/Events/Obyx.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -19,6 +19,7 @@
 block discarded – undo
19 19
     /**
20 20
      * Create a new event instance.
21 21
      *
22
+     * @param string $reason
22 23
      * @return void
23 24
      */
24 25
     public function __construct($reason, $user_id)
Please login to merge, or discard this patch.
app/Helpers/DatabaseHelper.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -80,6 +80,9 @@
 block discarded – undo
80 80
         return $v->maxviews;
81 81
     }
82 82
 
83
+    /**
84
+     * @param string $type
85
+     */
83 86
     public static function getCommentsMax($type){
84 87
         $v = \DB::table('comments')
85 88
             ->selectRaw('count(id) as maxviews')
Please login to merge, or discard this patch.
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,11 +25,11 @@  discard block
 block discarded – undo
25 25
 
26 26
             if($releasedate){
27 27
                 return Carbon::parse($releasedate->reldate)->toDateString();
28
-            }else{
28
+            } else{
29 29
                 return '';
30 30
             }
31 31
 
32
-        }else{
32
+        } else{
33 33
             return Carbon::parse($game->release_date)->toDateString();
34 34
         }
35 35
     }
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 
98 98
         if($lang){
99 99
             return $lang->id;
100
-        }else{
100
+        } else{
101 101
             return 0;
102 102
         }
103 103
 
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 
112 112
         if($dev){
113 113
             return $dev->id;
114
-        }else{
114
+        } else{
115 115
             return 0;
116 116
         }
117 117
 
Please login to merge, or discard this patch.
app/Helpers/MiscHelper.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -36,6 +36,9 @@
 block discarded – undo
36 36
         return $ret;
37 37
     }
38 38
 
39
+    /**
40
+     * @param integer $size
41
+     */
39 42
     public static function getReadableBytes($size){
40 43
         $bytes = $size;
41 44
 
Please login to merge, or discard this patch.
Braces   +7 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,8 +12,9 @@  discard block
 block discarded – undo
12 12
                     $difference[$key] = $value;
13 13
                 } else {
14 14
                     $new_diff = MiscHelper::array_diff_assoc_recursive($value, $array2[$key]);
15
-                    if( !empty($new_diff) )
16
-                        $difference[$key] = $new_diff;
15
+                    if( !empty($new_diff) ) {
16
+                                            $difference[$key] = $new_diff;
17
+                    }
17 18
                 }
18 19
             } else if( !array_key_exists($key,$array2) || $array2[$key] !== $value ) {
19 20
                 $difference[$key] = $value;
@@ -29,7 +30,7 @@  discard block
 block discarded – undo
29 30
 
30 31
         if($max == 0 || $views == 0){
31 32
             $ret = 0;
32
-        }else{
33
+        } else{
33 34
             $ret = ($views / $max) * 100;
34 35
         }
35 36
 
@@ -39,8 +40,9 @@  discard block
 block discarded – undo
39 40
     public static function getReadableBytes($size){
40 41
         $bytes = $size;
41 42
 
42
-        if ($bytes == 0)
43
-            return "0.00 B";
43
+        if ($bytes == 0) {
44
+                    return "0.00 B";
45
+        }
44 46
 
45 47
         $s = array('B', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB');
46 48
         $e = floor(log($bytes, 1024));
Please login to merge, or discard this patch.
app/Http/Controllers/CDCController.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
      * Store a newly created resource in storage.
82 82
      *
83 83
      * @param  \Illuminate\Http\Request  $request
84
-     * @return \Illuminate\Http\Response
84
+     * @return \Illuminate\Http\RedirectResponse
85 85
      */
86 86
     public function store(Request $request)
87 87
     {
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
         if(count($title) == 1){
96 96
             $game = Game::whereTitle($title[0])
97 97
                 ->first();
98
-        }else{
98
+        } else{
99 99
             $game = Game::whereTitle($title[0])
100 100
                 ->orWhere('subtitle', '=', $title[1])
101 101
                 ->first();
Please login to merge, or discard this patch.
app/Http/Controllers/GameController.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      * Store a newly created resource in storage.
72 72
      *
73 73
      * @param  \Illuminate\Http\Request $request
74
-     * @return \Illuminate\Http\Response
74
+     * @return \Illuminate\Http\RedirectResponse
75 75
      */
76 76
     public function store(Request $request)
77 77
     {
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
      *
239 239
      * @param  \Illuminate\Http\Request $request
240 240
      * @param  int $id
241
-     * @return \Illuminate\Http\Response
241
+     * @return \Illuminate\Http\RedirectResponse
242 242
      */
243 243
     public function update(Request $request, $id)
244 244
     {
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
      * Remove the specified resource from storage.
265 265
      *
266 266
      * @param  int $id
267
-     * @return \Illuminate\Http\Response
267
+     * @return \Illuminate\Http\RedirectResponse
268 268
      */
269 269
     public function destroy($id)
270 270
     {
Please login to merge, or discard this patch.
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,14 +30,14 @@  discard block
 block discarded – undo
30 30
             $games = Game::Join('games_developer', 'games.id', '=', 'games_developer.game_id')
31 31
                 ->Join('developer', 'games_developer.developer_id', '=', 'developer.id')
32 32
                 ->orderBy($orderby, $direction)->select('games.*')->paginate(20);
33
-        }elseif($orderby == 'game.release_date'){
33
+        } elseif($orderby == 'game.release_date'){
34 34
             $games = Game::Join('games_files', 'games.id', '=', 'games_files.game_id')
35 35
                 ->orderBy('games_files.release_year', $direction)
36 36
                 ->orderBy('games_files.release_month', $direction)
37 37
                 ->orderBy('games_files.release_day', $direction)
38 38
                 ->select('games.*')
39 39
                 ->paginate(20);
40
-        }else{
40
+        } else{
41 41
             $games = Game::orderBy($orderby,$direction)->orderBy('title')->orderBy('subtitle')->paginate(20);
42 42
         }
43 43
 
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
                     GamesDeveloper::whereGameId($id)->delete();
279 279
                     Comment::whereContentId($id)->where('content_type', '=', 'game')->delete();
280 280
                     TagRelation::whereContentId($id)->where('content_type', '=', 'game')->delete();
281
-                }else{
281
+                } else{
282 282
                     return redirect()->action('GameController@edit', $id);
283 283
                 }
284 284
             }
Please login to merge, or discard this patch.
app/Http/Controllers/NewsController.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      * Store a newly created resource in storage.
48 48
      *
49 49
      * @param  \Illuminate\Http\Request  $request
50
-     * @return \Illuminate\Http\Response
50
+     * @return \Illuminate\Http\RedirectResponse
51 51
      */
52 52
     public function store(Request $request)
53 53
     {
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
      *
134 134
      * @param  \Illuminate\Http\Request  $request
135 135
      * @param  int  $id
136
-     * @return \Illuminate\Http\Response
136
+     * @return \Illuminate\Http\RedirectResponse
137 137
      */
138 138
     public function update(Request $request, $id)
139 139
     {
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
      * Remove the specified resource from storage.
159 159
      *
160 160
      * @param  int  $id
161
-     * @return \Illuminate\Http\Response
161
+     * @return \Illuminate\Http\RedirectResponse
162 162
      */
163 163
     public function destroy($id)
164 164
     {
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
                     ->select(['news.id', 'news.title', 'news.news_html', 'news_category', 'users.name', 'news.user_id', 'news.created_at', 'news.approved'])
80 80
                     ->where('news.id', '=', $id)
81 81
                     ->first();
82
-            }else{
82
+            } else{
83 83
                 $news = \DB::table('news')
84 84
                     ->leftJoin('users', 'news.user_id', '=', 'users.id')
85 85
                     ->select(['news.id', 'news.title', 'news.news_html', 'news_category', 'users.name', 'news.user_id', 'news.created_at', 'news.approved'])
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
                     ->where('approved', '=', '1')
88 88
                     ->first();
89 89
             }
90
-        }else{
90
+        } else{
91 91
             $news = \DB::table('news')
92 92
                 ->leftJoin('users', 'news.user_id', '=', 'users.id')
93 93
                 ->select(['news.id', 'news.title', 'news.news_html', 'news_category', 'users.name', 'news.user_id', 'news.created_at', 'news.approved'])
Please login to merge, or discard this patch.
app/Helpers/CheckRateableHelper.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 
17 17
         if($comments->up > 0 || $comments->down > 0){
18 18
             return false;
19
-        }else{
19
+        } else{
20 20
             return true;
21 21
         }
22 22
     }
Please login to merge, or discard this patch.
app/Exceptions/Handler.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
     {
50 50
         if($exception instanceof NotFoundHttpException){
51 51
             return response()->view('errors.404', [], 404);
52
-        }elseif($exception instanceof AccessDeniedHttpException){
52
+        } elseif($exception instanceof AccessDeniedHttpException){
53 53
             return response()->view('errors.403', [], 403);
54 54
         }
55 55
         return parent::render($request, $exception);
Please login to merge, or discard this patch.