Passed
Push — dependabot/npm_and_yarn/tunnel... ( bf55bc...2f2e82 )
by Philippe
70:41 queued 28:18
created
src/Fields/Types/FieldType.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -6,15 +6,15 @@  discard block
 block discarded – undo
6 6
 
7 7
 class FieldType
8 8
 {
9
-    const INPUT = 'input';   // oneliner text (input)
10
-    const TEXT = 'text';    // Plain text (textarea)
11
-    const DATE = 'date';    // Timestamp input
12
-    const HTML = 'html';    // Html text (wysiwyg)
13
-    const SELECT = 'select';  // Select options
14
-    const MEDIA = 'media';  // media file (slim uploader)
15
-    const DOCUMENT = 'document';  // documents
16
-    const RADIO = 'radio';  // media file (slim uploader)
17
-    const PAGEBUILDER = 'pagebuilder';  // the most special field there is...
9
+    const INPUT = 'input'; // oneliner text (input)
10
+    const TEXT = 'text'; // Plain text (textarea)
11
+    const DATE = 'date'; // Timestamp input
12
+    const HTML = 'html'; // Html text (wysiwyg)
13
+    const SELECT = 'select'; // Select options
14
+    const MEDIA = 'media'; // media file (slim uploader)
15
+    const DOCUMENT = 'document'; // documents
16
+    const RADIO = 'radio'; // media file (slim uploader)
17
+    const PAGEBUILDER = 'pagebuilder'; // the most special field there is...
18 18
 
19 19
     /**
20 20
      * @var string
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
             static::RADIO,
35 35
             static::PAGEBUILDER,
36 36
         ])) {
37
-            throw new \Exception('Invalid type identifier given [' . $type . '].');
37
+            throw new \Exception('Invalid type identifier given ['.$type.'].');
38 38
         }
39 39
 
40 40
         $this->type = $type;
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
     public static function fromString(string $type)
44 44
     {
45
-        $class = 'Thinktomorrow\Chief\Fields\Types\\' . ucfirst($type . 'Field');
45
+        $class = 'Thinktomorrow\Chief\Fields\Types\\'.ucfirst($type.'Field');
46 46
 
47 47
         return new $class(new static($type));
48 48
     }
Please login to merge, or discard this patch.
src/Fields/Types/DateField.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 namespace Thinktomorrow\Chief\Fields\Types;
4 4
 
5 5
 class DateField extends Field
Please login to merge, or discard this patch.
src/Fields/Types/Field.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Thinktomorrow\Chief\Fields\Types;
6 6
 
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      */
36 36
     public function getValidation(array $data = [])
37 37
     {
38
-        if (! $this->hasValidation()) {
38
+        if (!$this->hasValidation()) {
39 39
             return null;
40 40
         }
41 41
 
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
         }
117 117
 
118 118
         if (!in_array($name, ['label', 'key', 'description', 'column', 'name', 'prepend', 'append'])) {
119
-            throw new \InvalidArgumentException('Cannot set value by ['. $name .'].');
119
+            throw new \InvalidArgumentException('Cannot set value by ['.$name.'].');
120 120
         }
121 121
 
122 122
         $this->values[$name] = $arguments[0];
Please login to merge, or discard this patch.
src/Fields/FieldArrangement.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
 
48 48
     private function validateTabs(array $tabs)
49 49
     {
50
-        array_map(function (FieldsTab $tab) {
50
+        array_map(function(FieldsTab $tab) {
51 51
         }, $tabs);
52 52
     }
53 53
 
Please login to merge, or discard this patch.
src/Fields/FieldValidator.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,6 +45,6 @@
 block discarded – undo
45 45
     private function performValidation(array $data, array $rules, array $messages = [], array $customAttributes = [])
46 46
     {
47 47
         return $this->validator->make($data, $rules, $messages, $customAttributes)
48
-                               ->validate();
48
+                                ->validate();
49 49
     }
50 50
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         $validation = ['rules' => [], 'messages' => [], 'customAttributes' => []];
29 29
 
30 30
         foreach ($fields as $field) {
31
-            if (! $field->hasValidation()) {
31
+            if (!$field->hasValidation()) {
32 32
                 continue;
33 33
             }
34 34
 
Please login to merge, or discard this patch.
src/Concerns/Sluggable/UniqueSlug.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
         $this->model = $model;
19 19
         $this->blacklist = $blacklist;
20 20
 
21
-        $this->slugResolver = function ($slug) {
21
+        $this->slugResolver = function($slug) {
22 22
             return str_slug($slug);
23 23
         };
24 24
     }
Please login to merge, or discard this patch.
src/Concerns/Morphable/GlobalMorphableScope.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Thinktomorrow\Chief\Concerns\Morphable;
6 6
 
Please login to merge, or discard this patch.
src/Concerns/Morphable/Morphables.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
         }
17 17
 
18 18
         if (!class_exists($class)) {
19
-            throw new NotFoundMorphKey('No class found by morphkey [' . $class . ']. Make sure that the morphkey is a valid class reference.');
19
+            throw new NotFoundMorphKey('No class found by morphkey ['.$class.']. Make sure that the morphkey is a valid class reference.');
20 20
         }
21 21
 
22 22
         return new $class($attributes);
Please login to merge, or discard this patch.
src/Concerns/Morphable/Morphable.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     public function scopeMorphable($query, string $morphkey = null)
33 33
     {
34 34
         return $query->withoutGlobalScope(static::globalMorphableScope())
35
-                     ->where('morph_key', '=', $morphkey);
35
+                        ->where('morph_key', '=', $morphkey);
36 36
     }
37 37
 
38 38
     /**
Please login to merge, or discard this patch.