Failed Conditions
Pull Request — master (#246)
by Maximo
02:52
created
src/Api/Controllers/CompaniesBranchesController.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,10 +4,10 @@
 block discarded – undo
4 4
 
5 5
 namespace Canvas\Api\Controllers;
6 6
 
7
-use Phalcon\Http\Response;
8
-use Canvas\Exception\UnprocessableEntityHttpException;
9 7
 use Baka\Http\QueryParser;
8
+use Canvas\Exception\UnprocessableEntityHttpException;
10 9
 use Canvas\Models\CompaniesBranches;
10
+use Phalcon\Http\Response;
11 11
 
12 12
 /**
13 13
  * Class CompaniesController.
Please login to merge, or discard this patch.
src/Http/Response.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
      * Returns the http code description or if not found the code itself.
53 53
      * @param int $code
54 54
      *
55
-     * @return int|string
55
+     * @return string
56 56
      */
57 57
     public function getHttpCodeDescription(int $code)
58 58
     {
Please login to merge, or discard this patch.
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,13 +4,13 @@
 block discarded – undo
4 4
 
5 5
 namespace Canvas\Http;
6 6
 
7
-use Phalcon\Http\Response as PhResponse;
8
-use Phalcon\Mvc\Model\MessageInterface as ModelMessage;
9
-use Phalcon\Validation\Message\Group as ValidationMessage;
10
-use Canvas\Exception\ServerErrorHttpException;
11 7
 use Canvas\Constants\Flags;
8
+use Canvas\Exception\ServerErrorHttpException;
12 9
 use Canvas\Http\Exception\InternalServerErrorException;
13 10
 use Phalcon\Di;
11
+use Phalcon\Http\Response as PhResponse;
12
+use Phalcon\Mvc\Model\MessageInterface as ModelMessage;
13
+use Phalcon\Validation\Message\Group as ValidationMessage;
14 14
 use Throwable;
15 15
 
16 16
 class Response extends PhResponse
Please login to merge, or discard this patch.
src/Listener/Notification.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@  discard block
 block discarded – undo
29 29
      * From a given push notification send it to the user.
30 30
      *
31 31
      * @param Event $event
32
-     * @param PusherNotification $pusherNotification
33
-     * @return void
32
+     * @param PusherNotification $pushNotification
33
+     * @return \Canvas\Jobs\PendingDispatch
34 34
      */
35 35
     public function sendPushNotification(Event $event, PushNotification $pushNotification)
36 36
     {
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      *
43 43
      * @param Event $event
44 44
      * @param PusherNotification $pusherNotification
45
-     * @return void
45
+     * @return \Canvas\Jobs\PendingDispatch
46 46
      */
47 47
     public function sendRealtime(Event $event, PusherNotification $pusherNotification)
48 48
     {
Please login to merge, or discard this patch.
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,12 +4,12 @@
 block discarded – undo
4 4
 
5 5
 namespace Canvas\Listener;
6 6
 
7
-use Phalcon\Events\Event;
8 7
 use Baka\Mail\Message;
9
-use Canvas\Cli\Jobs\Pusher;
10 8
 use Canvas\Cli\Jobs\PushNotifications;
11
-use Canvas\Notifications\PusherNotification;
9
+use Canvas\Cli\Jobs\Pusher;
12 10
 use Canvas\Notifications\PushNotification;
11
+use Canvas\Notifications\PusherNotification;
12
+use Phalcon\Events\Event;
13 13
 
14 14
 class Notification
15 15
 {
Please login to merge, or discard this patch.
src/Middleware/AclMiddleware.php 1 patch
Unused Use Statements   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,10 +4,9 @@
 block discarded – undo
4 4
 
5 5
 namespace Canvas\Middleware;
6 6
 
7
-use Phalcon\Mvc\Micro;
8 7
 use Canvas\Http\Exception\InternalServerErrorException;
9 8
 use Canvas\Http\Exception\UnauthorizedException;
10
-use Canvas\Models\Subscription;
9
+use Phalcon\Mvc\Micro;
11 10
 
12 11
 /**
13 12
  * Class AclMiddleware.
Please login to merge, or discard this patch.