Test Setup Failed
Push — master ( 00c8ca...80efe2 )
by Sam
05:11 queued 25s
created
app/Http/Middleware/CheckAssociation.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,8 +28,7 @@
 block discarded – undo
28 28
 
29 29
         if (Bouncer::can('manage', $association)) {
30 30
             return $next($request);
31
-        }
32
-        else {
31
+        } else {
33 32
             return redirect()->route('admin');
34 33
         }
35 34
     }
Please login to merge, or discard this patch.
app/Http/Controllers/ResultSubmissionsController.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,8 +75,7 @@
 block discarded – undo
75 75
 
76 76
         if ($request->delete == 'delete') {
77 77
             $submission->delete();
78
-        }
79
-        else {
78
+        } else {
80 79
             $result = Result::where('match_id', $submission->match_id)->first();
81 80
 
82 81
             if (empty($result)) {
Please login to merge, or discard this patch.
app/Http/Controllers/AdminController.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -13,8 +13,7 @@  discard block
 block discarded – undo
13 13
     public function admin() {
14 14
         if (Bouncer::can('view-admin-pages')) {
15 15
             return view('admin');
16
-        }
17
-        else {
16
+        } else {
18 17
             return view('denied');
19 18
         }
20 19
     }
@@ -24,8 +23,7 @@  discard block
 block discarded – undo
24 23
             return view('admin.users', [
25 24
                 'users' => User::all(),
26 25
             ]);
27
-        }
28
-        else {
26
+        } else {
29 27
             return view('denied');
30 28
         }
31 29
     }
@@ -35,8 +33,7 @@  discard block
 block discarded – undo
35 33
             $associations = Association::onlyTrashed()->get();
36 34
 
37 35
             return view('admin.associations.trashed', ['associations' => $associations]);
38
-        }
39
-        else {
36
+        } else {
40 37
             return view('denied');
41 38
         }
42 39
     }
Please login to merge, or discard this patch.
app/Http/Controllers/SeriesController.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -75,8 +75,7 @@  discard block
 block discarded – undo
75 75
             //$start_date_timestamp = strtotime($request->start_date);
76 76
             //$series->start_date = $start_date_timestamp;
77 77
             $series->start_date = $request->start_date;
78
-        }
79
-        else {
78
+        } else {
80 79
             $series->start_date = NULL;
81 80
         }
82 81
 
@@ -84,8 +83,7 @@  discard block
 block discarded – undo
84 83
             //$end_date_timestamp = strtotime($request->end_date);
85 84
             //$series->end_date = $end_date_timestamp;
86 85
             $series->end_date = $request->end_date;
87
-        }
88
-        else {
86
+        } else {
89 87
             $series->end_date = NULL;
90 88
         }
91 89
 
Please login to merge, or discard this patch.
app/Http/Controllers/UsersController.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,7 @@
 block discarded – undo
22 22
                 'associations' => $associations,
23 23
                 'series' => $series,
24 24
             ]);
25
-        }
26
-        else {
25
+        } else {
27 26
             return view('denied');
28 27
         }
29 28
     }
Please login to merge, or discard this patch.
app/Http/Controllers/DivisionsController.php 1 patch
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -31,8 +31,7 @@  discard block
 block discarded – undo
31 31
             $division->save();
32 32
 
33 33
             return redirect()->route('association.divisions', ['association' => $association]);
34
-        }
35
-        else {
34
+        } else {
36 35
             return view('denied');
37 36
         }
38 37
     }
@@ -50,8 +49,7 @@  discard block
 block discarded – undo
50 49
             $division->save();
51 50
 
52 51
             return redirect()->route('association.divisions', ['association' => $association]);
53
-        }
54
-        else {
52
+        } else {
55 53
             return view('denied');
56 54
         }
57 55
     }
@@ -62,8 +60,7 @@  discard block
 block discarded – undo
62 60
                 'association' => $association,
63 61
                 'division' => $division,
64 62
             ]);
65
-        }
66
-        else {
63
+        } else {
67 64
             return view('denied');
68 65
         }
69 66
     }
@@ -71,8 +68,7 @@  discard block
 block discarded – undo
71 68
     public function deleteConfirm(Association $association, Division $division) {
72 69
         if (Bouncer::can('delete', $division)) {
73 70
             return view('division.delete', ['division' => $division]);
74
-        }
75
-        else {
71
+        } else {
76 72
             return view('denied');
77 73
         }
78 74
     }
@@ -82,8 +78,7 @@  discard block
 block discarded – undo
82 78
             $division->delete();
83 79
 
84 80
             return redirect()->route('association.divisions', ['association' => $association])->with('success', 'Division deleted successfully.');
85
-        }
86
-        else {
81
+        } else {
87 82
             return view('denied');
88 83
         }
89 84
     }
Please login to merge, or discard this patch.
app/Http/Controllers/TeamsController.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -31,8 +31,7 @@  discard block
 block discarded – undo
31 31
             $team->save();
32 32
 
33 33
             return redirect()->route('association.teams', ['association' => $association]);
34
-        }
35
-        else {
34
+        } else {
36 35
             return view('denied');
37 36
         }
38 37
     }
@@ -51,8 +50,7 @@  discard block
 block discarded – undo
51 50
             $team->save();
52 51
 
53 52
             return redirect()->route('association.teams', ['association' => $team->association]);
54
-        }
55
-        else {
53
+        } else {
56 54
             return view('denied');
57 55
         }
58 56
     }
@@ -64,8 +62,7 @@  discard block
 block discarded – undo
64 62
     public function deleteConfirm(Association $association, Team $team) {
65 63
         if (Bouncer::can('delete', $team)) {
66 64
             return view('team.delete', ['team' => $team]);
67
-        }
68
-        else {
65
+        } else {
69 66
             return view('denied');
70 67
         }
71 68
     }
@@ -75,8 +72,7 @@  discard block
 block discarded – undo
75 72
             $team->delete();
76 73
 
77 74
             return redirect()->route('association.teams', ['association' => $association])->with('success', 'Team deleted successfully.');
78
-        }
79
-        else {
75
+        } else {
80 76
             return view('denied');
81 77
         }
82 78
     }
Please login to merge, or discard this patch.
app/Http/Controllers/VenuesController.php 1 patch
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -30,8 +30,7 @@  discard block
 block discarded – undo
30 30
             $venue->save();
31 31
 
32 32
             return redirect()->route('association.venues', ['association' => $association]);
33
-        }
34
-        else {
33
+        } else {
35 34
             return view('denied');
36 35
         }
37 36
     }
@@ -39,8 +38,7 @@  discard block
 block discarded – undo
39 38
     public function edit(Association $association, Venue $venue) {
40 39
         if (Bouncer::can('edit', Venue::class)) {
41 40
             return view('venue.edit', ['venue' => $venue]);
42
-        }
43
-        else {
41
+        } else {
44 42
             return view('denied');
45 43
         }
46 44
     }
@@ -58,8 +56,7 @@  discard block
 block discarded – undo
58 56
             $venue->save();
59 57
 
60 58
             return redirect()->route('association.venues', ['association' => $venue->association]);
61
-        }
62
-        else {
59
+        } else {
63 60
             return view('denied');
64 61
         }
65 62
     }
@@ -67,8 +64,7 @@  discard block
 block discarded – undo
67 64
     public function deleteConfirm(Venue $venue) {
68 65
         if (Bouncer::can('delete', $venue)) {
69 66
             return view('venue.delete', ['venue' => $venue]);
70
-        }
71
-        else {
67
+        } else {
72 68
             return view('denied');
73 69
         }
74 70
     }
@@ -80,8 +76,7 @@  discard block
 block discarded – undo
80 76
             $venue->delete();
81 77
 
82 78
             return redirect()->route('association.venues', ['association' => $association])->with('success', 'Venue deleted successfully.');
83
-        }
84
-        else {
79
+        } else {
85 80
             return view('denied');
86 81
         }
87 82
     }
Please login to merge, or discard this patch.
app/Http/Controllers/ScheduleController.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,8 +63,7 @@
 block discarded – undo
63 63
         if (!empty($division)) {
64 64
             $schedule->name = $division->name;
65 65
             $schedule->sequence = $division->sequence;
66
-        }
67
-        else {
66
+        } else {
68 67
             $schedule->name = $schedule->start_date;
69 68
             $schedule->sequence = null;
70 69
         }
Please login to merge, or discard this patch.