Completed
Branch master (ebf0d4)
by Pavel
01:57
created
Category
BreadcrumbsFilter.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -163,7 +163,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.