@@ -77,10 +77,10 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | } |