Completed
Push — master ( bb9d0e...329471 )
by Nate
06:50 queued 15s
created
src/Controller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,6 +67,6 @@
 block discarded – undo
67 67
      */
68 68
     protected function verbs(): array
69 69
     {
70
-        return [];
70
+        return [ ];
71 71
     }
72 72
 }
Please login to merge, or discard this patch.
src/JsonParser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,10 +33,10 @@
 block discarded – undo
33 33
     {
34 34
         foreach ($arr as $key => $value) {
35 35
             if ($value === null) {
36
-                unset($arr[$key]);
36
+                unset($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
 
Please login to merge, or discard this patch.
src/UrlRule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/UrlManager.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,14 +28,14 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
config/rest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -10,8 +10,8 @@  discard block
 block discarded – undo
10 10
                 'enableAutoLogin' => false,
11 11
                 'autoRenewCookie' => false,
12 12
                 'enableSession' => false,
13
-                'identityCookie' => Craft::cookieConfig(['name' => $stateKeyPrefix.'_identity']),
14
-                'usernameCookie' => Craft::cookieConfig(['name' => $stateKeyPrefix.'_username']),
13
+                'identityCookie' => Craft::cookieConfig([ 'name' => $stateKeyPrefix.'_identity' ]),
14
+                'usernameCookie' => Craft::cookieConfig([ 'name' => $stateKeyPrefix.'_username' ]),
15 15
                 'loginUrl' => null,
16 16
                 'idParam' => $stateKeyPrefix.'__id',
17 17
                 'authTimeoutParam' => $stateKeyPrefix.'__expire',
@@ -49,16 +49,16 @@  discard block
 block discarded – undo
49 49
                 'dirMode' => $generalConfig->defaultDirMode,
50 50
                 'includeUserIp' => $generalConfig->storeUserIps,
51 51
                 'except' => [
52
-                    yii\i18n\PhpMessageSource::class . ':*',
52
+                    yii\i18n\PhpMessageSource::class.':*',
53 53
                 ],
54 54
             ];
55 55
 
56
-            $target['logFile'] = '@storage/logs/rest.log';
56
+            $target[ 'logFile' ] = '@storage/logs/rest.log';
57 57
 
58 58
             // Only log errors and warnings, unless Craft is running in Dev Mode or it's being installed/updated
59
-            $target['levels'] = yii\log\Logger::LEVEL_ERROR | yii\log\Logger::LEVEL_WARNING;
59
+            $target[ 'levels' ] = yii\log\Logger::LEVEL_ERROR | yii\log\Logger::LEVEL_WARNING;
60 60
             if (YII_DEBUG) {
61
-                $target['levels'] = $target['levels'] | yii\log\Logger::LEVEL_INFO;
61
+                $target[ 'levels' ] = $target[ 'levels' ] | yii\log\Logger::LEVEL_INFO;
62 62
             }
63 63
 
64 64
             return Craft::createObject([
@@ -79,5 +79,5 @@  discard block
 block discarded – undo
79 79
     'modules' => [
80 80
         'debug' => null
81 81
     ],
82
-    'bootstrap' => []
82
+    'bootstrap' => [ ]
83 83
 ];
84 84
\ No newline at end of file
Please login to merge, or discard this patch.