Passed
Push — dev ( 0b0db2...130cab )
by Sergey
05:13
created
app/Controllers/UsersController.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
         // Get POST data
116 116
         $data = $request->getParsedBody();
117 117
 
118
-        if (! Filesystem::has($_user_file = PATH['project'] . '/accounts/' . $this->slugify->slugify($data['username']) . '/profile.yaml')) {
118
+        if (!Filesystem::has($_user_file = PATH['project'] . '/accounts/' . $this->slugify->slugify($data['username']) . '/profile.yaml')) {
119 119
             // Generate UUID
120 120
             $uuid = Uuid::uuid4()->toString();
121 121
 
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
                 $api_delivery_entries_token_dir_path  = PATH['project'] . '/tokens' . '/delivery/entries/' . $api_delivery_entries_token;
147 147
                 $api_delivery_entries_token_file_path = $api_delivery_entries_token_dir_path . '/token.yaml';
148 148
 
149
-                if (! Filesystem::has($api_delivery_entries_token_dir_path)) Filesystem::createDir($api_delivery_entries_token_dir_path);
149
+                if (!Filesystem::has($api_delivery_entries_token_dir_path)) Filesystem::createDir($api_delivery_entries_token_dir_path);
150 150
 
151 151
                 Filesystem::write(
152 152
                     $api_delivery_entries_token_file_path,
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
                 $api_images_token_dir_path  = PATH['project'] . '/tokens' . '/images/' . $api_images_token;
170 170
                 $api_images_token_file_path = $api_images_token_dir_path . '/token.yaml';
171 171
 
172
-                if (! Filesystem::has($api_images_token_dir_path)) Filesystem::createDir($api_images_token_dir_path);
172
+                if (!Filesystem::has($api_images_token_dir_path)) Filesystem::createDir($api_images_token_dir_path);
173 173
 
174 174
                 Filesystem::write(
175 175
                     $api_images_token_file_path,
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
                 $api_delivery_registry_token_dir_path  = PATH['project'] . '/tokens' . '/delivery/registry/' . $api_delivery_registry_token;
193 193
                 $api_delivery_registry_token_file_path = $api_delivery_registry_token_dir_path . '/token.yaml';
194 194
 
195
-                if (! Filesystem::has($api_delivery_registry_token_dir_path)) Filesystem::createDir($api_delivery_registry_token_dir_path);
195
+                if (!Filesystem::has($api_delivery_registry_token_dir_path)) Filesystem::createDir($api_delivery_registry_token_dir_path);
196 196
 
197 197
                 Filesystem::write(
198 198
                     $api_delivery_registry_token_file_path,
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
                 Filesystem::write($custom_flextype_settings_file_path, $this->serializer->encode($custom_flextype_settings_file_data, 'yaml'));
222 222
 
223 223
                 // Create uploads dir for default entries
224
-                if (! Filesystem::has(PATH['project'] . '/uploads/entries/home/')) {
224
+                if (!Filesystem::has(PATH['project'] . '/uploads/entries/home/')) {
225 225
                     Filesystem::createDir(PATH['project'] . '/uploads/entries/home/');
226 226
                 }
227 227
 
Please login to merge, or discard this patch.
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -146,7 +146,9 @@  discard block
 block discarded – undo
146 146
                 $api_delivery_entries_token_dir_path  = PATH['project'] . '/tokens' . '/delivery/entries/' . $api_delivery_entries_token;
147 147
                 $api_delivery_entries_token_file_path = $api_delivery_entries_token_dir_path . '/token.yaml';
148 148
 
149
-                if (! Filesystem::has($api_delivery_entries_token_dir_path)) Filesystem::createDir($api_delivery_entries_token_dir_path);
149
+                if (! Filesystem::has($api_delivery_entries_token_dir_path)) {
150
+                    Filesystem::createDir($api_delivery_entries_token_dir_path);
151
+                }
150 152
 
151 153
                 Filesystem::write(
152 154
                     $api_delivery_entries_token_file_path,
@@ -169,7 +171,9 @@  discard block
 block discarded – undo
169 171
                 $api_images_token_dir_path  = PATH['project'] . '/tokens' . '/images/' . $api_images_token;
170 172
                 $api_images_token_file_path = $api_images_token_dir_path . '/token.yaml';
171 173
 
172
-                if (! Filesystem::has($api_images_token_dir_path)) Filesystem::createDir($api_images_token_dir_path);
174
+                if (! Filesystem::has($api_images_token_dir_path)) {
175
+                    Filesystem::createDir($api_images_token_dir_path);
176
+                }
173 177
 
174 178
                 Filesystem::write(
175 179
                     $api_images_token_file_path,
@@ -192,7 +196,9 @@  discard block
 block discarded – undo
192 196
                 $api_delivery_registry_token_dir_path  = PATH['project'] . '/tokens' . '/delivery/registry/' . $api_delivery_registry_token;
193 197
                 $api_delivery_registry_token_file_path = $api_delivery_registry_token_dir_path . '/token.yaml';
194 198
 
195
-                if (! Filesystem::has($api_delivery_registry_token_dir_path)) Filesystem::createDir($api_delivery_registry_token_dir_path);
199
+                if (! Filesystem::has($api_delivery_registry_token_dir_path)) {
200
+                    Filesystem::createDir($api_delivery_registry_token_dir_path);
201
+                }
196 202
 
197 203
                 Filesystem::write(
198 204
                     $api_delivery_registry_token_file_path,
Please login to merge, or discard this patch.
dependencies.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,13 +37,13 @@
 block discarded – undo
37 37
 $_admin_js  = ($flextype['registry']->has('assets.admin.js')) ? $flextype['registry']->get('assets.admin.js') : [];
38 38
 
39 39
 $flextype['registry']->set('assets.admin.css',
40
-                           array_merge($_admin_css,
41
-                           ['project/plugins/admin/assets/dist/css/admin-vendor-build.min.css',
40
+                            array_merge($_admin_css,
41
+                            ['project/plugins/admin/assets/dist/css/admin-vendor-build.min.css',
42 42
                             'project/plugins/admin/assets/dist/css/admin-build.min.css']));
43 43
 
44 44
 $flextype['registry']->set('assets.admin.js',
45
-                       array_merge($_admin_js,
46
-                       ['project/plugins/admin/assets/dist/js/admin-vendor-build.min.js']));
45
+                        array_merge($_admin_js,
46
+                        ['project/plugins/admin/assets/dist/js/admin-vendor-build.min.js']));
47 47
 
48 48
 /**
49 49
  * Add flash service to Flextype container
Please login to merge, or discard this patch.