Test Setup Failed
Push — master ( 26c0d5...1d6e22 )
by Sam
05:00
created
app/Console/Kernel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
      */
36 36
     protected function commands()
37 37
     {
38
-        $this->load(__DIR__.'/Commands');
38
+        $this->load(__DIR__ . '/Commands');
39 39
 
40 40
         require base_path('routes/console.php');
41 41
     }
Please login to merge, or discard this patch.
app/Http/Middleware/Authenticate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      */
15 15
     protected function redirectTo($request)
16 16
     {
17
-        if (! $request->expectsJson()) {
17
+        if (!$request->expectsJson()) {
18 18
             return route('login');
19 19
         }
20 20
     }
Please login to merge, or discard this patch.
app/Http/Middleware/Subdomain.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      */
16 16
     public function handle($request, Closure $next)
17 17
     {
18
-        \URL::defaults(['subdomain' => request('subdomain')]);
18
+        \URL::defaults([ 'subdomain' => request('subdomain') ]);
19 19
 
20 20
         return $next($request);
21 21
     }
Please login to merge, or discard this patch.
app/Http/Controllers/ResultSubmissionsController.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 index(Association $association)
18 18
     {
19
-        return view('result_submissions.approve', ['association' => $association]);
19
+        return view('result_submissions.approve', [ 'association' => $association ]);
20 20
     }
21 21
 
22 22
     /**
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             return redirect($url)->with('success', 'Data saved successfully!');
102 102
         }
103 103
 
104
-        return redirect()->route('user', ['id' => \Auth::user()->id]);
104
+        return redirect()->route('user', [ 'id' => \Auth::user()->id ]);
105 105
     }
106 106
 
107 107
     /**
Please login to merge, or discard this patch.
app/Http/Controllers/AdminController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
         if (Bouncer::can('administer-associations')) {
35 35
             $associations = Association::onlyTrashed()->get();
36 36
 
37
-            return view('admin.associations.trashed', ['associations' => $associations]);
37
+            return view('admin.associations.trashed', [ 'associations' => $associations ]);
38 38
         }
39 39
         else {
40 40
             return view('denied');
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/RegisterController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -50,9 +50,9 @@  discard block
 block discarded – undo
50 50
     protected function validator(array $data)
51 51
     {
52 52
         return Validator::make($data, [
53
-            'name' => ['required', 'string', 'max:255'],
54
-            'email' => ['required', 'string', 'email', 'max:255', 'unique:users'],
55
-            'password' => ['required', 'string', 'min:8', 'confirmed'],
53
+            'name' => [ 'required', 'string', 'max:255' ],
54
+            'email' => [ 'required', 'string', 'email', 'max:255', 'unique:users' ],
55
+            'password' => [ 'required', 'string', 'min:8', 'confirmed' ],
56 56
         ]);
57 57
     }
58 58
 
@@ -65,9 +65,9 @@  discard block
 block discarded – undo
65 65
     protected function create(array $data)
66 66
     {
67 67
         $user = User::create([
68
-            'name' => $data['name'],
69
-            'email' => $data['email'],
70
-            'password' => Hash::make($data['password']),
68
+            'name' => $data[ 'name' ],
69
+            'email' => $data[ 'email' ],
70
+            'password' => Hash::make($data[ 'password' ]),
71 71
         ]);
72 72
 
73 73
         Bouncer::assign('authenticated')->to($user);
Please login to merge, or discard this patch.
app/Match.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 class Match extends Model
8 8
 {
9 9
 
10
-    protected $fillable = array('name', 'start_date', 'end_date', 'association_id',  'series_id', 'division_id', 'schedule_id', 'round_id', 'venue_id', 'home_team_id', 'away_team_id');
10
+    protected $fillable = array('name', 'start_date', 'end_date', 'association_id', 'series_id', 'division_id', 'schedule_id', 'round_id', 'venue_id', 'home_team_id', 'away_team_id');
11 11
 
12 12
     public function association() {
13 13
         return $this->belongsTo('App\Association');
Please login to merge, or discard this patch.
app/Http/Controllers/DivisionsController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
             $division->save();
32 32
 
33
-            return redirect()->route('association.divisions', ['association' => $association]);
33
+            return redirect()->route('association.divisions', [ 'association' => $association ]);
34 34
         }
35 35
         else {
36 36
             return view('denied');
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
             $division->save();
51 51
 
52
-            return redirect()->route('association.divisions', ['association' => $association]);
52
+            return redirect()->route('association.divisions', [ 'association' => $association ]);
53 53
         }
54 54
         else {
55 55
             return view('denied');
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
     public function deleteConfirm(Association $association, Division $division) {
72 72
         if (Bouncer::can('delete', $division)) {
73
-            return view('division.delete', ['division' => $division]);
73
+            return view('division.delete', [ 'division' => $division ]);
74 74
         }
75 75
         else {
76 76
             return view('denied');
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         if (Bouncer::can('delete', $division)) {
82 82
             $division->delete();
83 83
 
84
-            return redirect()->route('association.divisions', ['association' => $association])->with('success', 'Division deleted successfully.');
84
+            return redirect()->route('association.divisions', [ 'association' => $association ])->with('success', 'Division deleted successfully.');
85 85
         }
86 86
         else {
87 87
             return view('denied');
Please login to merge, or discard this patch.
app/Http/Controllers/TeamsController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
             $team->save();
32 32
 
33
-            return redirect()->route('association.teams', ['association' => $association]);
33
+            return redirect()->route('association.teams', [ 'association' => $association ]);
34 34
         }
35 35
         else {
36 36
             return view('denied');
@@ -43,14 +43,14 @@  discard block
 block discarded – undo
43 43
                 'name' => 'required|max:255',
44 44
             ]);
45 45
 
46
-            $team = Team::where(['id' => $team->id])->first();
46
+            $team = Team::where([ 'id' => $team->id ])->first();
47 47
 
48 48
             $team->name = $request->name;
49 49
             $team->venue_id = !empty($request->venue_id) ? $request->venue_id : null;
50 50
 
51 51
             $team->save();
52 52
 
53
-            return redirect()->route('association.teams', ['association' => $team->association]);
53
+            return redirect()->route('association.teams', [ 'association' => $team->association ]);
54 54
         }
55 55
         else {
56 56
             return view('denied');
@@ -58,12 +58,12 @@  discard block
 block discarded – undo
58 58
     }
59 59
 
60 60
     public function edit(Association $association, Team $team) {
61
-        return view('team.edit', ['team' => $team]);
61
+        return view('team.edit', [ 'team' => $team ]);
62 62
     }
63 63
 
64 64
     public function deleteConfirm(Association $association, Team $team) {
65 65
         if (Bouncer::can('delete', $team)) {
66
-            return view('team.delete', ['team' => $team]);
66
+            return view('team.delete', [ 'team' => $team ]);
67 67
         }
68 68
         else {
69 69
             return view('denied');
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         if (Bouncer::can('delete', $team)) {
75 75
             $team->delete();
76 76
 
77
-            return redirect()->route('association.teams', ['association' => $association])->with('success', 'Team deleted successfully.');
77
+            return redirect()->route('association.teams', [ 'association' => $association ])->with('success', 'Team deleted successfully.');
78 78
         }
79 79
         else {
80 80
             return view('denied');
Please login to merge, or discard this patch.