@@ -2,10 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace yrc\components; |
4 | 4 | |
5 | -use Redis; |
|
6 | -use RPQ\Client; |
|
5 | +use Redis; |
|
6 | +use RPQ\Client; |
|
7 | 7 | use yii\base\BaseObject; |
8 | -use Yii; |
|
9 | 8 | |
10 | 9 | final class RPQComponent extends BaseObject |
11 | 10 | { |
@@ -53,7 +53,7 @@ discard block |
||
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 |
||
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' => [ |
@@ -23,7 +23,7 @@ |
||
23 | 23 | /** |
24 | 24 | * Command line options |
25 | 25 | * @param string $actionID |
26 | - * @return array |
|
26 | + * @return string[] |
|
27 | 27 | */ |
28 | 28 | public function options($actionID) |
29 | 29 | { |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace yrc\commands; |
4 | 4 | |
5 | -use Exception; |
|
6 | -use yii\console\Controller; |
|
5 | +use Exception; |
|
6 | +use yii\console\Controller; |
|
7 | 7 | use Yii; |
8 | 8 | |
9 | 9 | class WorkerController extends Controller |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace yrc\commands; |
4 | 4 |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | |
16 | 16 | /** |
17 | 17 | * Model attributes |
18 | - * @return array |
|
18 | + * @return string[] |
|
19 | 19 | */ |
20 | 20 | public function attributes() |
21 | 21 | { |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | } |
29 | 29 | |
30 | 30 | /** |
31 | - * @return sodium_crypto_box_publickey |
|
31 | + * @return string |
|
32 | 32 | */ |
33 | 33 | public function getBoxPublicKey() |
34 | 34 | { |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use yii\helpers\Json; |
6 | 6 | use yii\web\JsonParser; |
7 | 7 | use yrc\models\redis\EncryptionKey; |
8 | - |
|
9 | 8 | use yii\web\BadRequestHttpException; |
10 | 9 | use yii\base\InvalidParamException; |
11 | 10 | use Yii; |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace yrc\jobs\notifications\email; |
4 | 4 |