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