Passed
Pull Request — main (#735)
by
unknown
03:51
created
app/Http/Controllers/Auth/ConfirmablePasswordController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
      */
30 30
     public function store(Request $request)
31 31
     {
32
-        if (! Auth::guard('web')->validate([
32
+        if (!Auth::guard('web')->validate([
33 33
             'email' => $request->user()->email,
34 34
             'password' => $request->password,
35 35
         ])) {
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/NewPasswordController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         // database. Otherwise we will parse the error and return the response.
43 43
         $status = Password::reset(
44 44
             $request->only('email', 'password', 'password_confirmation', 'token'),
45
-            function ($user) use ($request) {
45
+            function($user) use ($request) {
46 46
                 $user->forceFill([
47 47
                     'password' => Hash::make($request->password),
48 48
                     'remember_token' => Str::random(60),
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/LinkTypeController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -49,10 +49,10 @@  discard block
 block discarded – undo
49 49
 
50 50
         // store
51 51
         $LinkType = new LinkType;
52
-        $LinkType->typename       = $request->typename;
53
-        $LinkType->title      = $request->title;
52
+        $LinkType->typename = $request->typename;
53
+        $LinkType->title = $request->title;
54 54
         $LinkType->description = $request->description;
55
-        $LinkType->icon            = $request->icon;
55
+        $LinkType->icon = $request->icon;
56 56
         $LinkType->params = $request->params;
57 57
         $LinkType->save();
58 58
 
@@ -100,9 +100,9 @@  discard block
 block discarded – undo
100 100
 
101 101
 
102 102
         // store
103
-        $linktype->title      = $request->title;
103
+        $linktype->title = $request->title;
104 104
         $linktype->description = $request->description;
105
-        $linktype->icon            = $request->icon;
105
+        $linktype->icon = $request->icon;
106 106
         $linktype->params = $request->params;
107 107
         $linktype->save();
108 108
 
Please login to merge, or discard this patch.
app/Http/Controllers/LinkTypeViewController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
             $data['params'] = json_decode($link['type_params']);
34 34
             $data['link_title'] = $link->title;
35 35
             $data['link_url'] = $link->link;
36
-            if (Route::currentRouteName() != 'showButtons') {$data['button_id'] = $link->button_id;}
36
+            if (Route::currentRouteName() != 'showButtons') {$data['button_id'] = $link->button_id; }
37 37
         }
38 38
 
39 39
         if (!empty($linkType) && $linkType->typename === 'predefined') {
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 //echo "<pre>"; print_r($data['params']); exit;
51 51
 
52 52
         }
53
-        return view('components.pageitems.'. $linkType->typename.'-form', $data);
53
+        return view('components.pageitems.' . $linkType->typename . '-form', $data);
54 54
 
55 55
         $jsonForm = FormFactory::jsonForm();
56 56
         try {
Please login to merge, or discard this patch.
app/Http/Requests/Auth/LoginRequest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     {
46 46
         $this->ensureIsNotRateLimited();
47 47
 
48
-        if (! Auth::attempt(['email' => $this->email, 'password' => $this->password, 'block' => 'no'] , $this->filled('remember'))) {
48
+        if (!Auth::attempt(['email' => $this->email, 'password' => $this->password, 'block' => 'no'], $this->filled('remember'))) {
49 49
             RateLimiter::hit($this->throttleKey());
50 50
 
51 51
             throw ValidationException::withMessages([
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      */
66 66
     public function ensureIsNotRateLimited()
67 67
     {
68
-        if (! RateLimiter::tooManyAttempts($this->throttleKey(), 5)) {
68
+        if (!RateLimiter::tooManyAttempts($this->throttleKey(), 5)) {
69 69
             return;
70 70
         }
71 71
 
@@ -88,6 +88,6 @@  discard block
 block discarded – undo
88 88
      */
89 89
     public function throttleKey()
90 90
     {
91
-        return Str::lower($this->input('email')).'|'.$this->ip();
91
+        return Str::lower($this->input('email')) . '|' . $this->ip();
92 92
     }
93 93
 }
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/Impersonate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,8 @@
 block discarded – undo
12 12
 {
13 13
     public function handle($request, Closure $next)
14 14
     {
15
-      if(Schema::hasColumn('users', 'auth_as')) {
16
-        $adminUser = User::where('role', 'admin')->where(function ($query) {
15
+      if (Schema::hasColumn('users', 'auth_as')) {
16
+        $adminUser = User::where('role', 'admin')->where(function($query) {
17 17
             $query->where('auth_as', '!=', null)
18 18
                 ->where('auth_as', '!=', '');
19 19
         })->first();
Please login to merge, or discard this patch.
app/Http/Middleware/DisableCookies.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,13 +11,13 @@
 block discarded – undo
11 11
 
12 12
     public function handle(Request $request, Closure $next)
13 13
     {
14
-        $cookiesAlreadySet = $request->hasCookie(strtolower(config('app.name')).'_session') || $request->hasCookie('XSRF-TOKEN');
14
+        $cookiesAlreadySet = $request->hasCookie(strtolower(config('app.name')) . '_session') || $request->hasCookie('XSRF-TOKEN');
15 15
 
16 16
         if ($cookiesAlreadySet) {
17 17
             return $next($request);
18 18
         }
19 19
 
20
-        Cookie::queue(Cookie::forget(strtolower(config('app.name')).'_session'));
20
+        Cookie::queue(Cookie::forget(strtolower(config('app.name')) . '_session'));
21 21
         Cookie::queue(Cookie::forget('XSRF-TOKEN'));
22 22
         config(['session.driver' => 'array']);
23 23
 
Please login to merge, or discard this patch.
app/View/Components/PageItemDisplay.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 
34 34
 
35 35
 
36
-        return view('components.pageitems.'.$this->link->typename.'-display', ['link' => $this->link, 'params' => $params]);
36
+        return view('components.pageitems.' . $this->link->typename . '-display', ['link' => $this->link, 'params' => $params]);
37 37
     }
38 38
 
39 39
     public function getModalIdString(): string
Please login to merge, or discard this patch.