Test Setup Failed
Push — master ( 64bc05...ece723 )
by Sam
04:05
created
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.