@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | $mimetype = json_decode($value)->output->type; |
| 39 | 39 | |
| 40 | 40 | return (in_array($mimetype, $parameters) || |
| 41 | - in_array(explode('/', $mimetype)[0] . '/*', $parameters)); |
|
| 41 | + in_array(explode('/', $mimetype)[0].'/*', $parameters)); |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | /** |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | private function addCustomValidationMessage($attribute, $params, $validator): void |
| 50 | 50 | { |
| 51 | 51 | $validator->setCustomMessages([ |
| 52 | - 'imagefield_mimetypes' => ':attribute is niet het juiste bestandstype. Volgende types zijn geldig: ' . implode(', ', $params), |
|
| 52 | + 'imagefield_mimetypes' => ':attribute is niet het juiste bestandstype. Volgende types zijn geldig: '.implode(', ', $params), |
|
| 53 | 53 | ]); |
| 54 | 54 | |
| 55 | 55 | if (!isset($validator->customAttributes[$attribute])) { |
@@ -38,7 +38,7 @@ |
||
| 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])) { |
@@ -38,7 +38,7 @@ |
||
| 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])) { |
@@ -38,7 +38,7 @@ |
||
| 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])) { |
@@ -76,7 +76,7 @@ |
||
| 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])) { |
@@ -56,7 +56,7 @@ |
||
| 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) |
@@ -26,7 +26,7 @@ |
||
| 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]; |
@@ -16,7 +16,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -91,7 +91,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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); |