@@ -85,7 +85,7 @@ |
||
85 | 85 | */ |
86 | 86 | private function generateRandomKey(): string |
87 | 87 | { |
88 | - return bin2hex(random_bytes((int)$this->getOption('length'))); |
|
88 | + return bin2hex(random_bytes((int) $this->getOption('length'))); |
|
89 | 89 | } |
90 | 90 | |
91 | 91 | } |
@@ -58,7 +58,7 @@ |
||
58 | 58 | case 'web': |
59 | 59 | return WebAuth::getInstance(self::getAuthService(), MailerManager::getHandler(), new Hasher); |
60 | 60 | case 'api': |
61 | - $jwt = (new JWToken())->setLeeway(1)->setClaims((array)config()->get('auth.claims')); |
|
61 | + $jwt = (new JWToken())->setLeeway(1)->setClaims((array) config()->get('auth.claims')); |
|
62 | 62 | return ApiAuth::getInstance(self::getAuthService(), MailerManager::getHandler(), new Hasher, $jwt); |
63 | 63 | default: |
64 | 64 | AuthException::undefinedAuthType(); |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | if (config()->get('debug')) { |
85 | 85 | $this->mailer->SMTPDebug = SMTP::DEBUG_SERVER; |
86 | 86 | |
87 | - $this->mailer->Debugoutput = function ($message) { |
|
87 | + $this->mailer->Debugoutput = function($message) { |
|
88 | 88 | $this->updateDebugBar($message); |
89 | 89 | }; |
90 | 90 | } |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | */ |
187 | 187 | public function setAttachment(string $attachment): SmtpAdapter |
188 | 188 | { |
189 | - $this->attachments[] = $attachment;; |
|
189 | + $this->attachments[] = $attachment; ; |
|
190 | 190 | return $this; |
191 | 191 | } |
192 | 192 |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | { |
210 | 210 | $lines = file($filename, FILE_IGNORE_NEW_LINES); |
211 | 211 | |
212 | - if(!$lines) { |
|
212 | + if (!$lines) { |
|
213 | 213 | return []; |
214 | 214 | } |
215 | 215 | |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | */ |
228 | 228 | public function fileName(string $path): string |
229 | 229 | { |
230 | - return (string)pathinfo($path, PATHINFO_FILENAME); |
|
230 | + return (string) pathinfo($path, PATHINFO_FILENAME); |
|
231 | 231 | } |
232 | 232 | |
233 | 233 | /** |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | */ |
238 | 238 | public function extension(string $path): string |
239 | 239 | { |
240 | - return (string)pathinfo($path, PATHINFO_EXTENSION); |
|
240 | + return (string) pathinfo($path, PATHINFO_EXTENSION); |
|
241 | 241 | } |
242 | 242 | |
243 | 243 | /** |