Completed
Branch devel (e72808)
by Philippe
04:52
created
src/commands/ClientController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -73,10 +73,10 @@  discard block
 block discarded – undo
73 73
         $client->grantTypes = empty($this->grantTypes) ? null : explode(',', $this->grantTypes);
74 74
         if ($client->save() === true) {
75 75
             $this->stdout('Client created :'."\n");
76
-            $this->stdout(' - id: ' . $client->id . "\n");
77
-            $this->stdout(' - secret: ' . $client->secret . "\n");
78
-            $this->stdout(' - name: ' . $client->name . "\n");
79
-            $this->stdout(' - redirectUri: ' . $client->redirectUri . "\n");
76
+            $this->stdout(' - id: '.$client->id."\n");
77
+            $this->stdout(' - secret: '.$client->secret."\n");
78
+            $this->stdout(' - name: '.$client->name."\n");
79
+            $this->stdout(' - redirectUri: '.$client->redirectUri."\n");
80 80
         } else {
81 81
             $this->stdout('Client cannot be created.'."\n");
82 82
         }
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      */
91 91
     protected function getRandomString($length = 40)
92 92
     {
93
-        $bytes = (int) $length/2;
93
+        $bytes = (int)$length/2;
94 94
         return bin2hex(openssl_random_pseudo_bytes($bytes));
95 95
     }
96 96
 }
97 97
\ No newline at end of file
Please login to merge, or discard this patch.
src/commands/KeyController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,8 +82,8 @@
 block discarded – undo
82 82
         }
83 83
         if ($cypherKey->save() === true) {
84 84
             $this->stdout('Key created :'."\n");
85
-            $this->stdout(' - id: ' . $cypherKey->id . "\n");
86
-            $this->stdout(' - Algorithm: ' . $cypherKey->encryptionAlgorithm . "\n");
85
+            $this->stdout(' - id: '.$cypherKey->id."\n");
86
+            $this->stdout(' - Algorithm: '.$cypherKey->encryptionAlgorithm."\n");
87 87
         } else {
88 88
             $this->stdout('Key cannot be created.'."\n");
89 89
         }
Please login to merge, or discard this patch.
src/commands/ScopeController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,9 +60,9 @@
 block discarded – undo
60 60
         $scope->definition = $this->definition;
61 61
         if ($scope->save() === true) {
62 62
             $this->stdout('Scope created :'."\n");
63
-            $this->stdout(' - id: ' . $scope->id . "\n");
64
-            $this->stdout(' - isDefault: ' . ($scope->isDefault ? 'Yes' : 'No') . "\n");
65
-            $this->stdout(' - definition: ' . $scope->definition . "\n");
63
+            $this->stdout(' - id: '.$scope->id."\n");
64
+            $this->stdout(' - isDefault: '.($scope->isDefault ? 'Yes' : 'No')."\n");
65
+            $this->stdout(' - definition: '.$scope->definition."\n");
66 66
         } else {
67 67
             $this->stdout('Scope cannot be created.'."\n");
68 68
         }
Please login to merge, or discard this patch.
src/controllers/TokenController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
             $response->content = $oauthResponse->getResponseBody('xml');
125 125
         }
126 126
         $headers = $oauthResponse->getHttpHeaders();
127
-        foreach($headers as $name => $value)
127
+        foreach ($headers as $name => $value)
128 128
         {
129 129
             $response->headers->set($name, $value);
130 130
         }
Please login to merge, or discard this patch.
src/controllers/AuthorizeController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
         $requestedScopes = [];
119 119
         if (empty($additionalScopes) === false) {
120 120
             $additionalScopes = explode(' ', $additionalScopes);
121
-            foreach($additionalScopes as $scope) {
121
+            foreach ($additionalScopes as $scope) {
122 122
                 $dbScope = Scope::findOne($scope);
123 123
                 if ($dbScope !== null) {
124 124
                     $requestedScopes[] = [
Please login to merge, or discard this patch.
src/models/BaseModel.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
         if ($this->hasAttribute($name)) {
172 172
             $this->_attributes[$name] = $value;
173 173
         } else {
174
-            throw new InvalidParamException(get_class($this) . ' has no attribute named "' . $name . '".');
174
+            throw new InvalidParamException(get_class($this).' has no attribute named "'.$name.'".');
175 175
         }
176 176
     }
177 177
 
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
         if (isset($this->_oldAttributes[$name]) || $this->hasAttribute($name)) {
209 209
             $this->_oldAttributes[$name] = $value;
210 210
         } else {
211
-            throw new InvalidParamException(get_class($this) . ' has no attribute named "' . $name . '".');
211
+            throw new InvalidParamException(get_class($this).' has no attribute named "'.$name.'".');
212 212
         }
213 213
     }
214 214
 
@@ -382,10 +382,10 @@  discard block
 block discarded – undo
382 382
      * If not set, [[formName()]] will be used.
383 383
      * @return boolean whether the model is successfully populated with some data.
384 384
      */
385
-    public function loadIds($data, $formName=null)
385
+    public function loadIds($data, $formName = null)
386 386
     {
387 387
         $camelData = [];
388
-        foreach($data as $key => $value) {
388
+        foreach ($data as $key => $value) {
389 389
             $key = lcfirst(Inflector::id2camel($key));
390 390
             $camelData[$key] = $value;
391 391
         }
Please login to merge, or discard this patch.
src/traits/redis/TypeConverter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         if ((isset($this->attributesDefinitions[$key]) === true)
57 57
             && (in_array($this->attributesDefinitions[$key], $bypassTypes) === false)
58 58
         ) {
59
-            switch($this->attributesDefinitions[$key]) {
59
+            switch ($this->attributesDefinitions[$key]) {
60 60
                 case 'bool':
61 61
                 case 'boolean':
62 62
                     $value = $value ? 1 : 0;
@@ -95,11 +95,11 @@  discard block
 block discarded – undo
95 95
             switch ($this->attributesDefinitions[$key]) {
96 96
                 case 'bool':
97 97
                 case 'boolean':
98
-                    $value = (bool) $value;
98
+                    $value = (bool)$value;
99 99
                     break;
100 100
                 case 'int':
101 101
                 case 'integer':
102
-                    $value = (int) $value;
102
+                    $value = (int)$value;
103 103
                     break;
104 104
                 case 'array':
105 105
                     try {
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
                 case 'real':
112 112
                 case 'double':
113 113
                 case 'float':
114
-                    $value = (float) $value;
114
+                    $value = (float)$value;
115 115
                     break;
116 116
             }
117 117
         }
Please login to merge, or discard this patch.
src/services/redis/AccessTokenService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
      */
45 45
     protected function getAccessTokenKey($aid)
46 46
     {
47
-        return $this->namespace . ':' . $aid;
47
+        return $this->namespace.':'.$aid;
48 48
     }
49 49
 
50 50
     /**
Please login to merge, or discard this patch.
src/services/redis/ClientService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
      */
45 45
     protected function getClientKey($cid)
46 46
     {
47
-        return $this->namespace . ':' . $cid;
47
+        return $this->namespace.':'.$cid;
48 48
     }
49 49
 
50 50
     /**
Please login to merge, or discard this patch.