Completed
Push — master ( 580028...d7e9e8 )
by Charles
02:19
created
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
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.
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 function post($params)
22 22
     {
Please login to merge, or discard this patch.
rest/Action.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -3,10 +3,7 @@
 block discarded – undo
3 3
 namespace yrc\rest;
4 4
 
5 5
 use yii\web\HttpException;
6
-use yii\helpers\ArrayHelper;
7 6
 use Yii;
8
-use ReflectionProperty;
9
-use ReflectionClass;
10 7
 
11 8
 abstract class Action extends \yii\base\Action
12 9
 {
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.
web/JsonResponseFormatter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
             // Pull the exception
31 31
             $exception = Yii::$app->errorHandler->exception;
32
-            if ($exception && is_subclass_of($exception, 'yii\web\HttpException') || get_class($exception) === 'yii\web\HttpException' ) {
32
+            if ($exception && is_subclass_of($exception, 'yii\web\HttpException') || get_class($exception) === 'yii\web\HttpException') {
33 33
                 $copy = $response->data;
34 34
                 $response->data = null;
35 35
 
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
                 $response->data['status'] = $status;
65 65
 
66 66
                 if ($response->data['data'] === [] || $response->data['data'] === null) {
67
-                    $response->data['data'] =  null;
67
+                    $response->data['data'] = null;
68 68
                 }
69 69
             }
70 70
 
Please login to merge, or discard this patch.