Completed
Push — master ( 2ee94f...e70fcb )
by Terzi
06:41
created
src/Providers/ContainersServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         $this->app->singleton('scaffold.config', function ($app) {
67 67
             $config = $app['config']['administrator'];
68 68
 
69
-            return new Config((array)$config);
69
+            return new Config((array) $config);
70 70
         });
71 71
     }
72 72
 
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
                  */
99 99
                 public function setReadonly(array $readonly = []): self
100 100
                 {
101
-                    $this->readonly = (array)$readonly;
101
+                    $this->readonly = (array) $readonly;
102 102
 
103 103
                     return $this;
104 104
                 }
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
                         $locale = $locale->id();
117 117
                     }
118 118
 
119
-                    return \in_array((int)$locale, $this->readonly, true);
119
+                    return \in_array((int) $locale, $this->readonly, true);
120 120
                 }
121 121
             };
122 122
 
Please login to merge, or discard this patch.
src/Field/Field.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -64,13 +64,13 @@  discard block
 block discarded – undo
64 64
         );
65 65
 
66 66
         if ($this->translator()->has($key = $this->translationKey())) {
67
-            $this->setTitle((string)$this->translator()->trans($key));
67
+            $this->setTitle((string) $this->translator()->trans($key));
68 68
         } else {
69 69
             $this->setTitle(Architect::humanize($title));
70 70
         }
71 71
 
72 72
         if ($this->translator()->has($key = $this->descriptionKey())) {
73
-            $this->setDescription((string)$this->translator()->trans($key));
73
+            $this->setDescription((string) $this->translator()->trans($key));
74 74
         }
75 75
     }
76 76
 
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
      */
313 313
     public function isVisibleOnPage(string $page): bool
314 314
     {
315
-        return (bool)$this->visibility[$page] ?? false;
315
+        return (bool) $this->visibility[$page] ?? false;
316 316
     }
317 317
 
318 318
     /**
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
      */
323 323
     public function hideOnPages($pages): self
324 324
     {
325
-        return $this->setPagesVisibility((array)$pages, false);
325
+        return $this->setPagesVisibility((array) $pages, false);
326 326
     }
327 327
 
328 328
     /**
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
      */
333 333
     public function showOnPages($pages): self
334 334
     {
335
-        return $this->setPagesVisibility((array)$pages, true);
335
+        return $this->setPagesVisibility((array) $pages, true);
336 336
     }
337 337
 
338 338
     /**
Please login to merge, or discard this patch.
src/Controllers/ScaffoldController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -192,7 +192,7 @@
 block discarded – undo
192 192
 
193 193
             $instance = $eloquent
194 194
                 ->when($searchByKey, function ($query) use ($searchableKey, $term) {
195
-                    return $query->where($searchableKey, (int)$term);
195
+                    return $query->where($searchableKey, (int) $term);
196 196
                 })
197 197
                 ->when(!$searchByKey, function ($query) use ($searchableKey, $term) {
198 198
                     return $query->orWhere($searchableKey, 'LIKE', "%{$term}%");
Please login to merge, or discard this patch.