Completed
Push — master ( 6c1249...86e9bb )
by Quim González
04:48
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/Console/Commands/ListTaskCommand.php 1 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
             $this->table($headers, $tasks);
49 49
         } catch (exception $e) {
50
-            $this->error('Error: '.$e);
50
+            $this->error('Error: ' . $e);
51 51
         }
52 52
     }
53 53
 }
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/helpers.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 //funció creada per veure si el rol ja te assignat un permís, si el te no fem res, sino li assignem.
9 9
 // si no es fa així provoca error:
10 10
 //Illuminate\Database\QueryException with message 'SQLSTATE[23000]: Integrity constraint violation: 19 UNIQUE constraint failed: role_has_permissions.permission_id, role_has_permissions.role_id (SQL: insert into "role_has_permissions" ("permission_id", "role_id") values (1, 1))'
11
-if (!function_exists('assignPermission')) {
11
+if ( ! function_exists('assignPermission')) {
12 12
 
13 13
     /**
14 14
      * @param $role
@@ -16,13 +16,13 @@  discard block
 block discarded – undo
16 16
      */
17 17
     function assignPermission($role, $permission)
18 18
     {
19
-        if (!$role->hasPermissionTo($permission)) {
19
+        if ( ! $role->hasPermissionTo($permission)) {
20 20
             $role->givePermissionTo($permission);
21 21
         }
22 22
     }
23 23
 }
24 24
 
25
-if (!function_exists('initialize_task_permissions')) {
25
+if ( ! function_exists('initialize_task_permissions')) {
26 26
     function initialize_task_permissions()
27 27
     {
28 28
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     }
58 58
 }
59 59
 
60
-if (!function_exists('create_user')) {
60
+if ( ! function_exists('create_user')) {
61 61
     function create_user()
62 62
     {
63 63
         factory(User::class)->create([
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     }
69 69
 }
70 70
 
71
-if (!function_exists('first_user_as_task_manager')) {
71
+if ( ! function_exists('first_user_as_task_manager')) {
72 72
     function first_user_as_task_manager()
73 73
     {
74 74
         User::all()->first()->assignRole('task-manager');
Please login to merge, or discard this patch.
app/Console/Commands/CreateTaskCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 
52 52
             ]);
53 53
         } catch (Exception $e) {
54
-            $this->error('error'.$e);
54
+            $this->error('error' . $e);
55 55
         }
56 56
 
57 57
         $this->info('Task has been added to database succesfully');
Please login to merge, or discard this patch.
app/Console/Commands/EditTaskCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
                 'description' => $this->argument('description') ? $this->argument('description') : $this->ask('Task description?'),
54 54
             ]);
55 55
         } catch (Exception $e) {
56
-            $this->error('error'.$e);
56
+            $this->error('error' . $e);
57 57
         }
58 58
         $this->info('Task has been edited succesfully');
59 59
     }
Please login to merge, or discard this patch.
app/Console/Commands/ShowTaskCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
             ];
57 57
             $this->table($headers, $info);
58 58
         } catch (Exception $e) {
59
-            $this->error('error'.$e);
59
+            $this->error('error' . $e);
60 60
         }
61 61
     }
62 62
 }
Please login to merge, or discard this patch.
app/Console/Commands/DestroyTaskCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,11 +43,11 @@
 block discarded – undo
43 43
             $id = $this->argument('id') ? $this->argument('id') : $this->ask('Event id?');
44 44
             $count = Task::destroy($id);
45 45
         } catch (Exception $e) {
46
-            $this->error('error'.$e);
46
+            $this->error('error' . $e);
47 47
         }
48 48
         if ($count == 0) {
49 49
             $this->alert('Task does not exist');
50
-        } else {
50
+        }else {
51 51
             $this->info('Task has been deleted to database succesfully');
52 52
         }
53 53
     }
Please login to merge, or discard this patch.