Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/Helper/Navigation/AbstractHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -541,9 +541,9 @@ public function findActive($container, $minDepth = null, $maxDepth = -1)

if ($found) {
return array('page' => $found, 'depth' => $foundDepth);
} else {
return array();
}

return array();
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Helper/Navigation/Breadcrumbs.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,8 @@ public function render($container = null)
$partial = $this->getPartial();
if ($partial) {
return $this->renderPartial($container, $partial);
} else {
return $this->renderStraight($container);
}

return $this->renderStraight($container);
}
}
3 changes: 1 addition & 2 deletions src/Model/JsonModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ public function serialize()

if (!is_null($this->jsonpCallback)) {
return $this->jsonpCallback.'('.Json::encode($variables).');';
} else {
return Json::encode($variables);
}
return Json::encode($variables);
}
}
4 changes: 2 additions & 2 deletions src/Model/ViewModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,9 @@ public function getVariable($name, $default = null)
$name = (string) $name;
if (array_key_exists($name, $this->variables)) {
return $this->variables[$name];
} else {
return $default;
}

return $default;
}

/**
Expand Down

0 comments on commit faec0a2

Please sign in to comment.