Completed
Push — master ( 016a1e...d03bbd )
by Charles
02:56
created
api/forms/ResetPassword.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -94,6 +94,8 @@
 block discarded – undo
94 94
     /**
95 95
      * Validates the users OTP code, if they provided
96 96
      * @inheritdoc
97
+     * @param string $attributes
98
+     * @param string $params
97 99
      */
98 100
     public function validateOTP($attributes, $params)
99 101
     {
Please login to merge, or discard this patch.
components/Queue.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     /**
23 23
      * Adds client connections
24 24
      * @param array $clients
25
-     * @return true
25
+     * @return boolean
26 26
      */
27 27
     public function setClients($clients = [])
28 28
     {
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
     /**
37 37
      * Retrieves the queue
38
-     * @return Disque\Client
38
+     * @return Client
39 39
      */
40 40
     public function get()
41 41
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace yrc\components;
4 4
 
5
-use Yii;
6 5
 use yii\base\Object;
7 6
 use Disque\Connection\Credentials;
8 7
 use Disque\Client;
Please login to merge, or discard this patch.
api/actions/ChangeEmailAction.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use app\forms\ChangeEmail;
6 6
 use yrc\rest\Action as RestAction;
7
-
8 7
 use yii\web\HttpException;
9 8
 use Yii;
10 9
 
Please login to merge, or discard this patch.
api/actions/RegisterAction.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 {
17 17
     /**
18 18
      * Handles registration of users
19
-     * @return mixed
19
+     * @return boolean
20 20
      */
21 21
     public static function post($params)
22 22
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use app\forms\Registration;
6 6
 use yrc\rest\Action as RestAction;
7
-
8 7
 use yii\web\HttpException;
9 8
 use Yii;
10 9
 
Please login to merge, or discard this patch.
rest/Controller.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 use yii\filters\VerbFilter;
9 9
 use yii\web\HttpException;
10 10
 use Yii;
11
-
12 11
 use ReflectionClass;
13 12
 use ReflectionMethod;
14 13
 
Please login to merge, or discard this patch.
api/models/User.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -247,8 +247,8 @@  discard block
 block discarded – undo
247 247
         $totp = new TOTP(
248 248
             $this->username,
249 249
             $encodedSecret,
250
-            30,             // 30 second window
251
-            'sha256',       // SHA256 for the hashing algorithm
250
+            30, // 30 second window
251
+            'sha256', // SHA256 for the hashing algorithm
252 252
             6               // 6 digits
253 253
         );
254 254
 
@@ -302,8 +302,8 @@  discard block
 block discarded – undo
302 302
         $totp = new TOTP(
303 303
             $this->username,
304 304
             $this->otp_secret,
305
-            30,             // 30 second window
306
-            'sha256',       // SHA256 for the hashing algorithm
305
+            30, // 30 second window
306
+            'sha256', // SHA256 for the hashing algorithm
307 307
             6               // 6 digits
308 308
         );
309 309
 
Please login to merge, or discard this patch.
api/models/Token.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
         $token->user_id = $userId;
49 49
         $token->access_token = \str_replace('=', '', Base32::encode(\random_bytes(32)));
50 50
         $token->refresh_token = \str_replace('=', '', Base32::encode(\random_bytes(32)));
51
-        $token->ikm =  \base64_encode(\random_bytes(32));
51
+        $token->ikm = \base64_encode(\random_bytes(32));
52 52
         $token->expires_at = strtotime(static::TOKEN_EXPIRATION_TIME);
53 53
 
54 54
         if ($token->save()) {
Please login to merge, or discard this patch.