Failed Conditions
Push — master ( 8c6914...b60474 )
by Maximo
59s queued 10s
created
src/Models/Resources.php 1 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
 namespace Canvas\Models;
6 6
 
7
-use Phalcon\Di;
8 7
 use Canvas\Exception\ModelException;
8
+use Phalcon\Di;
9 9
 
10 10
 /**
11 11
  * Class Resources
Please login to merge, or discard this patch.
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   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,13 +3,13 @@
 block discarded – undo
3 3
 
4 4
 namespace Canvas\Models;
5 5
 
6
+use Canvas\Exception\ModelException;
6 7
 use Canvas\Exception\ServerErrorHttpException;
8
+use Phalcon\Acl\Role as AclRole;
7 9
 use Phalcon\Di;
8 10
 use Phalcon\Validation;
9 11
 use Phalcon\Validation\Validator\PresenceOf;
10 12
 use Phalcon\Validation\Validator\StringLength;
11
-use Phalcon\Acl\Role as AclRole;
12
-use Canvas\Exception\ModelException;
13 13
 
14 14
 /**
15 15
  * 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/SystemModules.php 2 patches
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 
140 140
     /**
141 141
      * Get System Module by its model_name.
142
-     * @param string $model_name
142
+     * @param string $modelName
143 143
      * @return SystemModules
144 144
      */
145 145
     public static function getSystemModuleByModelName(string $modelName): SystemModules
@@ -175,7 +175,6 @@  discard block
 block discarded – undo
175 175
     /**
176 176
      * Get System Module by id.
177 177
      *
178
-     * @param int $id
179 178
      * @return SystemModules
180 179
      */
181 180
     public static function getBySlug(string $slug): SystemModules
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 Phalcon\Di;
7 6
 use Canvas\Exception\ModelException;
7
+use Phalcon\Di;
8 8
 
9 9
 class SystemModules extends AbstractModel
10 10
 {
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/Users.php 2 patches
Doc Comments   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
     /**
317 317
      * Get the User key for redis.
318 318
      *
319
-     * @return string
319
+     * @return integer
320 320
      */
321 321
     public function getKey() : int
322 322
     {
@@ -370,7 +370,6 @@  discard block
 block discarded – undo
370 370
     /**
371 371
      * Strat a free trial.
372 372
      *
373
-     * @param Users $user
374 373
      * @return Subscription
375 374
      */
376 375
     public function startFreeTrial() : Subscription
@@ -542,7 +541,7 @@  discard block
 block discarded – undo
542 541
     /**
543 542
      * Overwrite the relationship.
544 543
      *
545
-     * @return void
544
+     * @return string|null
546 545
      */
547 546
     public function getPhoto()
548 547
     {
@@ -552,7 +551,6 @@  discard block
 block discarded – undo
552 551
     /**
553 552
      * Update the user current default company.
554 553
      *
555
-     * @param integer $companyId
556 554
      * @return void
557 555
      */
558 556
     public function switchDefaultCompanyByBranch(int $branchId): void
Please login to merge, or discard this patch.
Unused Use Statements   +12 added lines, -14 removed lines patch added patch discarded remove patch
@@ -3,27 +3,25 @@
 block discarded – undo
3 3
 
4 4
 namespace Canvas\Models;
5 5
 
6
+use Baka\Auth\Models\Users as BakUser;
7
+use Baka\Database\Contracts\HashTableTrait;
8
+use Canvas\Auth\App as AppAuth;
9
+use Canvas\Contracts\Notifications\NotifiableTrait;
10
+use Canvas\Hashing\Password;
11
+use Canvas\Traits\EventManagerAwareTrait;
12
+use Canvas\Traits\FileSystemModelTrait;
6 13
 use Canvas\Traits\PermissionsTrait;
7 14
 use Canvas\Traits\SubscriptionPlanLimitTrait;
8
-use Phalcon\Cashier\Billable;
9
-use Canvas\Exception\ServerErrorHttpException;
15
+use Canvas\Validations\PasswordValidation;
10 16
 use Carbon\Carbon;
17
+use Exception;
18
+use Phalcon\Cashier\Billable;
19
+use Phalcon\Di;
20
+use Phalcon\Security\Random;
11 21
 use Phalcon\Validation;
12 22
 use Phalcon\Validation\Validator\Email;
13 23
 use Phalcon\Validation\Validator\PresenceOf;
14
-use Phalcon\Validation\Validator\Regex;
15 24
 use Phalcon\Validation\Validator\Uniqueness;
16
-use Canvas\Traits\FileSystemModelTrait;
17
-use Phalcon\Security\Random;
18
-use Baka\Database\Contracts\HashTableTrait;
19
-use Canvas\Contracts\Notifications\NotifiableTrait;
20
-use Canvas\Traits\EventManagerAwareTrait;
21
-use Phalcon\Di;
22
-use Canvas\Auth\App as AppAuth;
23
-use Exception;
24
-use Canvas\Validations\PasswordValidation;
25
-use Baka\Auth\Models\Users as BakUser;
26
-use Canvas\Hashing\Password;
27 25
 
28 26
 /**
29 27
  * Class Users.
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.