Test Setup Failed
Push — master ( 0c371c...acfc24 )
by Marcel
04:23
created
app/Http/Controllers/CDCController.php 1 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/TaggingController.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,9 +83,9 @@
 block discarded – undo
83 83
 
84 84
         if ($request->get('content_type') == 'news') {
85 85
             return \Redirect::action('NewsController@show', $request->get('content_id'));
86
-        }elseif ($request->get('content_type') == 'game') {
86
+        } elseif ($request->get('content_type') == 'game') {
87 87
             return \Redirect::action('GameController@show', $request->get('content_id'));
88
-        }elseif ($request->get('content_type') == 'resource') {
88
+        } elseif ($request->get('content_type') == 'resource') {
89 89
             return \Redirect::action('ResourceController@show', $request->get('content_id'));
90 90
         }
91 91
 
Please login to merge, or discard this patch.
app/Http/Controllers/IndexController.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
 
93 93
         if (\Auth::check()) {
94 94
             $pm = \Auth::user()->newThreadsCount();
95
-        }else {
95
+        } else {
96 96
             $pm = '';
97 97
         }
98 98
 
Please login to merge, or discard this patch.
app/Http/Controllers/LogoController.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
         if ($request->get('value') == 0) {
40 40
             $lv->down = 1;
41 41
             $lv->up = 0;
42
-        }else {
42
+        } else {
43 43
             $lv->down = 0;
44 44
             $lv->up = 1;
45 45
         }
Please login to merge, or discard this patch.
app/Http/Controllers/EventController.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
         $es->reg_end_date = $request->get('reg_end');
61 61
         if ($request->get('reg_allowed') == "on") {
62 62
             $es->reg_allowed = 1;
63
-        }else {
63
+        } else {
64 64
             $es->reg_allowed = 0;
65 65
         }
66 66
         $es->save();
Please login to merge, or discard this patch.
app/Http/Controllers/CommentController.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,11 +25,11 @@
 block discarded – undo
25 25
             $comment->vote_up = 1;
26 26
             $comment->vote_down = 0;
27 27
             event(new Obyx('rating', \Auth::id()));
28
-        }elseif ($rate == 'down') {
28
+        } elseif ($rate == 'down') {
29 29
             $comment->vote_up = 0;
30 30
             $comment->vote_down = 1;
31 31
             event(new Obyx('rating', \Auth::id()));
32
-        }else {
32
+        } else {
33 33
             $comment->vote_up = 0;
34 34
             $comment->vote_down = 0;
35 35
         }
Please login to merge, or discard this patch.
app/Http/Controllers/BoardController.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -83,11 +83,11 @@
 block discarded – undo
83 83
         return redirect()->action('BoardController@create_cat');
84 84
     }
85 85
 
86
-    public function show_thread($threadid){
86
+    public function show_thread($threadid) {
87 87
         $posts = BoardPost::with('user', 'thread', 'cat')->whereThreadId($threadid)->orderBy('id')->paginate(25);
88
-        if(!Input::get('page')){
88
+        if (!Input::get('page')) {
89 89
             return redirect('board/thread/'.$threadid.'?page='.$posts->lastPage());
90
-        }else{
90
+        }else {
91 91
             return view('board.threads.show', [
92 92
                 'posts' => $posts,
93 93
             ]);
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
             \DB::table('board_cats')
59 59
                 ->where('id', '=', $catid)
60 60
                 ->increment('order');
61
-        }else {
61
+        } else {
62 62
             \DB::table('board_cats')
63 63
                 ->where('id', '=', $catid)
64 64
                 ->decrement('order');
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
         $posts = BoardPost::with('user', 'thread', 'cat')->whereThreadId($threadid)->orderBy('id')->paginate(25);
88 88
         if(!Input::get('page')){
89 89
             return redirect('board/thread/'.$threadid.'?page='.$posts->lastPage());
90
-        }else{
90
+        } else{
91 91
             return view('board.threads.show', [
92 92
                 'posts' => $posts,
93 93
             ]);
Please login to merge, or discard this patch.
app/Http/Controllers/ScreenshotController.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
         //Prüfen ob Screenshots vorhanden sind
22 22
         if (is_null($s)) {//Es sind keine Screenshots vorhanden
23 23
             $storagePath = public_path().'/assets/no_image.png';
24
-        }else {//Es sind Screenshots vorhanden
24
+        } else {//Es sind Screenshots vorhanden
25 25
             $storagePath = \Storage::get($s->filename);
26 26
         }
27 27
 
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.