@@ -20,15 +20,15 @@ |
||
| 20 | 20 | /** |
| 21 | 21 | * Flextype Application |
| 22 | 22 | */ |
| 23 | - protected $flextype; |
|
| 23 | + protected $flextype; |
|
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | 26 | * __construct |
| 27 | 27 | */ |
| 28 | - public function __construct($flextype) |
|
| 29 | - { |
|
| 30 | - $this->flextype = $flextype; |
|
| 31 | - } |
|
| 28 | + public function __construct($flextype) |
|
| 29 | + { |
|
| 30 | + $this->flextype = $flextype; |
|
| 31 | + } |
|
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | 34 | * folders Index page |
@@ -22,15 +22,15 @@ |
||
| 22 | 22 | /** |
| 23 | 23 | * Flextype Application |
| 24 | 24 | */ |
| 25 | - protected $flextype; |
|
| 25 | + protected $flextype; |
|
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | 28 | * __construct |
| 29 | 29 | */ |
| 30 | - public function __construct($flextype) |
|
| 31 | - { |
|
| 32 | - $this->flextype = $flextype; |
|
| 33 | - } |
|
| 30 | + public function __construct($flextype) |
|
| 31 | + { |
|
| 32 | + $this->flextype = $flextype; |
|
| 33 | + } |
|
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * files Index page |
@@ -17,15 +17,15 @@ |
||
| 17 | 17 | /** |
| 18 | 18 | * Flextype Application |
| 19 | 19 | */ |
| 20 | - protected $flextype; |
|
| 20 | + protected $flextype; |
|
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | 23 | * __construct |
| 24 | 24 | */ |
| 25 | - public function __construct($flextype) |
|
| 26 | - { |
|
| 27 | - $this->flextype = $flextype; |
|
| 28 | - } |
|
| 25 | + public function __construct($flextype) |
|
| 26 | + { |
|
| 27 | + $this->flextype = $flextype; |
|
| 28 | + } |
|
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | 31 | * Get Entry ID |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | 'create' => [ |
| 131 | 131 | 'link' => 'javascript:;', |
| 132 | 132 | 'title' => __('admin_create_new_entry'), |
| 133 | - 'onclick' => 'event.preventDefault(); selectEntryType("'.$this->getEntryID($query).'", 0);' |
|
| 133 | + 'onclick' => 'event.preventDefault(); selectEntryType("' . $this->getEntryID($query) . '", 0);' |
|
| 134 | 134 | ] |
| 135 | 135 | ] |
| 136 | 136 | ] |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | $parts = [0 => '']; |
| 158 | 158 | } |
| 159 | 159 | |
| 160 | - $type = isset($query['type']) ? $query['type']: ''; |
|
| 160 | + $type = isset($query['type']) ? $query['type'] : ''; |
|
| 161 | 161 | |
| 162 | 162 | return $this->flextype->container('twig')->render( |
| 163 | 163 | $response, |
@@ -258,7 +258,7 @@ discard block |
||
| 258 | 258 | if ($this->flextype->container('registry')->has('plugins.site')) { |
| 259 | 259 | $template_path = PATH['project'] . '/themes/' . $this->flextype->container('registry')->get('plugins.site.settings.theme') . '/templates/' . $data['fieldset'] . '.html'; |
| 260 | 260 | $template = (Filesystem::has($template_path)) ? $data['fieldset'] : 'default'; |
| 261 | - $data_from_post['template'] = $template; |
|
| 261 | + $data_from_post['template'] = $template; |
|
| 262 | 262 | } |
| 263 | 263 | |
| 264 | 264 | //foreach ($fieldset['sections'] as $section_name => $section_body) { |
@@ -735,7 +735,7 @@ discard block |
||
| 735 | 735 | |
| 736 | 736 | ], |
| 737 | 737 | 'edit_entry' => [ |
| 738 | - 'link' => $this->flextype->container('router')->pathFor('admin.entries.edit') . '?id=' . $this->getEntryID($query). '&type=editor', |
|
| 738 | + 'link' => $this->flextype->container('router')->pathFor('admin.entries.edit') . '?id=' . $this->getEntryID($query) . '&type=editor', |
|
| 739 | 739 | 'title' => __('admin_editor'), |
| 740 | 740 | |
| 741 | 741 | ], |
@@ -888,15 +888,15 @@ discard block |
||
| 888 | 888 | $data = $request->getParsedBody(); |
| 889 | 889 | |
| 890 | 890 | // Delete system fields |
| 891 | - isset($data['slug']) and Arrays::delete($data, 'slug'); |
|
| 892 | - isset($data['id']) and Arrays::delete($data, 'id'); |
|
| 893 | - isset($data['csrf_value']) and Arrays::delete($data, 'csrf_value'); |
|
| 894 | - isset($data['csrf_name']) and Arrays::delete($data, 'csrf_name'); |
|
| 895 | - isset($data['form-save-action']) and Arrays::delete($data, 'form-save-action'); |
|
| 896 | - isset($data['trumbowyg-icons-path']) and Arrays::delete($data, 'trumbowyg-icons-path'); |
|
| 897 | - isset($data['trumbowyg-locale']) and Arrays::delete($data, 'trumbowyg-locale'); |
|
| 891 | + isset($data['slug']) and Arrays::delete($data, 'slug'); |
|
| 892 | + isset($data['id']) and Arrays::delete($data, 'id'); |
|
| 893 | + isset($data['csrf_value']) and Arrays::delete($data, 'csrf_value'); |
|
| 894 | + isset($data['csrf_name']) and Arrays::delete($data, 'csrf_name'); |
|
| 895 | + isset($data['form-save-action']) and Arrays::delete($data, 'form-save-action'); |
|
| 896 | + isset($data['trumbowyg-icons-path']) and Arrays::delete($data, 'trumbowyg-icons-path'); |
|
| 897 | + isset($data['trumbowyg-locale']) and Arrays::delete($data, 'trumbowyg-locale'); |
|
| 898 | 898 | isset($data['flatpickr-date-format']) and Arrays::delete($data, 'flatpickr-date-format'); |
| 899 | - isset($data['flatpickr-locale']) and Arrays::delete($data, 'flatpickr-locale'); |
|
| 899 | + isset($data['flatpickr-locale']) and Arrays::delete($data, 'flatpickr-locale'); |
|
| 900 | 900 | |
| 901 | 901 | |
| 902 | 902 | $data['published_by'] = Session::get('uuid'); |
@@ -921,7 +921,7 @@ discard block |
||
| 921 | 921 | |
| 922 | 922 | if (isset($data['routable'])) { |
| 923 | 923 | $data['routable'] = (bool) $data['routable']; |
| 924 | - } elseif(isset($entry['routable'])) { |
|
| 924 | + } elseif (isset($entry['routable'])) { |
|
| 925 | 925 | $data['routable'] = (bool) $entry['routable']; |
| 926 | 926 | } else { |
| 927 | 927 | $data['routable'] = true; |
@@ -21,15 +21,15 @@ |
||
| 21 | 21 | /** |
| 22 | 22 | * Flextype Application |
| 23 | 23 | */ |
| 24 | - protected $flextype; |
|
| 24 | + protected $flextype; |
|
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | 27 | * __construct |
| 28 | 28 | */ |
| 29 | - public function __construct($flextype) |
|
| 30 | - { |
|
| 31 | - $this->flextype = $flextype; |
|
| 32 | - } |
|
| 29 | + public function __construct($flextype) |
|
| 30 | + { |
|
| 31 | + $this->flextype = $flextype; |
|
| 32 | + } |
|
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * Entries Index page |
@@ -24,15 +24,15 @@ |
||
| 24 | 24 | /** |
| 25 | 25 | * Flextype Application |
| 26 | 26 | */ |
| 27 | - protected $flextype; |
|
| 27 | + protected $flextype; |
|
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | * __construct |
| 31 | 31 | */ |
| 32 | - public function __construct($flextype) |
|
| 33 | - { |
|
| 34 | - $this->flextype = $flextype; |
|
| 35 | - } |
|
| 32 | + public function __construct($flextype) |
|
| 33 | + { |
|
| 34 | + $this->flextype = $flextype; |
|
| 35 | + } |
|
| 36 | 36 | |
| 37 | 37 | /** |
| 38 | 38 | * Index page |
@@ -21,15 +21,15 @@ discard block |
||
| 21 | 21 | /** |
| 22 | 22 | * Flextype Application |
| 23 | 23 | */ |
| 24 | - protected $flextype; |
|
| 24 | + protected $flextype; |
|
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | 27 | * __construct |
| 28 | 28 | */ |
| 29 | - public function __construct($flextype) |
|
| 30 | - { |
|
| 31 | - $this->flextype = $flextype; |
|
| 32 | - } |
|
| 29 | + public function __construct($flextype) |
|
| 30 | + { |
|
| 31 | + $this->flextype = $flextype; |
|
| 32 | + } |
|
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * Index page for API's |
@@ -46,30 +46,30 @@ discard block |
||
| 46 | 46 | 'menu_item' => 'api', |
| 47 | 47 | 'api_list' => [ |
| 48 | 48 | 'entries' => [ |
| 49 | - 'title' => __('admin_entries'), |
|
| 50 | - 'icon' => 'fas fa-database' |
|
| 49 | + 'title' => __('admin_entries'), |
|
| 50 | + 'icon' => 'fas fa-database' |
|
| 51 | 51 | ], |
| 52 | 52 | 'registry' => [ |
| 53 | - 'title' => __('admin_registry'), |
|
| 54 | - 'icon' => 'fas fa-archive' |
|
| 53 | + 'title' => __('admin_registry'), |
|
| 54 | + 'icon' => 'fas fa-archive' |
|
| 55 | 55 | ], |
| 56 | 56 | 'images' => [ |
| 57 | - 'title' => __('admin_images'), |
|
| 58 | - 'icon' => 'far fa-images' |
|
| 57 | + 'title' => __('admin_images'), |
|
| 58 | + 'icon' => 'far fa-images' |
|
| 59 | 59 | ], |
| 60 | 60 | 'files' => [ |
| 61 | - 'title' => __('admin_files'), |
|
| 62 | - 'icon' => 'fas fa-file' |
|
| 61 | + 'title' => __('admin_files'), |
|
| 62 | + 'icon' => 'fas fa-file' |
|
| 63 | 63 | ], |
| 64 | 64 | 'folders' => [ |
| 65 | - 'title' => __('admin_folders'), |
|
| 66 | - 'icon' => 'fas fa-folder' |
|
| 65 | + 'title' => __('admin_folders'), |
|
| 66 | + 'icon' => 'fas fa-folder' |
|
| 67 | 67 | ], |
| 68 | 68 | 'access' => [ |
| 69 | - 'title' => __('admin_access'), |
|
| 70 | - 'icon' => 'fas fa-user-shield' |
|
| 69 | + 'title' => __('admin_access'), |
|
| 70 | + 'icon' => 'fas fa-user-shield' |
|
| 71 | + ], |
|
| 71 | 72 | ], |
| 72 | - ], |
|
| 73 | 73 | 'links' => [ |
| 74 | 74 | 'api' => [ |
| 75 | 75 | 'link' => $this->flextype->container('router')->pathFor('admin.api.index'), |
@@ -18,15 +18,15 @@ |
||
| 18 | 18 | /** |
| 19 | 19 | * Flextype Application |
| 20 | 20 | */ |
| 21 | - protected $flextype; |
|
| 21 | + protected $flextype; |
|
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | 24 | * __construct |
| 25 | 25 | */ |
| 26 | - public function __construct($flextype) |
|
| 27 | - { |
|
| 28 | - $this->flextype = $flextype; |
|
| 29 | - } |
|
| 26 | + public function __construct($flextype) |
|
| 27 | + { |
|
| 28 | + $this->flextype = $flextype; |
|
| 29 | + } |
|
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | 32 | * Index page |
@@ -21,15 +21,15 @@ |
||
| 21 | 21 | /** |
| 22 | 22 | * Flextype Application |
| 23 | 23 | */ |
| 24 | - protected $flextype; |
|
| 24 | + protected $flextype; |
|
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | 27 | * __construct |
| 28 | 28 | */ |
| 29 | - public function __construct($flextype) |
|
| 30 | - { |
|
| 31 | - $this->flextype = $flextype; |
|
| 32 | - } |
|
| 29 | + public function __construct($flextype) |
|
| 30 | + { |
|
| 31 | + $this->flextype = $flextype; |
|
| 32 | + } |
|
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * Access Index page |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | */ |
| 29 | 29 | public function __construct($flextype) |
| 30 | 30 | { |
| 31 | - $this->flextype = $flextype; |
|
| 31 | + $this->flextype = $flextype; |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | /** |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | $api_token_dir_path = PATH['project'] . '/tokens' . '/access/' . $api_token; |
| 127 | 127 | $api_token_file_path = $api_token_dir_path . '/token.yaml'; |
| 128 | 128 | |
| 129 | - if (! Filesystem::has($api_token_file_path)) { |
|
| 129 | + if (!Filesystem::has($api_token_file_path)) { |
|
| 130 | 130 | |
| 131 | 131 | Filesystem::createDir($api_token_dir_path); |
| 132 | 132 | |
@@ -18,15 +18,15 @@ |
||
| 18 | 18 | /** |
| 19 | 19 | * Flextype Application |
| 20 | 20 | */ |
| 21 | - protected $flextype; |
|
| 21 | + protected $flextype; |
|
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | 24 | * __construct |
| 25 | 25 | */ |
| 26 | - public function __construct($flextype) |
|
| 27 | - { |
|
| 28 | - $this->flextype = $flextype; |
|
| 29 | - } |
|
| 26 | + public function __construct($flextype) |
|
| 27 | + { |
|
| 28 | + $this->flextype = $flextype; |
|
| 29 | + } |
|
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | 32 | * Index page |