Test Setup Failed
Push — master ( 908938...751dfd )
by Ben
06:34
created
src/Management/AbstractManager.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
 
79 79
     public function saveCreateFields(Request $request): void
80 80
     {
81
-        if($this->isManualSortable() && !$request->has('order')) {
82
-            $this->model->order = $this->modelInstance()::orderBy('order', 'desc')->first()->order + 1;
81
+        if ($this->isManualSortable() && !$request->has('order')) {
82
+            $this->model->order = $this->modelInstance()::orderBy('order', 'desc')->first()->order+1;
83 83
         }
84 84
 
85 85
         $this->saveFields($request, $this->createFields());
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
             return $this->indexPagination($builder);
107 107
         }
108 108
 
109
-        return $builder->get()->map(function ($model) {
109
+        return $builder->get()->map(function($model) {
110 110
             return (new static($this->registration))->manage($model);
111 111
         });
112 112
     }
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 
119 119
     protected function indexSorting(Builder $builder): Builder
120 120
     {
121
-        if($this->isManualSortable()) {
121
+        if ($this->isManualSortable()) {
122 122
             $builder->sortedManually();
123 123
         }
124 124
 
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
     {
139 139
         $paginator = $builder->paginate($this->pageCount);
140 140
 
141
-        $modifiedCollection = $builder->paginate($this->pageCount)->getCollection()->transform(function ($model) {
141
+        $modifiedCollection = $builder->paginate($this->pageCount)->getCollection()->transform(function($model) {
142 142
             return (new static($this->registration))->manage($model);
143 143
         });
144 144
 
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
     {
262 262
         $fields = $this->fieldsWithAssistantFields();
263 263
 
264
-        if($this->isManualSortable() && !$fields->offsetExists('order')) {
264
+        if ($this->isManualSortable() && !$fields->offsetExists('order')) {
265 265
             $fields = $fields->add(NumberField::make('order'));
266 266
         }
267 267
 
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
 
271 271
     public function editFields(): Fields
272 272
     {
273
-        return $this->fieldsWithAssistantFields()->map(function (Field $field) {
273
+        return $this->fieldsWithAssistantFields()->map(function(Field $field) {
274 274
             return $field->model($this->model);
275 275
         });
276 276
     }
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
             static::$bootedTraitMethods[$baseMethod] = [];
364 364
 
365 365
             foreach (class_uses_recursive($class) as $trait) {
366
-                $method = class_basename($trait) . ucfirst($baseMethod);
366
+                $method = class_basename($trait).ucfirst($baseMethod);
367 367
 
368 368
                 if (method_exists($class, $method) && !in_array($method, static::$bootedTraitMethods[$baseMethod])) {
369 369
                     static::$bootedTraitMethods[$baseMethod][] = lcfirst($method);
Please login to merge, or discard this patch.
src/System/HealthMonitor/Monitor.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
                     app($notifier)->onFailure($checkInstance);
34 34
                 }
35 35
                 break;
36
-            } else {
36
+            }else {
37 37
                 foreach ($notifiers as $notifier) {
38 38
                     app($notifier)->onSuccess($checkInstance);
39 39
                 }
Please login to merge, or discard this patch.