@@ -33,10 +33,10 @@ |
||
33 | 33 | { |
34 | 34 | foreach ($arr as $key => $value) { |
35 | 35 | if ($value === null) { |
36 | - $arr[$key] = ''; |
|
36 | + $arr[ $key ] = ''; |
|
37 | 37 | } |
38 | 38 | if (is_array($value)) { |
39 | - $arr[$key] = $this->filterNullValuesFromArray($value); |
|
39 | + $arr[ $key ] = $this->filterNullValuesFromArray($value); |
|
40 | 40 | } |
41 | 41 | } |
42 | 42 |
@@ -29,7 +29,7 @@ |
||
29 | 29 | protected function createRule($pattern, $prefix, $action) |
30 | 30 | { |
31 | 31 | if (!empty($this->prepend)) { |
32 | - $action = $this->prepend . '/' . $action; |
|
32 | + $action = $this->prepend.'/'.$action; |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | return parent::createRule($pattern, $prefix, $action); |
@@ -28,14 +28,14 @@ discard block |
||
28 | 28 | * @var array the default configuration of URL rules. Individual rule configurations |
29 | 29 | * specified via [[rules]] will take precedence when the same property of the rule is configured. |
30 | 30 | */ |
31 | - public $ruleConfig = ['class' => UrlRule::class]; |
|
31 | + public $ruleConfig = [ 'class' => UrlRule::class ]; |
|
32 | 32 | |
33 | 33 | /** |
34 | 34 | * @inheritdoc |
35 | 35 | */ |
36 | - public function __construct(array $config = []) |
|
36 | + public function __construct(array $config = [ ]) |
|
37 | 37 | { |
38 | - $config['rules'] = $this->getRules(); |
|
38 | + $config[ 'rules' ] = $this->getRules(); |
|
39 | 39 | parent::__construct($config); |
40 | 40 | } |
41 | 41 | |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | public function parseRequest($request) |
60 | 60 | { |
61 | 61 | if (!$result = parent::parseRequest($request)) { |
62 | - Craft::warning("Unable to parse request: " . $request->getUrl()); |
|
62 | + Craft::warning("Unable to parse request: ".$request->getUrl()); |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | return $result; |