Skip to content

Commit

Permalink
Fix for double line before return, deleting 4 spaces lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Lubos Remplik committed Aug 13, 2016
1 parent 3dc6ad9 commit dc0a434
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 21 deletions.
9 changes: 0 additions & 9 deletions src/Listener/ViewListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,6 @@ protected function _normalizeActions($actions)
$normalized[$config] = [];
}
}


return $normalized;
}
Expand Down Expand Up @@ -555,7 +554,6 @@ protected function _deriveFieldFromContext($field)
protected function _getViewBlocks()
{
$action = $this->_action();


return $action->config('scaffold.viewblocks') ?: [];
}
Expand All @@ -568,7 +566,6 @@ protected function _getViewBlocks()
protected function _getBulkActions()
{
$action = $this->_action();


return $action->config('scaffold.bulk_actions') ?: [];
}
Expand All @@ -581,7 +578,6 @@ protected function _getBulkActions()
protected function _getFormUrl()
{
$action = $this->_action();


return $action->config('scaffold.form_action') ?: null;
}
Expand All @@ -594,7 +590,6 @@ protected function _getFormUrl()
protected function _getDisableExtraButtons()
{
$action = $this->_action();


return $action->config('scaffold.disable_extra_buttons') ?: false;
}
Expand All @@ -607,7 +602,6 @@ protected function _getDisableExtraButtons()
protected function _getDisableSidebar()
{
$action = $this->_action();


return $action->config('scaffold.disable_sidebar') ?: false;
}
Expand All @@ -620,7 +614,6 @@ protected function _getDisableSidebar()
protected function _getExtraButtonsBlacklist()
{
$action = $this->_action();


return $action->config('scaffold.extra_buttons_blacklist') ?: [];
}
Expand All @@ -633,7 +626,6 @@ protected function _getExtraButtonsBlacklist()
protected function _getEnableDirtyCheck()
{
$action = $this->_action();


return $action->config('scaffold.enable_dirty_check') ?: false;
}
Expand All @@ -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;
}
Expand Down
1 change: 0 additions & 1 deletion src/Listener/ViewSearchListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ protected function _deriveFields()

$fields[$field] = $input;
}


return $fields;
}
Expand Down
5 changes: 0 additions & 5 deletions src/View/CrudView.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -138,7 +137,6 @@ public function fetch($name, $default = '')
}

$internal = $this->Blocks->get($name, $default);


return $internal . $viewblock;
}
Expand All @@ -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);
}
Expand All @@ -179,7 +176,6 @@ protected function _createViewblock($data)
$output .= $key;
}
}


return $output;
}
Expand All @@ -201,7 +197,6 @@ protected function _getViewFileName($name = null)
} catch (MissingTemplateException $exception) {
$this->subDir = null;
$this->templatePath = 'Scaffold';


return parent::_getViewFileName($this->template);
}
Expand Down
4 changes: 0 additions & 4 deletions src/View/Helper/CrudViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}
Expand Down Expand Up @@ -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);
}
Expand All @@ -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);
}
Expand Down Expand Up @@ -268,7 +265,6 @@ public function relation($field)
}

$entity = $data->$entityName;


return [
'alias' => $alias,
Expand Down
2 changes: 0 additions & 2 deletions src/View/Widget/DateTimeWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ class="form-control"
</label>
</div>
html;


return $widget;
}
Expand Down Expand Up @@ -134,7 +133,6 @@ protected function _convertPHPToMomentFormat($format)
'U' => 'X',
];
$momentFormat = strtr($format, $replacements);


return $momentFormat;
}
Expand Down

0 comments on commit dc0a434

Please sign in to comment.