Completed
Push — master ( a640c0...4faecb )
by Andrii
14:12
created
src/commands/GetInfoHandler.php 2 patches
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -10,10 +10,6 @@
 block discarded – undo
10 10
 
11 11
 namespace hiapi\commands;
12 12
 
13
-use hiqdev\yii\DataMapper\components\EntityManagerInterface;
14
-use hiqdev\yii\DataMapper\query\Specification;
15
-use hiqdev\yii\DataMapper\repositories\BaseRepository;
16
-
17 13
 /**
18 14
  * Class GetInfoHandler
19 15
  *
Please login to merge, or discard this patch.
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -26,6 +26,9 @@
 block discarded – undo
26 26
         return $this->getRepository($command)->findOneOrFail($this->buildSpecification($command));
27 27
     }
28 28
 
29
+    /**
30
+     * @return Specification
31
+     */
29 32
     protected function buildSpecification(EntityCommandInterface $command)
30 33
     {
31 34
         return $this->createSpecification()->where(['id' => $command->id])->limit(1);
Please login to merge, or discard this patch.
src/event/PublishToExchangeListener.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -78,6 +78,9 @@
 block discarded – undo
78 78
         return $this->channel;
79 79
     }
80 80
 
81
+    /**
82
+     * @param EventInterface $event
83
+     */
81 84
     private function createMessage($event): AMQPMessage
82 85
     {
83 86
         if (!$event instanceof \JsonSerializable) {
Please login to merge, or discard this patch.
src/event/PublishToQueueListener.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -78,6 +78,9 @@
 block discarded – undo
78 78
         return $this->channel;
79 79
     }
80 80
 
81
+    /**
82
+     * @param EventInterface $event
83
+     */
81 84
     private function createMessage($event): AMQPMessage
82 85
     {
83 86
         if (!$event instanceof \JsonSerializable) {
Please login to merge, or discard this patch.
src/Auth/OAuth2Middleware.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -75,6 +75,9 @@
 block discarded – undo
75 75
         ]);
76 76
     }
77 77
 
78
+    /**
79
+     * @return string
80
+     */
78 81
     private function getAccessToken(ServerRequestInterface $request): ?string
79 82
     {
80 83
         $header = $request->getHeaderLine('Authorization');
Please login to merge, or discard this patch.