@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | 'create' => [ |
122 | 122 | 'link' => 'javascript:;', |
123 | 123 | 'title' => __('admin_create_new_entry'), |
124 | - 'onclick' => 'event.preventDefault(); selectEntryType("'.$this->getEntryID($query).'", 0);' |
|
124 | + 'onclick' => 'event.preventDefault(); selectEntryType("' . $this->getEntryID($query) . '", 0);' |
|
125 | 125 | ] |
126 | 126 | ] |
127 | 127 | ] |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | $parts = [0 => '']; |
149 | 149 | } |
150 | 150 | |
151 | - $type = isset($query['type']) ? $query['type']: ''; |
|
151 | + $type = isset($query['type']) ? $query['type'] : ''; |
|
152 | 152 | |
153 | 153 | return $this->twig->render( |
154 | 154 | $response, |
@@ -282,7 +282,7 @@ discard block |
||
282 | 282 | |
283 | 283 | if ($this->entries->create($id, $data_result)) { |
284 | 284 | |
285 | - if (! Filesystem::has(PATH['project'] . '/uploads' . '/entries/' . $id)) { |
|
285 | + if (!Filesystem::has(PATH['project'] . '/uploads' . '/entries/' . $id)) { |
|
286 | 286 | Filesystem::createDir(PATH['project'] . '/uploads' . '/entries/' . $id); |
287 | 287 | } |
288 | 288 | |
@@ -716,7 +716,7 @@ discard block |
||
716 | 716 | |
717 | 717 | ], |
718 | 718 | 'edit_entry' => [ |
719 | - 'link' => $this->router->pathFor('admin.entries.edit') . '?id=' . $this->getEntryID($query). '&type=editor', |
|
719 | + 'link' => $this->router->pathFor('admin.entries.edit') . '?id=' . $this->getEntryID($query) . '&type=editor', |
|
720 | 720 | 'title' => __('admin_editor'), |
721 | 721 | |
722 | 722 | ], |
@@ -891,7 +891,7 @@ discard block |
||
891 | 891 | |
892 | 892 | if (isset($data['routable'])) { |
893 | 893 | $data['routable'] = (bool) $data['routable']; |
894 | - } elseif(isset($entry['routable'])) { |
|
894 | + } elseif (isset($entry['routable'])) { |
|
895 | 895 | $data['routable'] = (bool) $entry['routable']; |
896 | 896 | } else { |
897 | 897 | $data['routable'] = true; |
@@ -120,7 +120,7 @@ |
||
120 | 120 | $api_token_dir_path = PATH['project'] . '/tokens' . '/delivery/registry/' . $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 |
@@ -120,7 +120,7 @@ |
||
120 | 120 | $api_token_dir_path = PATH['project'] . '/tokens' . '/delivery/entries/' . $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 |
@@ -115,7 +115,7 @@ discard block |
||
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 |
||
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 |
||
169 | 169 | $api_delivery_images_token_dir_path = PATH['project'] . '/tokens' . '/delivery/images/' . $api_delivery_images_token; |
170 | 170 | $api_delivery_images_token_file_path = $api_delivery_images_token_dir_path . '/token.yaml'; |
171 | 171 | |
172 | - if (! Filesystem::has($api_delivery_images_token_dir_path)) Filesystem::createDir($api_delivery_images_token_dir_path); |
|
172 | + if (!Filesystem::has($api_delivery_images_token_dir_path)) Filesystem::createDir($api_delivery_images_token_dir_path); |
|
173 | 173 | |
174 | 174 | Filesystem::write( |
175 | 175 | $api_delivery_images_token_file_path, |
@@ -192,7 +192,7 @@ discard block |
||
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 |
||
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 |
@@ -146,7 +146,9 @@ discard block |
||
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 |
||
169 | 171 | $api_delivery_images_token_dir_path = PATH['project'] . '/tokens' . '/delivery/images/' . $api_delivery_images_token; |
170 | 172 | $api_delivery_images_token_file_path = $api_delivery_images_token_dir_path . '/token.yaml'; |
171 | 173 | |
172 | - if (! Filesystem::has($api_delivery_images_token_dir_path)) Filesystem::createDir($api_delivery_images_token_dir_path); |
|
174 | + if (! Filesystem::has($api_delivery_images_token_dir_path)) { |
|
175 | + Filesystem::createDir($api_delivery_images_token_dir_path); |
|
176 | + } |
|
173 | 177 | |
174 | 178 | Filesystem::write( |
175 | 179 | $api_delivery_images_token_file_path, |
@@ -192,7 +196,9 @@ discard block |
||
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, |
@@ -120,7 +120,7 @@ |
||
120 | 120 | $api_token_dir_path = PATH['project'] . '/tokens' . '/delivery/images/' . $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 |