Passed
Branch master (d79009)
by Pavel
02:48
created
BreadcrumbsFilter.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
         }
218 218
         if (!$this->owner->hasProperty($this->labelParam)) {
219 219
             throw new UnknownPropertyException("BreadcrumbsFilter's owner should provide property '"
220
-                . $this->labelParam . "'");
220
+                . $this->labelParam."'");
221 221
         }
222 222
 
223 223
         return $this->owner->{$this->labelParam};
@@ -230,14 +230,14 @@  discard block
 block discarded – undo
230 230
      */
231 231
     protected function buildBreadcrumbUrl()
232 232
     {
233
-        return ($route = $this->buildBreadcrumbRoute()) ? Url::to(['/' . $route]) : null;
233
+        return ($route = $this->buildBreadcrumbRoute()) ? Url::to(['/'.$route]) : null;
234 234
     }
235 235
 
236 236
     protected function isActiveBreadcrumb()
237 237
     {
238 238
         if ($this->defaultRoute === false) return false;
239 239
         if ($this->owner->id === Yii::$app->controller->module->id) {
240
-            $relativeRoute = Yii::$app->controller->id . '/' . Yii::$app->controller->action->id;
240
+            $relativeRoute = Yii::$app->controller->id.'/'.Yii::$app->controller->action->id;
241 241
 
242 242
             return strpos($this->defaultRoute, $relativeRoute) !== false;
243 243
         }
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -171,7 +171,9 @@  discard block
 block discarded – undo
171 171
      */
172 172
     protected function buildBreadcrumbs()
173 173
     {
174
-        if (!empty($this->exceptRoutes) && $this->reject()) return;
174
+        if (!empty($this->exceptRoutes) && $this->reject()) {
175
+            return;
176
+        }
175 177
         $params = $this->getBreadcrumbs();
176 178
         if (!empty($this->breadcrumbsKey)) {
177 179
             Yii::$app->controller->getView()->params[$this->breadcrumbsParam][$this->breadcrumbsKey] = $params;
@@ -235,7 +237,9 @@  discard block
 block discarded – undo
235 237
 
236 238
     protected function isActiveBreadcrumb()
237 239
     {
238
-        if ($this->defaultRoute === false) return false;
240
+        if ($this->defaultRoute === false) {
241
+            return false;
242
+        }
239 243
         if ($this->owner->id === Yii::$app->controller->module->id) {
240 244
             $relativeRoute = Yii::$app->controller->id . '/' . Yii::$app->controller->action->id;
241 245
 
Please login to merge, or discard this patch.