diff --git a/src/Listener/ViewListener.php b/src/Listener/ViewListener.php index 73ec350b..4ca419f2 100644 --- a/src/Listener/ViewListener.php +++ b/src/Listener/ViewListener.php @@ -443,7 +443,6 @@ protected function _normalizeActions($actions) $normalized[$config] = []; } } - return $normalized; } @@ -555,7 +554,6 @@ protected function _deriveFieldFromContext($field) protected function _getViewBlocks() { $action = $this->_action(); - return $action->config('scaffold.viewblocks') ?: []; } @@ -568,7 +566,6 @@ protected function _getViewBlocks() protected function _getBulkActions() { $action = $this->_action(); - return $action->config('scaffold.bulk_actions') ?: []; } @@ -581,7 +578,6 @@ protected function _getBulkActions() protected function _getFormUrl() { $action = $this->_action(); - return $action->config('scaffold.form_action') ?: null; } @@ -594,7 +590,6 @@ protected function _getFormUrl() protected function _getDisableExtraButtons() { $action = $this->_action(); - return $action->config('scaffold.disable_extra_buttons') ?: false; } @@ -607,7 +602,6 @@ protected function _getDisableExtraButtons() protected function _getDisableSidebar() { $action = $this->_action(); - return $action->config('scaffold.disable_sidebar') ?: false; } @@ -620,7 +614,6 @@ protected function _getDisableSidebar() protected function _getExtraButtonsBlacklist() { $action = $this->_action(); - return $action->config('scaffold.extra_buttons_blacklist') ?: []; } @@ -633,7 +626,6 @@ protected function _getExtraButtonsBlacklist() protected function _getEnableDirtyCheck() { $action = $this->_action(); - return $action->config('scaffold.enable_dirty_check') ?: false; } @@ -652,7 +644,6 @@ protected function _getActionGroups() // add "primary" actions (primary should rendered as separate buttons) $groups['primary'] = array_diff(array_keys($this->_getAllowedActions()), $groupedActions); - return $groups; } diff --git a/src/Listener/ViewSearchListener.php b/src/Listener/ViewSearchListener.php index 318928bd..1270594c 100644 --- a/src/Listener/ViewSearchListener.php +++ b/src/Listener/ViewSearchListener.php @@ -141,7 +141,6 @@ protected function _deriveFields() $fields[$field] = $input; } - return $fields; } diff --git a/src/View/CrudView.php b/src/View/CrudView.php index ffbe86d6..ad4c1a5c 100644 --- a/src/View/CrudView.php +++ b/src/View/CrudView.php @@ -56,7 +56,6 @@ protected function _loadAssets() $this->AssetCompress->css('CrudView.crudview', ['block' => true]); $this->AssetCompress->script('CrudView.crudview_head', ['block' => 'headjs']); $this->AssetCompress->script('CrudView.crudview', ['block' => true]); - return; } @@ -138,7 +137,6 @@ public function fetch($name, $default = '') } $internal = $this->Blocks->get($name, $default); - return $internal . $viewblock; } @@ -153,7 +151,6 @@ public function fetch($name, $default = '') public function exists($name) { $viewblocks = $this->get('viewblocks', []); - return !empty($viewblocks[$name]) || $this->Blocks->exists($name); } @@ -179,7 +176,6 @@ protected function _createViewblock($data) $output .= $key; } } - return $output; } @@ -201,7 +197,6 @@ protected function _getViewFileName($name = null) } catch (MissingTemplateException $exception) { $this->subDir = null; $this->templatePath = 'Scaffold'; - return parent::_getViewFileName($this->template); } diff --git a/src/View/Helper/CrudViewHelper.php b/src/View/Helper/CrudViewHelper.php index a3cce720..f6cf2618 100644 --- a/src/View/Helper/CrudViewHelper.php +++ b/src/View/Helper/CrudViewHelper.php @@ -68,7 +68,6 @@ public function process($field, Entity $data, array $options = []) if ($options['formatter'] === 'element') { $context = $this->getContext(); - return $this->_View->element($options['element'], compact('context', 'field', 'value', 'options')); } @@ -191,7 +190,6 @@ public function formatDate($field, $value, array $options) if ($value === null) { return $this->Html->label(__d('crud', 'N/A'), 'info'); } - return $this->Time->timeAgoInWords($value, $options); } @@ -210,7 +208,6 @@ public function formatTime($field, $value, array $options) return $this->Html->label(__d('crud', 'N/A'), 'info'); } $format = isset($options['format']) ? $options['format'] : null; - return $this->Time->nice($value, $format); } @@ -268,7 +265,6 @@ public function relation($field) } $entity = $data->$entityName; - return [ 'alias' => $alias, diff --git a/src/View/Widget/DateTimeWidget.php b/src/View/Widget/DateTimeWidget.php index 2b8c496a..ad927d42 100644 --- a/src/View/Widget/DateTimeWidget.php +++ b/src/View/Widget/DateTimeWidget.php @@ -81,7 +81,6 @@ class="form-control" html; - return $widget; } @@ -134,7 +133,6 @@ protected function _convertPHPToMomentFormat($format) 'U' => 'X', ]; $momentFormat = strtr($format, $replacements); - return $momentFormat; }