Skip to content

Commit

Permalink
Code clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
HavokInspiration committed Oct 4, 2016
1 parent 534a1a1 commit ff97df7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/View/Helper/BreadcrumbsHelper.php
Expand Up @@ -178,7 +178,7 @@ public function render(array $attributes = [], array $separator = [])
$templater = $this->templater();

$separatorParams = [];
if (!empty($separator)) {
if ($separator) {
if (isset($separator['innerAttrs'])) {
$separatorParams['innerAttrs'] = $templater->formatAttributes($separator['innerAttrs']);
unset($separator['innerAttrs']);
Expand Down Expand Up @@ -219,7 +219,7 @@ public function render(array $attributes = [], array $separator = [])
'templateVars' => isset($options['templateVars']) ? $options['templateVars'] : []
];

if (empty($link)) {
if (!($link)) {
$template = 'itemWithoutLink';
}

Expand Down Expand Up @@ -268,10 +268,10 @@ protected function findCrumb($title)
*/
protected function prepareLink($link = null)
{
if (!empty($link)) {
return $this->Url->build($link);
if (!$link) {
return null;
}

return null;
return $this->Url->build($link);
}
}

0 comments on commit ff97df7

Please sign in to comment.