@@ -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 | ], |
@@ -865,14 +865,14 @@ discard block |
||
865 | 865 | $data = $request->getParsedBody(); |
866 | 866 | |
867 | 867 | // Delete system fields |
868 | - isset($data['slug']) and Arr::delete($data, 'slug'); |
|
869 | - isset($data['csrf_value']) and Arr::delete($data, 'csrf_value'); |
|
870 | - isset($data['csrf_name']) and Arr::delete($data, 'csrf_name'); |
|
871 | - isset($data['action']) and Arr::delete($data, 'action'); |
|
872 | - isset($data['trumbowyg-icons-path']) and Arr::delete($data, 'trumbowyg-icons-path'); |
|
873 | - isset($data['trumbowyg-locale']) and Arr::delete($data, 'trumbowyg-locale'); |
|
868 | + isset($data['slug']) and Arr::delete($data, 'slug'); |
|
869 | + isset($data['csrf_value']) and Arr::delete($data, 'csrf_value'); |
|
870 | + isset($data['csrf_name']) and Arr::delete($data, 'csrf_name'); |
|
871 | + isset($data['action']) and Arr::delete($data, 'action'); |
|
872 | + isset($data['trumbowyg-icons-path']) and Arr::delete($data, 'trumbowyg-icons-path'); |
|
873 | + isset($data['trumbowyg-locale']) and Arr::delete($data, 'trumbowyg-locale'); |
|
874 | 874 | isset($data['flatpickr-date-format']) and Arr::delete($data, 'flatpickr-date-format'); |
875 | - isset($data['flatpickr-locale']) and Arr::delete($data, 'flatpickr-locale'); |
|
875 | + isset($data['flatpickr-locale']) and Arr::delete($data, 'flatpickr-locale'); |
|
876 | 876 | |
877 | 877 | |
878 | 878 | $data['published_by'] = Session::get('uuid'); |
@@ -896,7 +896,7 @@ discard block |
||
896 | 896 | |
897 | 897 | if (isset($data['routable'])) { |
898 | 898 | $data['routable'] = (bool) $data['routable']; |
899 | - } elseif(isset($entry['routable'])) { |
|
899 | + } elseif (isset($entry['routable'])) { |
|
900 | 900 | $data['routable'] = (bool) $entry['routable']; |
901 | 901 | } else { |
902 | 902 | $data['routable'] = true; |