Completed
Push — master ( 0fae22...156482 )
by Charles
03:07
created
filters/auth/HMACSignatureAuth.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
     private function isHMACSignatureValid($accessToken, $ikm, $salt, $request, $hmac = null)
93 93
     {
94 94
         static $selfHMAC = null;
95
-        static $hkdf   = null;
95
+        static $hkdf = null;
96 96
         
97 97
         // Null check the HMAC string
98 98
         if (empty($hmac) || $hmac === null) {
Please login to merge, or discard this patch.
web/JsonResponseFormatter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
                 $response->data['status'] = $status;
60 60
 
61 61
                 if ($response->data['data'] === [] || $response->data['data'] === null) {
62
-                    $response->data['data'] =  null;
62
+                    $response->data['data'] = null;
63 63
                 }
64 64
             }
65 65
 
Please login to merge, or discard this patch.
models/User.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -273,8 +273,8 @@  discard block
 block discarded – undo
273 273
         $encodedSecret = Base32::encode($secret);
274 274
         $totp = TOTP::create(
275 275
             $encodedSecret,
276
-            30,             // 30 second window
277
-            'sha256',       // SHA256 for the hashing algorithm
276
+            30, // 30 second window
277
+            'sha256', // SHA256 for the hashing algorithm
278 278
             6               // 6 digits
279 279
         );
280 280
         $totp->setLabel($this->username);
@@ -328,8 +328,8 @@  discard block
 block discarded – undo
328 328
     {
329 329
         $totp = TOTP::create(
330 330
             $this->otp_secret,
331
-            30,             // 30 second window
332
-            'sha256',       // SHA256 for the hashing algorithm
331
+            30, // 30 second window
332
+            'sha256', // SHA256 for the hashing algorithm
333 333
             6               // 6 digits
334 334
         );
335 335
 
Please login to merge, or discard this patch.
models/redis/Token.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
         $token->user_id = $userId;
73 73
         $token->access_token = \str_replace('=', '', Base32::encode(\random_bytes(32)));
74 74
         $token->refresh_token = \str_replace('=', '', Base32::encode(\random_bytes(32)));
75
-        $token->ikm =  \base64_encode(\random_bytes(32));
75
+        $token->ikm = \base64_encode(\random_bytes(32));
76 76
         $token->secret_sign_kp = \base64_encode(sodium_crypto_sign_secretkey($signKp));
77 77
         $token->expires_at = \strtotime(static::TOKEN_EXPIRATION_TIME);
78 78
 
Please login to merge, or discard this patch.
components/HttpClientComponent.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
             'transport' => $this->transport
54 54
         ]);
55 55
 
56
-        $this->client->on(Client::EVENT_BEFORE_SEND, function (RequestEvent $e) {
56
+        $this->client->on(Client::EVENT_BEFORE_SEND, function(RequestEvent $e) {
57 57
             Yii::info([
58 58
                 'message' => sprintf('Sending HTTP request [%s] %s', $e->request->getMethod(), $e->request->getUrl()),
59 59
                 'data' => [
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
             ], 'httpclient');
66 66
         });
67 67
 
68
-        $this->client->on(Client::EVENT_AFTER_SEND, function (RequestEvent $e) {
68
+        $this->client->on(Client::EVENT_AFTER_SEND, function(RequestEvent $e) {
69 69
             Yii::info([
70 70
                 'message' => sprintf('Recieved HTTP response HTTP [%s] | [%s] %s', $e->response->getStatusCode(), $e->request->getMethod(), $e->request->getUrl()),
71 71
                 'data' => [
Please login to merge, or discard this patch.
commands/WorkerController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace yrc\commands;
4 4
 
Please login to merge, or discard this patch.
jobs/notifications/email/AbstractEmailNotification.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace yrc\jobs\notifications\email;
4 4
 
Please login to merge, or discard this patch.