Failed Conditions
Push — master ( 9a8339...c041b5 )
by Maximo
01:09 queued 11s
created
src/Cli/jobs/Apps.php 2 patches
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,8 +34,6 @@  discard block
 block discarded – undo
34 34
     /**
35 35
      * Constructor setup info for Pusher
36 36
      *
37
-     * @param string $channel
38
-     * @param string $event
39 37
      * @param array $params
40 38
      */
41 39
     public function __construct(string $appName, string $appDescription, array $params)
@@ -48,7 +46,7 @@  discard block
 block discarded – undo
48 46
     /**
49 47
      * Handle the pusher request
50 48
      * @todo New Apps can't be created, the system does not take into account the creation of other apps apart from the default. Need to change this
51
-     * @return void
49
+     * @return boolean
52 50
      */
53 51
     public function handle()
54 52
     {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 
5 5
 use Canvas\Contracts\Queue\QueueableJobInterfase;
6 6
 use Canvas\Jobs\Job;
7
-use Phalcon\Di;
8 7
 use Canvas\Models\Apps as CanvasApps;
8
+use Phalcon\Di;
9 9
 use Phalcon\Security\Random;
10 10
 
11 11
 class Apps extends Job implements QueueableJobInterfase
Please login to merge, or discard this patch.
src/Acl/Manager.php 2 patches
Doc Comments   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
     /**
126 126
      * Get the current App.
127 127
      *
128
-     * @return void
128
+     * @return Apps
129 129
      */
130 130
     public function getApp() : Apps
131 131
     {
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
     /**
140 140
      * Get the current App.
141 141
      *
142
-     * @return void
142
+     * @return Companies
143 143
      */
144 144
     public function getCompany() : Companies
145 145
     {
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
      * Given a resource with a dot CRM.Leads , it will set the app.
244 244
      *
245 245
      * @param string $resource
246
-     * @return void
246
+     * @return string
247 247
      */
248 248
     protected function setAppByResource(string $resource) : string
249 249
     {
@@ -265,8 +265,7 @@  discard block
 block discarded – undo
265 265
     /**
266 266
      * Given a resource with a dot CRM.Leads , it will set the app.
267 267
      *
268
-     * @param string $resource
269
-     * @return void
268
+     * @return string
270 269
      */
271 270
     protected function setAppByRole(string $role) : string
272 271
     {
@@ -298,7 +297,7 @@  discard block
 block discarded – undo
298 297
      * $acl->addResource('App.customers', ['create', 'search']);
299 298
      * </code>.
300 299
      *
301
-     * @param  \Phalcon\Acl\Resource|string $resource
300
+     * @param  string $resource
302 301
      * @param  array|string                 $accessList
303 302
      * @return boolean
304 303
      */
@@ -418,7 +417,7 @@  discard block
 block discarded – undo
418 417
      *
419 418
      * @param string       $roleName
420 419
      * @param string       $resourceName
421
-     * @param array|string $access
420
+     * @param string[] $access
422 421
      * @param mixed $func
423 422
      */
424 423
     public function allow($roleName, $resourceName, $access, $func = null)
Please login to merge, or discard this patch.
Unused Use Statements   +11 added lines, -12 removed lines patch added patch discarded remove patch
@@ -4,22 +4,21 @@
 block discarded – undo
4 4
 
5 5
 namespace Canvas\Acl;
6 6
 
7
-use Phalcon\Db;
8
-use Phalcon\Db\AdapterInterface as DbAdapter;
7
+use BadMethodCallException;
8
+use Canvas\Models\AccessList as AccessListDB;
9
+use Canvas\Models\Apps;
10
+use Canvas\Models\Companies;
11
+use Canvas\Models\Resources as ResourcesDB;
12
+use Canvas\Models\ResourcesAccesses;
13
+use Canvas\Models\Roles as RolesDB;
14
+use Phalcon\Acl;
15
+use Phalcon\Acl\Adapter;
9 16
 use Phalcon\Acl\Exception;
10 17
 use Phalcon\Acl\Resource;
11
-use Phalcon\Acl;
12 18
 use Phalcon\Acl\Role;
13 19
 use Phalcon\Acl\RoleInterface;
14
-use Canvas\Models\Companies;
15
-use Canvas\Models\Apps;
16
-use Canvas\Models\Roles as RolesDB;
17
-use Canvas\Models\AccessList as AccessListDB;
18
-use Canvas\Models\Resources as ResourcesDB;
19
-use Phalcon\Acl\Adapter;
20
-use BadMethodCallException;
21
-use Canvas\Exception\ModelException;
22
-use Canvas\Models\ResourcesAccesses;
20
+use Phalcon\Db;
21
+use Phalcon\Db\AdapterInterface as DbAdapter;
23 22
 use Phalcon\Di;
24 23
 
25 24
 /**
Please login to merge, or discard this patch.
src/Models/UserCompanyAppsActivities.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,6 @@
 block discarded – undo
109 109
      * Get the value of the settins by it key.
110 110
      *
111 111
      * @param string $key
112
-     * @param string $value
113 112
      */
114 113
     public static function get(string $key) : string
115 114
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 namespace Canvas\Models;
5 5
 
6 6
 use Canvas\Exception\ServerErrorHttpException;
7
-use Canvas\Exception\ModelException;
8 7
 use Phalcon\Di;
9 8
 
10 9
 /**
Please login to merge, or discard this patch.
src/Traits/SocialLoginTrait.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,6 @@
 block discarded – undo
38 38
     /**
39 39
      * Social Login for many providers.
40 40
      * @param Sources $source
41
-     * @param string $accessToken
42 41
      * @param array $userInfo
43 42
      * @return Array
44 43
      */
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,11 +8,10 @@
 block discarded – undo
8 8
 use function time;
9 9
 use Canvas\Http\Exception\UnprocessableEntityException;
10 10
 use Canvas\Models\Sources;
11
-use Canvas\Models\Users;
12 11
 use Canvas\Models\UserLinkedSources;
13
-use Phalcon\Security\Random;
14
-use Canvas\Traits\AuthTrait;
12
+use Canvas\Models\Users;
15 13
 use Exception;
14
+use Phalcon\Security\Random;
16 15
 
17 16
 /**
18 17
  * Trait SocialLoginTrait.
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.
src/Middleware/ThrottleMiddleware.php 1 patch
Unused Use Statements   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,14 +4,13 @@
 block discarded – undo
4 4
 
5 5
 namespace Canvas\Middleware;
6 6
 
7
+use Canvas\Exception\ServerErrorHttpException;
7 8
 use Canvas\Http\Response;
8 9
 use Canvas\Traits\ResponseTrait;
10
+use OakLabs\PhalconThrottler\ThrottlerInterface;
9 11
 use Phalcon\Mvc\Micro;
10 12
 use Phalcon\Mvc\Micro\MiddlewareInterface;
11 13
 use Phalcon\Mvc\User\Plugin;
12
-use OakLabs\PhalconThrottler\ThrottlerInterface;
13
-use Phalcon\Events\Event;
14
-use Canvas\Exception\ServerErrorHttpException;
15 14
 
16 15
 /**
17 16
  * Class ThrottleMiddleware
Please login to merge, or discard this patch.
src/Providers/AppProvider.php 1 patch
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace Canvas\Providers;
4 4
 
5
-use Phalcon\Di\ServiceProviderInterface;
6
-use Phalcon\DiInterface;
7
-use Canvas\Models\Apps;
8 5
 use Canvas\Exception\ServerErrorHttpException;
6
+use Canvas\Models\Apps;
7
+use Phalcon\DiInterface;
8
+use Phalcon\Di\ServiceProviderInterface;
9 9
 
10 10
 class AppProvider implements ServiceProviderInterface
11 11
 {
Please login to merge, or discard this patch.