Completed
Push — master ( 580028...d7e9e8 )
by Charles
02:19
created
api/models/User.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -224,7 +224,7 @@
 block discarded – undo
224 224
     
225 225
     /**
226 226
      * Provisions TOTP for the account
227
-     * @return boolean|string
227
+     * @return false|string
228 228
      */
229 229
     public function provisionOTP()
230 230
     {
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 Base32\Base32;
6 6
 use OTPHP\TOTP;
7
-
8 7
 use yii\behaviors\TimestampBehavior;
9 8
 use yii\db\ActiveRecord;
10 9
 use yii\filters\RateLimitInterface;
Please login to merge, or discard this patch.
api/actions/OneTimeKeyAction.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use yrc\rest\Action as RestAction;
6 6
 use yrc\api\models\TokenKeyPair;
7 7
 use Sodium;
8
-use Yii;
9 8
 
10 9
 class OneTimeKeyAction extends RestAction
11 10
 {
Please login to merge, or discard this patch.
api/models/TokenKeyPair.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     }
48 48
 
49 49
     /**
50
-     * @return \Sodium\crypto_box_publickey
50
+     * @return string
51 51
      */
52 52
     public function getBoxPublicKey()
53 53
     {
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     }
56 56
 
57 57
     /**
58
-     * @return \Sodium\crypto_sign_publickey
58
+     * @return string
59 59
      */
60 60
     public function getSignPublicKey()
61 61
     {
Please login to merge, or discard this patch.
rest/Controller.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -9,9 +9,7 @@
 block discarded – undo
9 9
 use yii\filters\ContentNegotiator;
10 10
 use yii\web\HttpException;
11 11
 use yrc\web\Response;
12
-
13 12
 use Yii;
14
-
15 13
 use ReflectionClass;
16 14
 use ReflectionMethod;
17 15
 
Please login to merge, or discard this patch.
web/Json25519Parser.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use yii\helpers\Json;
6 6
 use yii\web\JsonParser;
7 7
 use yrc\api\models\TokenKeyPair;
8
-
9 8
 use yii\web\BadRequestHttpException;
10 9
 use Yii;
11 10
 
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
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
         $token->user_id = $userId;
63 63
         $token->access_token = \str_replace('=', '', Base32::encode(\random_bytes(32)));
64 64
         $token->refresh_token = \str_replace('=', '', Base32::encode(\random_bytes(32)));
65
-        $token->ikm =  \base64_encode(\random_bytes(32));
65
+        $token->ikm = \base64_encode(\random_bytes(32));
66 66
         $token->expires_at = \strtotime(static::TOKEN_EXPIRATION_TIME);
67 67
 
68 68
         // Prevent encrypted sessions from being downgraded
Please login to merge, or discard this patch.