Completed
Push — devel ( b86c98...5aa576 )
by Philippe
02:20
created
src/services/redis/ClientService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      */
46 46
     protected function getClientKey($cid)
47 47
     {
48
-        return $this->namespace . ':' . $cid;
48
+        return $this->namespace.':'.$cid;
49 49
     }
50 50
 
51 51
     /**
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      */
56 56
     protected function getClientUsersListKey($cid)
57 57
     {
58
-        return $this->namespace . ':' . $cid . ':users';
58
+        return $this->namespace.':'.$cid.':users';
59 59
     }
60 60
 
61 61
     /**
Please login to merge, or discard this patch.
src/behaviors/SplitToArrayBehavior.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
      */
52 52
     public function updateAttribute()
53 53
     {
54
-        foreach($this->attributes as $attribute) {
54
+        foreach ($this->attributes as $attribute) {
55 55
             if ($this->owner->{$attribute} === null) {
56 56
                 $this->owner->{$attribute} = [];
57 57
             }
Please login to merge, or discard this patch.
src/models/Client.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
                 if (is_array($data) === false) {
74 74
                     $data = explode(' ', $data);
75 75
                 }
76
-                foreach($data as $redirectUri) {
76
+                foreach ($data as $redirectUri) {
77 77
                     $isLocalhost = strncmp('http://localhost', $redirectUri, 16);
78 78
                     $isSecureLocalhost = strncmp('https://localhost', $redirectUri, 17);
79 79
                     if (($isLocalhost !== 0) && ($isSecureLocalhost !== 0)) {
Please login to merge, or discard this patch.
src/commands/ClientController.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -76,10 +76,10 @@  discard block
 block discarded – undo
76 76
         $client->grantTypes = empty($this->grantTypes) ? null : explode(',', $this->grantTypes);
77 77
         if ($client->save() === true) {
78 78
             $this->stdout('Client created :'."\n");
79
-            $this->stdout(' - id: ' . $client->id . "\n");
80
-            $this->stdout(' - secret: ' . $client->secret . "\n");
81
-            $this->stdout(' - name: ' . $client->name . "\n");
82
-            $this->stdout(' - redirectUri: ' . implode(',', $client->redirectUri) . "\n");
79
+            $this->stdout(' - id: '.$client->id."\n");
80
+            $this->stdout(' - secret: '.$client->secret."\n");
81
+            $this->stdout(' - name: '.$client->name."\n");
82
+            $this->stdout(' - redirectUri: '.implode(',', $client->redirectUri)."\n");
83 83
             return Controller::EXIT_CODE_NORMAL;
84 84
         } else {
85 85
             $this->stdout('Client cannot be created.'."\n");
@@ -98,11 +98,11 @@  discard block
 block discarded – undo
98 98
             $client->scopes = empty($this->scope) ? null : explode(',', $this->scopes);
99 99
             $client->grantTypes = empty($this->grantTypes) ? null : explode(',', $this->grantTypes);
100 100
             if ($client->save() === true) {
101
-                $this->stdout('Client updated :' . "\n");
102
-                $this->stdout(' - id: ' . $client->id . "\n");
103
-                $this->stdout(' - secret: ' . $client->secret . "\n");
104
-                $this->stdout(' - name: ' . $client->name . "\n");
105
-                $this->stdout(' - redirectUri: ' . $client->redirectUri . "\n");
101
+                $this->stdout('Client updated :'."\n");
102
+                $this->stdout(' - id: '.$client->id."\n");
103
+                $this->stdout(' - secret: '.$client->secret."\n");
104
+                $this->stdout(' - name: '.$client->name."\n");
105
+                $this->stdout(' - redirectUri: '.$client->redirectUri."\n");
106 106
                 return Controller::EXIT_CODE_NORMAL;
107 107
             } else {
108 108
                 $this->stdout('Client cannot be updated.'."\n");
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      */
123 123
     protected function getRandomString($length = 40)
124 124
     {
125
-        $bytes = (int) $length/2;
125
+        $bytes = (int)$length/2;
126 126
         return bin2hex(openssl_random_pseudo_bytes($bytes));
127 127
     }
128 128
 }
Please login to merge, or discard this patch.