Completed
Pull Request — devel (#17)
by
unknown
35:41
created
src/views/authorize/authorize.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,9 +35,9 @@
 block discarded – undo
35 35
     <div class="row">
36 36
         <div class="col-md-push-3 col-md-6 col-sm-push-2 col-sm-8 col-xs-12 white-panel">
37 37
             <?php echo Html::beginForm(); ?>
38
-            <?php if(empty($requestedScopes) === false) : ?>
38
+            <?php if (empty($requestedScopes) === false) : ?>
39 39
             <ul class="list-group">
40
-                <?php foreach($requestedScopes as $scope): ?>
40
+                <?php foreach ($requestedScopes as $scope): ?>
41 41
                 <li class="list-group-item">
42 42
                     <h4 class="list-group-item-heading"><?php echo $scope->id; ?></h4>
43 43
                     <p class="list-group-item-text">
Please login to merge, or discard this patch.
src/services/redis/ClientService.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      */
52 52
     protected function getClientKey($cid)
53 53
     {
54
-        return $this->namespace . ':' . $cid;
54
+        return $this->namespace.':'.$cid;
55 55
     }
56 56
 
57 57
     /**
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      */
62 62
     protected function getClientUsersListKey($cid)
63 63
     {
64
-        return $this->namespace . ':' . $cid . ':users';
64
+        return $this->namespace.':'.$cid.':users';
65 65
     }
66 66
 
67 67
     /**
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      */
72 72
     protected function getUserClientsListKey($uid)
73 73
     {
74
-        return $this->userNamespace . ':' . $uid . ':clients';
74
+        return $this->userNamespace.':'.$uid.':clients';
75 75
     }
76 76
 
77 77
     /**
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
 
268 268
             $this->db->executeCommand('MULTI');
269 269
             // remove client from all userClient sets
270
-            foreach($usersList as $user) {
270
+            foreach ($usersList as $user) {
271 271
                 $userClientKey = $this->getUserClientsListKey($user);
272 272
                 $this->db->executeCommand('SREM', [$userClientKey, $id]);
273 273
             }
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
         $userClientsListKey = $this->getUserClientsListKey($userId);
333 333
         $clientsList = $this->db->executeCommand('SMEMBERS', [$userClientsListKey]);
334 334
         $clients = [];
335
-        foreach($clientsList as $clientId) {
335
+        foreach ($clientsList as $clientId) {
336 336
             $result = $this->findOne($clientId);
337 337
             if ($result instanceof ClientModelInterface) {
338 338
                 $clients[] = $result;
Please login to merge, or discard this patch.
src/Module.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -191,7 +191,7 @@
 block discarded – undo
191 191
     /**
192 192
      * @var int duration of login time for multiple authorize calls
193 193
      */
194
-    public $loginDuration = 60 * 60 * 24 * 30;
194
+    public $loginDuration = 60*60*24*30;
195 195
 
196 196
     /**
197 197
      * @var bool configure authorization code (enforce_redirect)
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
@@ -77,10 +77,10 @@  discard block
 block discarded – undo
77 77
         $client->grantTypes = empty($this->grantTypes) ? null : explode(',', $this->grantTypes);
78 78
         if ($client->save() === true) {
79 79
             $this->stdout('Client created :'."\n");
80
-            $this->stdout(' - id: ' . $client->id . "\n");
81
-            $this->stdout(' - secret: ' . $client->secret . "\n");
82
-            $this->stdout(' - name: ' . $client->name . "\n");
83
-            $this->stdout(' - redirectUri: ' . implode(',', $client->redirectUri) . "\n");
80
+            $this->stdout(' - id: '.$client->id."\n");
81
+            $this->stdout(' - secret: '.$client->secret."\n");
82
+            $this->stdout(' - name: '.$client->name."\n");
83
+            $this->stdout(' - redirectUri: '.implode(',', $client->redirectUri)."\n");
84 84
             return ExitCode::OK;
85 85
         } else {
86 86
             $this->stdout('Client cannot be created.'."\n");
@@ -99,11 +99,11 @@  discard block
 block discarded – undo
99 99
             $client->scopes = empty($this->scopes) ? null : explode(',', $this->scopes);
100 100
             $client->grantTypes = empty($this->grantTypes) ? null : explode(',', $this->grantTypes);
101 101
             if ($client->save() === true) {
102
-                $this->stdout('Client updated :' . "\n");
103
-                $this->stdout(' - id: ' . $client->id . "\n");
104
-                $this->stdout(' - secret: ' . $client->secret . "\n");
105
-                $this->stdout(' - name: ' . $client->name . "\n");
106
-                $this->stdout(' - redirectUri: ' . implode(',', $client->redirectUri) . "\n");
102
+                $this->stdout('Client updated :'."\n");
103
+                $this->stdout(' - id: '.$client->id."\n");
104
+                $this->stdout(' - secret: '.$client->secret."\n");
105
+                $this->stdout(' - name: '.$client->name."\n");
106
+                $this->stdout(' - redirectUri: '.implode(',', $client->redirectUri)."\n");
107 107
                 return ExitCode::OK;
108 108
             } else {
109 109
                 $this->stdout('Client cannot be updated.'."\n");
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      */
124 124
     protected function getRandomString($length = 40)
125 125
     {
126
-        $bytes = (int) $length/2;
126
+        $bytes = (int)$length/2;
127 127
         return bin2hex(openssl_random_pseudo_bytes($bytes));
128 128
     }
129 129
 }
Please login to merge, or discard this patch.