Passed
Branch dev (73731d)
by Sergey
10:01
created
app/Models/Form.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,9 +37,9 @@
 block discarded – undo
37 37
     {
38 38
         return $this->twig->fetch('plugins/form/fieldsets/form.html',
39 39
                                             [
40
-                                             'fieldset' => $fieldset,
41
-                                             'values' => $values,
42
-                                             'query' => $_GET
40
+                                                'fieldset' => $fieldset,
41
+                                                'values' => $values,
42
+                                                'query' => $_GET
43 43
                                             ]);
44 44
     }
45 45
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
     {
59 59
         if (Arr::keyExists($values, $element)) {
60 60
             $field_value = Arr::get($values, $element);
61
-        } elseif(Arr::keyExists($properties, 'default')) {
61
+        } elseif (Arr::keyExists($properties, 'default')) {
62 62
             $field_value = $properties['default'];
63 63
         } else {
64 64
             $field_value = '';
Please login to merge, or discard this patch.
app/Models/Fieldsets.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,11 +29,11 @@  discard block
 block discarded – undo
29 29
     {
30 30
         $this->flextype = $flextype;
31 31
 
32
-        if (! Filesystem::has($this->getDirLocation())) {
32
+        if (!Filesystem::has($this->getDirLocation())) {
33 33
             Filesystem::createDir($this->getDirLocation());
34 34
         }
35 35
 
36
-        if (! Filesystem::has($this->getFileLocation('default'))) {
36
+        if (!Filesystem::has($this->getFileLocation('default'))) {
37 37
             Filesystem::copy(PATH['project'] . '/plugins/form/fieldsets/samples/default/default.yaml', $this->getFileLocation('default'));
38 38
         }
39 39
     }
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
     {
148 148
         $fieldset_file = $this->getFileLocation($id);
149 149
 
150
-        if (! Filesystem::has($fieldset_file)) {
150
+        if (!Filesystem::has($fieldset_file)) {
151 151
             return Filesystem::write($fieldset_file, $this->flextype['serializer']->encode($data, 'yaml'));
152 152
         }
153 153
 
Please login to merge, or discard this patch.
bootstrap.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
  * Ensure vendor libraries exist
18 18
  */
19
-! is_file($form_autoload = __DIR__ . '/vendor/autoload.php') and exit('Please run: <i>composer install</i> form plugin');
19
+!is_file($form_autoload = __DIR__ . '/vendor/autoload.php') and exit('Please run: <i>composer install</i> form plugin');
20 20
 
21 21
 /**
22 22
  * Register The Auto Loader
Please login to merge, or discard this patch.
dependencies.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -38,13 +38,13 @@  discard block
 block discarded – undo
38 38
 
39 39
 if ($flextype['registry']->get('plugins.form.settings.load_on_admin')) {
40 40
     $flextype['registry']->set('assets.admin.css',
41
-                           array_merge($_admin_css, ['site/plugins/form/assets/dist/css/form-vendor-build.min.css',
41
+                            array_merge($_admin_css, ['site/plugins/form/assets/dist/css/form-vendor-build.min.css',
42 42
                             'site/plugins/form/assets/dist/css/form-build.min.css']));
43 43
 }
44 44
 
45 45
 if ($flextype['registry']->get('plugins.form.settings.load_on_site')) {
46 46
     $flextype['registry']->set('assets.site.css',
47
-                           array_merge($_site_css, ['site/plugins/form/assets/dist/css/form-vendor-build.min.css',
47
+                            array_merge($_site_css, ['site/plugins/form/assets/dist/css/form-vendor-build.min.css',
48 48
                             'site/plugins/form/assets/dist/css/form-build.min.css']));
49 49
 }
50 50
 
@@ -67,16 +67,16 @@  discard block
 block discarded – undo
67 67
 
68 68
 if ($flextype['registry']->get('plugins.form.settings.load_on_admin')) {
69 69
     $flextype['registry']->set('assets.admin.js',
70
-                           array_merge($_admin_js, ['site/plugins/form/assets/dist/js/form-vendor-build.min.js',
71
-                           $trumbowyg_locale_js,
72
-                           $flatpickr_locale_js,
73
-                           'site/plugins/form/assets/dist/js/form-build.min.js']));
70
+                            array_merge($_admin_js, ['site/plugins/form/assets/dist/js/form-vendor-build.min.js',
71
+                            $trumbowyg_locale_js,
72
+                            $flatpickr_locale_js,
73
+                            'site/plugins/form/assets/dist/js/form-build.min.js']));
74 74
 }
75 75
 
76 76
 if ($flextype['registry']->get('plugins.form.settings.load_on_site')) {
77 77
     $flextype['registry']->set('assets.site.js',
78
-                           array_merge($_site_js, ['site/plugins/form/assets/dist/js/form-vendor-build.min.js',
79
-                           $trumbowyg_locale_js,
80
-                           $flatpickr_locale_js,
81
-                           'site/plugins/form/assets/dist/js/form-build.min.js']));
78
+                            array_merge($_site_js, ['site/plugins/form/assets/dist/js/form-vendor-build.min.js',
79
+                            $trumbowyg_locale_js,
80
+                            $flatpickr_locale_js,
81
+                            'site/plugins/form/assets/dist/js/form-build.min.js']));
82 82
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,14 +14,14 @@
 block discarded – undo
14 14
 /**
15 15
  * Add Form Model to Flextype container
16 16
  */
17
-$flextype['form'] = static function ($container) {
17
+$flextype['form'] = static function($container) {
18 18
     return new Form($container);
19 19
 };
20 20
 
21 21
 /**
22 22
  * Add Fieldsets Model to Flextype container
23 23
  */
24
-$flextype['fieldsets'] = static function ($container) {
24
+$flextype['fieldsets'] = static function($container) {
25 25
     return new Fieldsets($container);
26 26
 };
27 27
 
Please login to merge, or discard this patch.