@@ -163,7 +163,9 @@ discard block |
||
163 | 163 | */ |
164 | 164 | protected function buildBreadcrumbs() |
165 | 165 | { |
166 | - if (!empty($this->exceptRoutes) && $this->reject()) return; |
|
166 | + if (!empty($this->exceptRoutes) && $this->reject()) { |
|
167 | + return; |
|
168 | + } |
|
167 | 169 | $params = $this->getBreadcrumbs(); |
168 | 170 | if (!empty($this->breadcrumbsKey)) { |
169 | 171 | Yii::$app->controller->getView()->params[$this->breadcrumbsParam][$this->breadcrumbsKey] = $params; |
@@ -225,7 +227,9 @@ discard block |
||
225 | 227 | |
226 | 228 | protected function isActiveBreadcrumb() |
227 | 229 | { |
228 | - if ($this->defaultRoute === false) return false; |
|
230 | + if ($this->defaultRoute === false) { |
|
231 | + return false; |
|
232 | + } |
|
229 | 233 | if ($this->owner->id === Yii::$app->controller->module->id) { |
230 | 234 | $relativeRoute = Yii::$app->controller->id . '/' . Yii::$app->controller->action->id; |
231 | 235 | return strpos($this->defaultRoute, $relativeRoute) !== false; |