Test Setup Failed
Push — a-simpler-manager ( 964eee...986de8 )
by Ben
07:36
created
src/ManagedModels/Fields/ValidationRules/FileFieldMimetypesRule.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
     private function addCustomValidationMessage($attribute, $params, $validator): void
39 39
     {
40 40
         $validator->setCustomMessages([
41
-            'filefield_mimetypes' => ':attribute is niet het juiste bestandstype. Volgende types zijn geldig: ' . implode(', ', $params),
41
+            'filefield_mimetypes' => ':attribute is niet het juiste bestandstype. Volgende types zijn geldig: '.implode(', ', $params),
42 42
         ]);
43 43
 
44 44
         if (!isset($validator->customAttributes[$attribute])) {
Please login to merge, or discard this patch.
src/ManagedModels/Fields/ValidationRules/FileFieldDimensionsRule.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
     private function addCustomValidationMessage($attribute, $params, $validator): void
39 39
     {
40 40
         $validator->setCustomMessages([
41
-            'filefield_dimensions' => ':attribute heeft niet de juiste afmetingen: ' . implode(', ', $params),
41
+            'filefield_dimensions' => ':attribute heeft niet de juiste afmetingen: '.implode(', ', $params),
42 42
         ]);
43 43
 
44 44
         if (!isset($validator->customAttributes[$attribute])) {
Please login to merge, or discard this patch.
src/ManagedModels/Fields/ValidationRules/FileFieldMinRule.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
     private function addCustomValidationMessage($attribute, $params, $validator): void
39 39
     {
40 40
         $validator->setCustomMessages([
41
-            'filefield_min' => ':attribute is te klein en dient groter te zijn dan ' . implode(',', $params) . 'Kb.',
41
+            'filefield_min' => ':attribute is te klein en dient groter te zijn dan '.implode(',', $params).'Kb.',
42 42
         ]);
43 43
 
44 44
         if (!isset($validator->customAttributes[$attribute])) {
Please login to merge, or discard this patch.
src/ManagedModels/Fields/ValidationRules/ImageFieldDimensionsRule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
     private function addCustomValidationMessage($attribute, $params, $validator): void
77 77
     {
78 78
         $validator->setCustomMessages([
79
-            'imagefield_dimensions' => ':attribute heeft niet de juiste afmetingen: ' . implode(', ', $this->humanReadableParams($params)),
79
+            'imagefield_dimensions' => ':attribute heeft niet de juiste afmetingen: '.implode(', ', $this->humanReadableParams($params)),
80 80
         ]);
81 81
 
82 82
         if (!isset($validator->customAttributes[$attribute])) {
Please login to merge, or discard this patch.
ManagedModels/Fields/ValidationRules/ValidatesExistingAssetAttributes.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
     protected function validateAssetMimetypes(Asset $asset, $parameters)
57 57
     {
58 58
         return (in_array($asset->getMimeType(), $parameters) ||
59
-            in_array(explode('/', $asset->getMimeType())[0] . '/*', $parameters));
59
+            in_array(explode('/', $asset->getMimeType())[0].'/*', $parameters));
60 60
     }
61 61
 
62 62
     protected function validateAssetMax(Asset $asset, $parameters)
Please login to merge, or discard this patch.
src/ManagedModels/Fields/FieldRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 
27 27
         if ($reference->hasFragmentKey()) {
28 28
             if (!$field instanceof FragmentField) {
29
-                throw new \RuntimeException('Field ' . $field->getKey() . ' was expected to be a fragmentfield but its not.');
29
+                throw new \RuntimeException('Field '.$field->getKey().' was expected to be a fragmentfield but its not.');
30 30
             }
31 31
 
32 32
             $firstFragment = $field->getFragments()[0];
Please login to merge, or discard this patch.
src/Old/Management/Details/HasDetails.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
         $genericModelInstance = $this->modelInstance();
17 17
 
18 18
         // Generic model details
19
-        $id = Str::slug($this->registration->key() . ($this->hasExistingModel() ? '-' . $this->existingModel()->id : ''));
19
+        $id = Str::slug($this->registration->key().($this->hasExistingModel() ? '-'.$this->existingModel()->id : ''));
20 20
         $key = $this->registration->key();
21 21
         $labelSingular = property_exists($genericModelInstance, 'labelSingular') ? $genericModelInstance->labelSingular : Str::singular($key);
22 22
         $labelPlural = property_exists($genericModelInstance, 'labelPlural') ? $genericModelInstance->labelPlural : Str::plural($key);
@@ -32,10 +32,10 @@  discard block
 block discarded – undo
32 32
         return new Details(
33 33
             $id,
34 34
             $key,
35
-            $labelSingular . '',
36
-            $labelPlural . '',
35
+            $labelSingular.'',
36
+            $labelPlural.'',
37 37
             $internal_label,
38
-            $title . ''
38
+            $title.''
39 39
         );
40 40
     }
41 41
 }
Please login to merge, or discard this patch.
src/Old/Management/AbstractManager.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
             return $this->indexPagination($builder);
92 92
         }
93 93
 
94
-        return $builder->get()->map(function ($model) {
94
+        return $builder->get()->map(function($model) {
95 95
             return (new static($this->registration))->manage($model);
96 96
         });
97 97
     }
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
     {
120 120
         $paginator = $builder->paginate($this->pageCount);
121 121
 
122
-        $modifiedCollection = $builder->paginate($this->pageCount)->getCollection()->transform(function ($model) {
122
+        $modifiedCollection = $builder->paginate($this->pageCount)->getCollection()->transform(function($model) {
123 123
             return (new static($this->registration))->manage($model);
124 124
         });
125 125
 
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
 
236 236
     public function editFields(): Fields
237 237
     {
238
-        return $this->fieldsWithAssistantFields()->map(function (Field $field) {
238
+        return $this->fieldsWithAssistantFields()->map(function(Field $field) {
239 239
             return $field->model($this->model);
240 240
         });
241 241
     }
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
             static::$bootedTraitMethods[$baseMethod] = [];
329 329
 
330 330
             foreach (class_uses_recursive($class) as $trait) {
331
-                $method = class_basename($trait) . ucfirst($baseMethod);
331
+                $method = class_basename($trait).ucfirst($baseMethod);
332 332
 
333 333
                 if (method_exists($class, $method) && !in_array($method, static::$bootedTraitMethods[$baseMethod])) {
334 334
                     static::$bootedTraitMethods[$baseMethod][] = lcfirst($method);
Please login to merge, or discard this patch.
src/Old/Management/Application/StoreManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,9 +40,9 @@
 block discarded – undo
40 40
         if ($request->filled('template')) {
41 41
             $this->applyTemplate->handle(
42 42
                 ModelReference::fromString($request->input('template'))->className(),
43
-                (string) ModelReference::fromString($request->input('template'))->id(),
43
+                (string)ModelReference::fromString($request->input('template'))->id(),
44 44
                 get_class($manager->existingModel()),
45
-                (string) $manager->existingModel()->id
45
+                (string)$manager->existingModel()->id
46 46
             );
47 47
         }
48 48
 
Please login to merge, or discard this patch.