Passed
Branch master (a8d87c)
by John
02:45
created
app/Services/ApiService.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 
35 35
     public function exists()
36 36
     {
37
-      // dd($this->api->where('user_id', auth()->id())->first());
37
+        // dd($this->api->where('user_id', auth()->id())->first());
38 38
         if (count(ApiKeys::where('user_id', auth()->id())->first())) {
39 39
             return true;
40 40
         } else {
Please login to merge, or discard this patch.
app/Services/CaptchaService.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     public static function GenerateCode($start = "1000", $end="99999"){
12 12
         $code = random_int($start, $end);
13 13
         session()->put('code', $code);
14
-       // dd(session()->get('code'));
14
+        // dd(session()->get('code'));
15 15
         return $code;
16 16
 }
17 17
 
Please login to merge, or discard this patch.
app/Tasks.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 
11 11
     public function user()
12 12
     {
13
-       return $this->belongsTo('\TaskManager\User', 'user_id');
13
+        return $this->belongsTo('\TaskManager\User', 'user_id');
14 14
     }
15 15
     public function setCompleteAttribute($value){
16 16
         $this->attributes['complete'] = $value ?? false;
Please login to merge, or discard this patch.
app/Providers/AuthServiceProvider.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     {
28 28
         $this->registerPolicies();
29 29
         Gate::resource('tasks', '\TaskManager\Policies\TasksPolicy');
30
-       //$gate->define('task-delete','\TaskManager\Policies\TasksPolicy@delete');
30
+        //$gate->define('task-delete','\TaskManager\Policies\TasksPolicy@delete');
31 31
 
32 32
 
33 33
         //
Please login to merge, or discard this patch.
app/Providers/AppServiceProvider.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,10 +18,10 @@
 block discarded – undo
18 18
     {
19 19
 
20 20
         \Validator::extend('match', function ($attribute, $value, $parameters, $validator) {
21
-           if($value == session()->get('code')){
22
-               return true;
23
-           }
24
-           return false;
21
+            if($value == session()->get('code')){
22
+                return true;
23
+            }
24
+            return false;
25 25
         });
26 26
 
27 27
         \Schema::defaultStringLength(300);
Please login to merge, or discard this patch.
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/Policies/TasksPolicy.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
      */
22 22
     public function view(User $user, Tasks $tasks)
23 23
     {
24
-       return dd($tasks);
24
+        return dd($tasks);
25 25
 
26 26
     }
27 27
 
Please login to merge, or discard this patch.
app/Http/Controllers/TasksController.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
                 return view('home');
26 26
             } else {
27 27
                 $archives = $this->task->allTask();
28
-               return view('tasks', compact( 'archives'));
28
+                return view('tasks', compact( 'archives'));
29 29
             }
30 30
     }
31 31
     /**
Please login to merge, or discard this patch.
app/Http/Controllers/RegisterController.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,10 +32,10 @@
 block discarded – undo
32 32
      */
33 33
     public function store(Request $request, RegisterForm $form)
34 34
     {
35
-       $user = \TaskManager\User::create($request->only('email','name','password'));
36
-       auth()->login($user);
37
-       \Mail::to($user)->send(new WelcomeNewUser($user));
38
-       return redirect()->home();
35
+        $user = \TaskManager\User::create($request->only('email','name','password'));
36
+        auth()->login($user);
37
+        \Mail::to($user)->send(new WelcomeNewUser($user));
38
+        return redirect()->home();
39 39
     }
40 40
 
41 41
 }
Please login to merge, or discard this patch.