Completed
Push — master ( 188d66...fb5d7d )
by Charles
01:53
created
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.
actions/OneTimeKeyAction.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 yrc\rest\Action as RestAction;
6 6
 use yrc\models\redis\EncryptionKey;
7
-use Yii;
8 7
 
9 8
 class OneTimeKeyAction extends RestAction
10 9
 {
Please login to merge, or discard this patch.
actions/RefreshAction.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace yrc\actions;
4 4
 
5 5
 use yrc\actions\AuthenticationAction;
6
-use yrc\web\Json25519Parser;
7 6
 use yrc\rest\Action as RestAction;
8 7
 use yii\helpers\ArrayHelper;
9 8
 use Yii;
Please login to merge, or discard this patch.
forms/Login.php 1 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\forms;
4 4
 
5
-use yii\web\UnauthorizedHttpException;
6 5
 use Yii;
7 6
 
8 7
 /**
Please login to merge, or discard this patch.
components/YRC.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,10 +46,10 @@
 block discarded – undo
46 46
         return $this->user['class'];
47 47
     }
48 48
 
49
-     /**
50
-     * Helper method to get the token class
51
-     * @return string
52
-     */
49
+        /**
50
+         * Helper method to get the token class
51
+         * @return string
52
+         */
53 53
     public function getTokenClass()
54 54
     {
55 55
         return $this->token['class'];
Please login to merge, or discard this patch.
web/Json25519ResponseFormatter.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -3,11 +3,8 @@
 block discarded – undo
3 3
 namespace yrc\web;
4 4
 
5 5
 use yrc\web\JsonResponseFormatter;
6
-use yii\web\NotAcceptableHttpException;
7 6
 use yrc\web\Json25519Parser;
8 7
 use yrc\models\redis\EncryptionKey;
9
-use yii\web\HttpException;
10
-
11 8
 use Yii;
12 9
 
13 10
 class Json25519ResponseFormatter extends JsonResponseFormatter
Please login to merge, or discard this patch.
components/HttpClientComponent.php 2 patches
Unused Use Statements   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,10 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace yrc\components;
4 4
 
5
-use yii\base\BaseObject;
6
-use yii\httpclient\Client;
7
-use yii\httpclient\Request;
8
-use yii\httpclient\RequestEvent;
5
+use yii\base\BaseObject;
6
+use yii\httpclient\Client;
7
+use yii\httpclient\RequestEvent;
9 8
 use Yii;
10 9
 
11 10
 /**
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         parent::init();
52 52
         $this->client = new Client($this->clientOptions);
53 53
 
54
-        $this->client->on(Client::EVENT_BEFORE_SEND, function (RequestEvent $e) {
54
+        $this->client->on(Client::EVENT_BEFORE_SEND, function(RequestEvent $e) {
55 55
             Yii::info([
56 56
                 'message' => sprintf('Sending HTTP request [%s] %s', $e->request->getMethod(), $e->request->getUrl()),
57 57
                 'data' => $e->request->getData(),
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
             ], 'httpclient');
60 60
         });
61 61
 
62
-        $this->client->on(Client::EVENT_AFTER_SEND, function (RequestEvent $e) {
62
+        $this->client->on(Client::EVENT_AFTER_SEND, function(RequestEvent $e) {
63 63
             Yii::info([
64 64
                 'message' => sprintf('Recieved HTTP response HTTP [%s] | [%s] %s', $e->response->getStatusCode(), $e->request->getMethod(), $e->request->getUrl()),
65 65
                 'data' =>  $e->response->getContent(),
Please login to merge, or discard this patch.