diff --git a/src/Helper/Navigation/AbstractHelper.php b/src/Helper/Navigation/AbstractHelper.php index cace5156..10540a14 100644 --- a/src/Helper/Navigation/AbstractHelper.php +++ b/src/Helper/Navigation/AbstractHelper.php @@ -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(); } /** diff --git a/src/Helper/Navigation/Breadcrumbs.php b/src/Helper/Navigation/Breadcrumbs.php index 84c8bd60..bf0697a0 100644 --- a/src/Helper/Navigation/Breadcrumbs.php +++ b/src/Helper/Navigation/Breadcrumbs.php @@ -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); } } diff --git a/src/Model/JsonModel.php b/src/Model/JsonModel.php index 9c6ade9d..839436dc 100644 --- a/src/Model/JsonModel.php +++ b/src/Model/JsonModel.php @@ -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); } } diff --git a/src/Model/ViewModel.php b/src/Model/ViewModel.php index d4aa28d3..89c9ed46 100644 --- a/src/Model/ViewModel.php +++ b/src/Model/ViewModel.php @@ -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; } /**