Test Setup Failed
Branch master (815d3e)
by Julien
20:01
created
app/Http/Controllers/FederationController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
      *
69 69
      * @param FederationRequest|\Illuminate\Http\Request $request
70 70
      * @param  int $id
71
-     * @return \Illuminate\Http\Response
71
+     * @return \Illuminate\Http\RedirectResponse
72 72
      * @throws NotOwningFederationException
73 73
      */
74 74
     public function update(FederationRequest $request, $id)
Please login to merge, or discard this patch.
app/Http/Controllers/InviteController.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      * Send an email to competitor and store invitation.
63 63
      *
64 64
      * @param InviteRequest|Request $request
65
-     * @return \Illuminate\Http\Response
65
+     * @return \Illuminate\Http\RedirectResponse
66 66
      */
67 67
     public function store(Request $request)
68 68
     {
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      * Send an email to competitor and store invitation.
90 90
      *
91 91
      * @param InviteRequest|Request $request
92
-     * @return \Illuminate\Http\Response
92
+     * @return \Illuminate\Http\RedirectResponse
93 93
      */
94 94
     public function upload(Request $request)
95 95
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
         $tournament = Tournament::where('slug', $request->tournamentSlug)->first();
99 99
         // Parse Csv File
100 100
 
101
-        $reader = Excel::load("storage/app/" . $file, function ($reader) {
101
+        $reader = Excel::load("storage/app/" . $file, function($reader) {
102 102
         })->get();
103 103
 
104 104
         // Checking if malformed email
Please login to merge, or discard this patch.
app/Http/Controllers/TeamController.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 
70 70
     /**
71 71
      * @param $championship
72
-     * @param $tempAssignCompatitors
72
+     * @param Collection $tempAssignCompatitors
73 73
      * @return mixed
74 74
      */
75 75
     private function getAssignedCompetitors($championship, $tempAssignCompatitors)
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      *
99 99
      * @param Request $request
100 100
      * @param Championship $championship
101
-     * @return View
101
+     * @return \Illuminate\Http\RedirectResponse
102 102
      * @throws AuthorizationException
103 103
      */
104 104
     public function store(Request $request, Championship $championship)
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
      * @param TeamRequest $request
144 144
      * @param Tournament $tournament
145 145
      * @param $teamId
146
-     * @return Response
146
+     * @return \Illuminate\Http\RedirectResponse
147 147
      * @throws AuthorizationException
148 148
      */
149 149
     public function update(TeamRequest $request, Tournament $tournament, $teamId)
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -35,20 +35,20 @@  discard block
 block discarded – undo
35 35
      */
36 36
     public function index(Tournament $tournament)
37 37
     {
38
-        $tournament = Tournament::with(['championships' => function ($query) {
38
+        $tournament = Tournament::with(['championships' => function($query) {
39 39
             $query->with('teams')
40
-                ->whereHas('category', function ($subquery) {
40
+                ->whereHas('category', function($subquery) {
41 41
                     $subquery->where('isTeam', '=', 1);
42 42
                 });
43 43
         }])->withCount('competitors', 'teams')
44 44
             ->find($tournament->id);
45 45
 
46 46
 
47
-        $arrChampionshipsWithTeamsAndCompetitors = $tournament->championships->map(function ($championship) {
48
-            $competitors = $championship->competitors->map(function ($competitor) {
47
+        $arrChampionshipsWithTeamsAndCompetitors = $tournament->championships->map(function($championship) {
48
+            $competitors = $championship->competitors->map(function($competitor) {
49 49
                 return ["id" => $competitor->id, "name" => $competitor->user->name];
50 50
             })->toArray();
51
-            $teams = $championship->teams->map(function ($team) {
51
+            $teams = $championship->teams->map(function($team) {
52 52
                 return ["id" => $team->id, "name" => $team->name, 'competitors' => $team->with('user')];
53 53
             })->toArray();
54 54
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      */
75 75
     private function getAssignedCompetitors($championship, $tempAssignCompatitors)
76 76
     {
77
-        return $championship->teams->reduce(function ($acc, $team) use ($tempAssignCompatitors) {
77
+        return $championship->teams->reduce(function($acc, $team) use ($tempAssignCompatitors) {
78 78
             return $tempAssignCompatitors->push($team->competitors()->with('user')->get())->collapse();
79 79
         });
80 80
     }
Please login to merge, or discard this patch.
app/Http/Controllers/TournamentController.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
      * Store a new Tournament
78 78
      *
79 79
      * @param TournamentRequest $form
80
-     * @return \Illuminate\Http\Response
80
+     * @return \Illuminate\Http\RedirectResponse
81 81
      */
82 82
     public function store(TournamentRequest $form)
83 83
     {
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -144,8 +144,9 @@
 block discarded – undo
144 144
     {
145 145
         //TODO Shouldn't I have a Policy???
146 146
         $venue = $tournament->venue;
147
-        if ($venue == null)
148
-            $venue = new Venue;
147
+        if ($venue == null) {
148
+                    $venue = new Venue;
149
+        }
149 150
 
150 151
         if ($venueRequest->has('venue_name')) {
151 152
             $venue->fill($venueRequest->all());
Please login to merge, or discard this patch.
app/Http/Controllers/TreeController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      * Build Tree
31 31
      *
32 32
      * @param Request $request
33
-     * @return \Illuminate\Http\Response|string
33
+     * @return \Illuminate\Http\RedirectResponse
34 34
      * @throws AuthorizationException
35 35
      */
36 36
     public function store(Request $request)
Please login to merge, or discard this patch.
app/Http/Controllers/UserController.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@
 block discarded – undo
130 130
      *
131 131
      * @param  UserRequest $userForm
132 132
      * @param User $user
133
-     * @return Response
133
+     * @return \Illuminate\Http\RedirectResponse
134 134
      */
135 135
     public function update(UserRequest $userForm, User $user)
136 136
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
     public function export()
152 152
     {
153 153
 
154
-        Excel::create(trans_choice('core.user', 2), function ($excel) {
154
+        Excel::create(trans_choice('core.user', 2), function($excel) {
155 155
             $appName = (app()->environment() == 'local' ? getenv('APP_NAME') : config('app.name'));
156 156
 
157 157
             // Set the title
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
 
164 164
             // Call them separately
165 165
             $excel->setDescription('A list of users');
166
-            $excel->sheet(trans_choice('core.user', 2), function ($sheet) {
166
+            $excel->sheet(trans_choice('core.user', 2), function($sheet) {
167 167
                 //TODO Here we should join grade, role, country to print name not FK
168 168
                 $users = User::all();
169 169
 //                $users = User::with(['grade', 'role'])->get();
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
     {
179 179
         $tournaments = Auth::user()->myTournaments()->with('owner')
180 180
             ->orderBy('created_at', 'desc')
181
-            ->paginate(config('constants.PAGINATION'));;
181
+            ->paginate(config('constants.PAGINATION')); ;
182 182
 
183 183
         $title = trans('core.tournaments_registered');
184 184
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -136,8 +136,9 @@
 block discarded – undo
136 136
     {
137 137
         if ($userForm->update($user)) {
138 138
             flash()->success(trans('msg.user_update_successful'));
139
-        } else
140
-            flash()->error(Lang::get('msg.user_update_error'));
139
+        } else {
140
+                    flash()->error(Lang::get('msg.user_update_error'));
141
+        }
141 142
 
142 143
         if ($user->id == Auth::user()->id) {
143 144
             return redirect(URL::action('UserController@edit', Auth::user()->slug));
Please login to merge, or discard this patch.
app/Notifications/AccountCreated.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
      * Get the notification's delivery channels.
28 28
      *
29 29
      * @param  mixed $notifiable
30
-     * @return array
30
+     * @return string[]
31 31
      */
32 32
     public function via($notifiable)
33 33
     {
Please login to merge, or discard this patch.
app/Notifications/AccountRegistered.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      * Get the notification's delivery channels.
27 27
      *
28 28
      * @param  mixed $notifiable
29
-     * @return array
29
+     * @return string[]
30 30
      */
31 31
     public function via($notifiable)
32 32
     {
Please login to merge, or discard this patch.
app/Notifications/InviteCompetitor.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
      * Get the notification's delivery channels.
36 36
      *
37 37
      * @param  mixed $notifiable
38
-     * @return array
38
+     * @return string[]
39 39
      */
40 40
     public function via($notifiable)
41 41
     {
Please login to merge, or discard this patch.