@@ -76,14 +76,14 @@ discard block |
||
76 | 76 | $jwt->publicKey = $publicKey; |
77 | 77 | } |
78 | 78 | if ($jwt->save() === true) { |
79 | - $this->stdout('Jwt created :' . "\n"); |
|
80 | - $this->stdout(' - id: ' . $jwt->id . "\n"); |
|
81 | - $this->stdout(' - clientId: ' . $jwt->clientId . "\n"); |
|
82 | - $this->stdout(' - subject: ' . $jwt->subject . "\n"); |
|
83 | - $this->stdout(' - publicKey: ' . $jwt->publicKey . "\n"); |
|
79 | + $this->stdout('Jwt created :'."\n"); |
|
80 | + $this->stdout(' - id: '.$jwt->id."\n"); |
|
81 | + $this->stdout(' - clientId: '.$jwt->clientId."\n"); |
|
82 | + $this->stdout(' - subject: '.$jwt->subject."\n"); |
|
83 | + $this->stdout(' - publicKey: '.$jwt->publicKey."\n"); |
|
84 | 84 | return ExitCode::OK; |
85 | 85 | } else { |
86 | - $this->stdout('Jwt cannot be created.' . "\n"); |
|
86 | + $this->stdout('Jwt cannot be created.'."\n"); |
|
87 | 87 | return ExitCode::UNSPECIFIED_ERROR; |
88 | 88 | } |
89 | 89 | } |
@@ -106,18 +106,18 @@ discard block |
||
106 | 106 | $jwt->subject = $this->subject; |
107 | 107 | $jwt->publicKey = $this->publicKey; |
108 | 108 | if ($jwt->save() === true) { |
109 | - $this->stdout('Jwt updated :' . "\n"); |
|
110 | - $this->stdout(' - id: ' . $jwt->id . "\n"); |
|
111 | - $this->stdout(' - clientId: ' . $jwt->clientId . "\n"); |
|
112 | - $this->stdout(' - subject: ' . $jwt->subject . "\n"); |
|
113 | - $this->stdout(' - publicKey: ' . $jwt->publicKey . "\n"); |
|
109 | + $this->stdout('Jwt updated :'."\n"); |
|
110 | + $this->stdout(' - id: '.$jwt->id."\n"); |
|
111 | + $this->stdout(' - clientId: '.$jwt->clientId."\n"); |
|
112 | + $this->stdout(' - subject: '.$jwt->subject."\n"); |
|
113 | + $this->stdout(' - publicKey: '.$jwt->publicKey."\n"); |
|
114 | 114 | return ExitCode::OK; |
115 | 115 | } else { |
116 | - $this->stdout('Jwt ' . $id . ' cannot be updated' . "\n"); |
|
116 | + $this->stdout('Jwt '.$id.' cannot be updated'."\n"); |
|
117 | 117 | return ExitCode::UNSPECIFIED_ERROR; |
118 | 118 | } |
119 | 119 | } else { |
120 | - $this->stdout('Jwt ' . $id . ' does not exist' . "\n"); |
|
120 | + $this->stdout('Jwt '.$id.' does not exist'."\n"); |
|
121 | 121 | return ExitCode::UNSPECIFIED_ERROR; |
122 | 122 | } |
123 | 123 | } |
@@ -137,14 +137,14 @@ discard block |
||
137 | 137 | $jwt = $jwtClass::findOne($id); |
138 | 138 | if ($jwt !== null) { |
139 | 139 | if ($jwt->delete() === true) { |
140 | - $this->stdout('Jwt ' . $id . ' deleted' . "\n"); |
|
140 | + $this->stdout('Jwt '.$id.' deleted'."\n"); |
|
141 | 141 | return ExitCode::OK; |
142 | 142 | } else { |
143 | - $this->stdout('Jwt ' . $id . ' cannot be deleted' . "\n"); |
|
143 | + $this->stdout('Jwt '.$id.' cannot be deleted'."\n"); |
|
144 | 144 | return ExitCode::UNSPECIFIED_ERROR; |
145 | 145 | } |
146 | 146 | } else { |
147 | - $this->stdout('Jwt ' . $id . ' does not exist' . "\n"); |
|
147 | + $this->stdout('Jwt '.$id.' does not exist'."\n"); |
|
148 | 148 | return ExitCode::UNSPECIFIED_ERROR; |
149 | 149 | } |
150 | 150 | } |