Failed Conditions
Pull Request — master (#315)
by Maximo
02:43
created
src/Models/ResourcesAccesses.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
     /**
80 80
      * Check if it exist
81 81
      *
82
-     * @param Resources $resouce
82
+     * @param Resources $resource
83 83
      * @param string $accessName
84 84
      * @return integer
85 85
      */
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 namespace Canvas\Models;
6 6
 
7 7
 use Phalcon\Di;
8
-use Canvas\Exception\ModelException;
9 8
 
10 9
 class ResourcesAccesses extends AbstractModel
11 10
 {
Please login to merge, or discard this patch.
src/Models/Roles.php 2 patches
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -196,7 +196,6 @@  discard block
 block discarded – undo
196 196
     /**
197 197
      * Get the entity by its name.
198 198
      *
199
-     * @param string $name
200 199
      * @return Roles
201 200
      */
202 201
     public static function getById(int $id): Roles
@@ -321,7 +320,6 @@  discard block
 block discarded – undo
321 320
 
322 321
     /**
323 322
      * Check if role exists by its id.
324
-     * @param integer $role_id
325 323
      * @return Roles
326 324
      */
327 325
     public static function existsById(int $id): Roles
Please login to merge, or discard this patch.
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -3,14 +3,14 @@
 block discarded – undo
3 3
 
4 4
 namespace Canvas\Models;
5 5
 
6
+use Canvas\Exception\ModelException;
7
+use Canvas\Http\Exception\InternalServerErrorException;
8
+use Canvas\Http\Exception\UnprocessableEntityException;
9
+use Phalcon\Acl\Role as AclRole;
6 10
 use Phalcon\Di;
7 11
 use Phalcon\Validation;
8 12
 use Phalcon\Validation\Validator\PresenceOf;
9 13
 use Phalcon\Validation\Validator\StringLength;
10
-use Phalcon\Acl\Role as AclRole;
11
-use Canvas\Exception\ModelException;
12
-use Canvas\Http\Exception\InternalServerErrorException;
13
-use Canvas\Http\Exception\UnprocessableEntityException;
14 14
 
15 15
 /**
16 16
  * Class Roles.
Please login to merge, or discard this patch.
src/Models/Sources.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 namespace Canvas\Models;
6 6
 
7 7
 use Phalcon\Di;
8
-use Canvas\Exception\ModelException;
9 8
 
10 9
 /**
11 10
  * Class Resources
Please login to merge, or discard this patch.
src/Models/UserCompanyApps.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
     /**
87 87
      * Get the current company app
88 88
      *
89
-     * @return void
89
+     * @return UserCompanyApps
90 90
      */
91 91
     public static function getCurrentApp(): UserCompanyApps
92 92
     {
Please login to merge, or discard this patch.
src/Models/UsersInvite.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@
 block discarded – undo
171 171
     /**
172 172
      * Given the form request return a new user invite.
173 173
      *
174
-     * @param array $requets
174
+     * @param array $request
175 175
      * @return Users
176 176
      */
177 177
     public function newUser(array $request): Users
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@
 block discarded – undo
3 3
 
4 4
 namespace Canvas\Models;
5 5
 
6
-use Canvas\Traits\SubscriptionPlanLimitTrait;
7 6
 use Canvas\Exception\ModelException;
7
+use Canvas\Traits\SubscriptionPlanLimitTrait;
8 8
 use Phalcon\Di;
9 9
 
10 10
 class UsersInvite extends AbstractModel
Please login to merge, or discard this patch.
src/Notifications/Notification.php 1 patch
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,16 +4,16 @@
 block discarded – undo
4 4
 
5 5
 namespace Canvas\Notifications;
6 6
 
7
+use Baka\Mail\Message;
7 8
 use Canvas\Contracts\Notifications\NotificationInterfase;
8 9
 use Canvas\Models\AbstractModel;
9 10
 use Canvas\Models\NotificationType;
10
-use Baka\Mail\Message;
11
-use Canvas\Models\Users;
12 11
 use Canvas\Models\Notifications;
13
-use Phalcon\Traits\EventManagerAwareTrait;
14
-use Phalcon\Di;
12
+use Canvas\Models\Users;
15 13
 use Canvas\Queue\Queue;
14
+use Phalcon\Di;
16 15
 use Phalcon\Mvc\Model;
16
+use Phalcon\Traits\EventManagerAwareTrait;
17 17
 
18 18
 class Notification implements NotificationInterfase
19 19
 {
Please login to merge, or discard this patch.
src/Notifications/Notify.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
      *
30 30
      * @param Users $user
31 31
      * @param NotificationInterfase $notification
32
-     * @return void
32
+     * @return boolean
33 33
      */
34 34
     public static function one(Users $user, NotificationInterfase $notification): bool
35 35
     {
Please login to merge, or discard this patch.
src/Notifications/PusherNotification.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,6 @@
 block discarded – undo
4 4
 
5 5
 namespace Canvas\Notifications;
6 6
 
7
-use Canvas\Models\Users;
8
-
9 7
 class PusherNotification
10 8
 {
11 9
     /**
Please login to merge, or discard this patch.
src/Providers/EventsManagerProvider.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
      *
55 55
      * @param DiInterface $container
56 56
      * @param array $listeners
57
-     * @return void
57
+     * @return boolean
58 58
      */
59 59
     protected function attachEvents(DiInterface $container, array $listeners): bool
60 60
     {
Please login to merge, or discard this patch.
Unused Use Statements   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -2,13 +2,13 @@
 block discarded – undo
2 2
 
3 3
 namespace Canvas\Providers;
4 4
 
5
-use Phalcon\Di\ServiceProviderInterface;
6
-use Phalcon\DiInterface;
7
-use Canvas\Listener\Subscription;
8 5
 use Canvas\EventsManager;
9
-use Canvas\Listener\User;
10
-use Canvas\Listener\Notification;
11 6
 use Canvas\Listener\Company;
7
+use Canvas\Listener\Notification;
8
+use Canvas\Listener\Subscription;
9
+use Canvas\Listener\User;
10
+use Phalcon\DiInterface;
11
+use Phalcon\Di\ServiceProviderInterface;
12 12
 
13 13
 class EventsManagerProvider implements ServiceProviderInterface
14 14
 {
Please login to merge, or discard this patch.