Completed
Push — master ( a482d1...249bf4 )
by Eric
05:42 queued 02:12
created
app/Providers/RouteServiceProvider.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -52,8 +52,8 @@  discard block
 block discarded – undo
52 52
     protected function mapWebRoutes()
53 53
     {
54 54
         Route::middleware('web')
55
-             ->namespace($this->namespace)
56
-             ->group(base_path('routes/web.php'));
55
+                ->namespace($this->namespace)
56
+                ->group(base_path('routes/web.php'));
57 57
     }
58 58
 
59 59
     /**
@@ -66,8 +66,8 @@  discard block
 block discarded – undo
66 66
     protected function mapApiRoutes()
67 67
     {
68 68
         Route::prefix('api')
69
-             ->middleware('api')
70
-             ->namespace($this->namespace)
71
-             ->group(base_path('routes/api.php'));
69
+                ->middleware('api')
70
+                ->namespace($this->namespace)
71
+                ->group(base_path('routes/api.php'));
72 72
     }
73 73
 }
Please login to merge, or discard this patch.
app/helpers.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 use Spatie\Permission\Models\Permission;
4 4
 use Spatie\Permission\Models\Role;
5 5
 
6
-if (!function_exists('initialize_task_permission')) {
6
+if ( ! function_exists('initialize_task_permission')) {
7 7
     function initialize_task_permissions()
8 8
     {
9 9
         Permission::firstOrCreate(['name' => 'list-tasks']);
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     }
23 23
 }
24 24
 
25
-if (!function_exists('create_user')) {
25
+if ( ! function_exists('create_user')) {
26 26
     function create_user()
27 27
     {
28 28
         factory(User::class)->create([
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     }
34 34
 }
35 35
 
36
-if (!function_exists('first_user_as_task_manager')) {
36
+if ( ! function_exists('first_user_as_task_manager')) {
37 37
     function first_user_as_task_manager()
38 38
     {
39 39
         User::all()->first()->assignRole('task-manager');
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/LoginController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
         if ($this->username() === 'email') {
73 73
             return $this->attemptLoginAtAuthenticatesUsers($request);
74 74
         }
75
-        if (!$this->attemptLoginAtAuthenticatesUsers($request)) {
75
+        if ( ! $this->attemptLoginAtAuthenticatesUsers($request)) {
76 76
             return $this->attempLoginUsingUsernameAsAnEmail($request);
77 77
         }
78 78
 
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/ResetPasswordController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
         // will update the password on an actual user model and persist it to the
39 39
         // database. Otherwise we will parse the error and return the response.
40 40
         $response = $this->broker()->reset(
41
-            $this->credentials($request), function ($user, $password) {
41
+            $this->credentials($request), function($user, $password) {
42 42
                 $this->resetPassword($user, $password);
43 43
             }
44 44
         );
Please login to merge, or discard this patch.
app/Http/Controllers/TaskController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
         $tasks = Task::all();
24 24
         $users = User::all();
25 25
 
26
-        return view('tasks_php', ['tasks' => $tasks,'users' => $users]);
26
+        return view('tasks_php', ['tasks' => $tasks, 'users' => $users]);
27 27
 
28 28
     }
29 29
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      */
95 95
     public function update(UpdateTask $request, Task $task)
96 96
     {
97
-        $task->update($request->only(['name','user_id']));
97
+        $task->update($request->only(['name', 'user_id']));
98 98
 
99 99
         Session::flash('status', 'Edited ok!');
100 100
         return Redirect::to('/tasks_php/edit/'.$task->id);
Please login to merge, or discard this patch.
app/Console/Commands/ListTasksCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,13 +43,13 @@
 block discarded – undo
43 43
         try {
44 44
             $tasks = Task::all();
45 45
 
46
-            $headers = ['id', 'Name', 'Completed','User id','User Name'];
46
+            $headers = ['id', 'Name', 'Completed', 'User id', 'User Name'];
47 47
             $fields = [];
48 48
             foreach ($tasks as $task) {
49 49
                 $fields[] = [
50 50
                     'id:'        => $task->id,
51 51
                     'Name:'        => $task->name,
52
-                    'Completed:'        => $task->completed?'Yes':'No',
52
+                    'Completed:'        => $task->completed ? 'Yes' : 'No',
53 53
                     'User id:'     => $task->user_id,
54 54
                     'User name:'   => User::findOrFail($task->user_id)->name,
55 55
                 ];
Please login to merge, or discard this patch.
app/Console/Commands/ShowTaskCommand.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,10 +46,10 @@
 block discarded – undo
46 46
             $headers = ['Key', 'Value'];
47 47
 
48 48
             $fields = [
49
-              ['Name:', $task->name],
49
+                ['Name:', $task->name],
50 50
                 ['Completed:', $task->completed?'Yes':'No',],
51
-              ['User id:', $task->user_id],
52
-              ['User name:', $user->name],
51
+                ['User id:', $task->user_id],
52
+                ['User name:', $user->name],
53 53
             ];
54 54
 
55 55
             $this->table($headers, $fields);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
 
48 48
             $fields = [
49 49
               ['Name:', $task->name],
50
-                ['Completed:', $task->completed?'Yes':'No',],
50
+                ['Completed:', $task->completed ? 'Yes' : 'No', ],
51 51
               ['User id:', $task->user_id],
52 52
               ['User name:', $user->name],
53 53
             ];
Please login to merge, or discard this patch.