@@ -29,7 +29,7 @@ discard block |
||
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 | |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | */ |
112 | 112 | public function rename(string $id, string $new_id) : bool |
113 | 113 | { |
114 | - if (! Filesystem::has($this->getFileLocation($new_id))) { |
|
114 | + if (!Filesystem::has($this->getFileLocation($new_id))) { |
|
115 | 115 | return rename($this->getFileLocation($id), $this->getFileLocation($new_id)); |
116 | 116 | } |
117 | 117 | |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | { |
154 | 154 | $fieldset_file = $this->getFileLocation($id); |
155 | 155 | |
156 | - if (! Filesystem::has($fieldset_file)) { |
|
156 | + if (!Filesystem::has($fieldset_file)) { |
|
157 | 157 | return Filesystem::write($fieldset_file, $this->flextype->container('yaml')->encode($data)); |
158 | 158 | } |
159 | 159 |
@@ -22,7 +22,7 @@ |
||
22 | 22 | /** |
23 | 23 | * Flextype Application |
24 | 24 | */ |
25 | - protected $flextype; |
|
25 | + protected $flextype; |
|
26 | 26 | |
27 | 27 | /** |
28 | 28 | * __construct |
@@ -21,14 +21,14 @@ |
||
21 | 21 | /** |
22 | 22 | * Add Form Model to Flextype container |
23 | 23 | */ |
24 | -$flextype->container()['form'] = static function () use ($flextype) { |
|
24 | +$flextype->container()['form'] = static function() use ($flextype) { |
|
25 | 25 | return new Form($flextype); |
26 | 26 | }; |
27 | 27 | |
28 | 28 | /** |
29 | 29 | * Add Fieldsets Model to Flextype container |
30 | 30 | */ |
31 | -$flextype->container()['fieldsets'] = static function () use ($flextype) { |
|
31 | +$flextype->container()['fieldsets'] = static function() use ($flextype) { |
|
32 | 32 | return new Fieldsets($flextype); |
33 | 33 | }; |
34 | 34 |