Passed
Push — dev ( 84c244...671c09 )
by Sergey
08:47
created
app/Controllers/EntriesController.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,10 +17,10 @@  discard block
 block discarded – undo
17 17
     /**
18 18
      * __construct
19 19
      */
20
-     public function __construct()
21
-     {
20
+        public function __construct()
21
+        {
22 22
 
23
-     }
23
+        }
24 24
 
25 25
     /**
26 26
      * Get Entry ID
@@ -905,7 +905,7 @@  discard block
 block discarded – undo
905 905
 
906 906
             $data['published_by'] = flextype('acl')->getUserLoggedInUuid();
907 907
 
908
-          //$entry2 = flextype('entries')->fetch($id)->toArray();
908
+            //$entry2 = flextype('entries')->fetch($id)->toArray();
909 909
 
910 910
             $entry = flextype('serializers')
911 911
                         ->frontmatter()
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
                                         'create' => [
130 130
                                                 'link'    => 'javascript:;',
131 131
                                                 'title'   => __('admin_create_new_entry'),
132
-                                                'onclick' => 'event.preventDefault(); selectEntryType("'.$this->getEntryID($query).'", 0);'
132
+                                                'onclick' => 'event.preventDefault(); selectEntryType("' . $this->getEntryID($query) . '", 0);'
133 133
                                             ]
134 134
                                         ]
135 135
                             ]
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
             $parts = [0 => ''];
157 157
         }
158 158
 
159
-        $type = isset($query['type']) ? $query['type']: '';
159
+        $type = isset($query['type']) ? $query['type'] : '';
160 160
 
161 161
         return flextype('twig')->render(
162 162
             $response,
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
                 if (flextype('registry')->has('plugins.site')) {
258 258
                     $template_path = PATH['project'] . '/themes/' . flextype('registry')->get('plugins.site.settings.theme') . '/templates/' . $data['fieldset'] . '.html';
259 259
                     $template = (Filesystem::has($template_path)) ? $data['fieldset'] : 'default';
260
-                    $data_from_post['template']   = $template;
260
+                    $data_from_post['template'] = $template;
261 261
                 }
262 262
 
263 263
                 //foreach ($fieldset['sections'] as $section_name => $section_body) {
@@ -740,7 +740,7 @@  discard block
 block discarded – undo
740 740
 
741 741
                             ],
742 742
                             'edit_entry' => [
743
-                                'link' => flextype('router')->pathFor('admin.entries.edit') . '?id=' . $this->getEntryID($query). '&type=editor',
743
+                                'link' => flextype('router')->pathFor('admin.entries.edit') . '?id=' . $this->getEntryID($query) . '&type=editor',
744 744
                                 'title' => __('admin_editor'),
745 745
 
746 746
                             ],
@@ -893,15 +893,15 @@  discard block
 block discarded – undo
893 893
             $data = $request->getParsedBody();
894 894
 
895 895
             // Delete system fields
896
-            isset($data['slug'])                  and Arrays::delete($data, 'slug');
897
-            isset($data['id'])                    and Arrays::delete($data, 'id');
898
-            isset($data['csrf_value'])            and Arrays::delete($data, 'csrf_value');
899
-            isset($data['csrf_name'])             and Arrays::delete($data, 'csrf_name');
900
-            isset($data['form-save-action'])      and Arrays::delete($data, 'form-save-action');
901
-            isset($data['trumbowyg-icons-path'])  and Arrays::delete($data, 'trumbowyg-icons-path');
902
-            isset($data['trumbowyg-locale'])      and Arrays::delete($data, 'trumbowyg-locale');
896
+            isset($data['slug']) and Arrays::delete($data, 'slug');
897
+            isset($data['id']) and Arrays::delete($data, 'id');
898
+            isset($data['csrf_value']) and Arrays::delete($data, 'csrf_value');
899
+            isset($data['csrf_name']) and Arrays::delete($data, 'csrf_name');
900
+            isset($data['form-save-action']) and Arrays::delete($data, 'form-save-action');
901
+            isset($data['trumbowyg-icons-path']) and Arrays::delete($data, 'trumbowyg-icons-path');
902
+            isset($data['trumbowyg-locale']) and Arrays::delete($data, 'trumbowyg-locale');
903 903
             isset($data['flatpickr-date-format']) and Arrays::delete($data, 'flatpickr-date-format');
904
-            isset($data['flatpickr-locale'])      and Arrays::delete($data, 'flatpickr-locale');
904
+            isset($data['flatpickr-locale']) and Arrays::delete($data, 'flatpickr-locale');
905 905
 
906 906
             $data['published_by'] = flextype('acl')->getUserLoggedInUuid();
907 907
 
@@ -932,7 +932,7 @@  discard block
 block discarded – undo
932 932
 
933 933
             if (isset($data['routable'])) {
934 934
                 $data['routable'] = (bool) $data['routable'];
935
-            } elseif(isset($entry['routable'])) {
935
+            } elseif (isset($entry['routable'])) {
936 936
                 $data['routable'] = (bool) $entry['routable'];
937 937
             } else {
938 938
                 $data['routable'] = true;
Please login to merge, or discard this patch.
app/Controllers/ApiFoldersController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@
 block discarded – undo
120 120
         $api_token_dir_path  = PATH['project'] . '/tokens/media/folders/' . $api_token;
121 121
         $api_token_file_path = $api_token_dir_path . '/token.yaml';
122 122
 
123
-        if (! Filesystem::has($api_token_file_path)) {
123
+        if (!Filesystem::has($api_token_file_path)) {
124 124
 
125 125
             Filesystem::createDir($api_token_dir_path);
126 126
 
Please login to merge, or discard this patch.
app/Controllers/ApiFilesController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
122 122
         $api_token_dir_path  = PATH['project'] . '/tokens/media/files/' . $api_token;
123 123
         $api_token_file_path = $api_token_dir_path . '/token.yaml';
124 124
 
125
-        if (! Filesystem::has($api_token_file_path)) {
125
+        if (!Filesystem::has($api_token_file_path)) {
126 126
 
127 127
             Filesystem::createDir($api_token_dir_path);
128 128
 
Please login to merge, or discard this patch.