Failed Conditions
Pull Request — master (#258)
by Maximo
02:39
created
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.
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.
src/Providers/FileSystemProvider.php 1 patch
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,12 +2,12 @@
 block discarded – undo
2 2
 
3 3
 namespace Canvas\Providers;
4 4
 
5
-use Phalcon\Di\ServiceProviderInterface;
6
-use Phalcon\DiInterface;
5
+use Aws\S3\S3Client;
7 6
 use League\Flysystem\Adapter\Local;
8 7
 use League\Flysystem\AwsS3v3\AwsS3Adapter;
9 8
 use League\Flysystem\Filesystem;
10
-use Aws\S3\S3Client;
9
+use Phalcon\DiInterface;
10
+use Phalcon\Di\ServiceProviderInterface;
11 11
 
12 12
 class FileSystemProvider implements ServiceProviderInterface
13 13
 {
Please login to merge, or discard this patch.
src/Queue/Queue.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
      * Send a msg to Queue.
21 21
      *
22 22
      * @param string $name
23
-     * @param array|object|mixed $msg
23
+     * @param string $msg
24 24
      * @return bool
25 25
      */
26 26
     public static function send(string $name, $msg): bool
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
 namespace Canvas\Queue;
6 6
 
7
-use PhpAmqpLib\Message\AMQPMessage;
8 7
 use Phalcon\Di;
8
+use PhpAmqpLib\Message\AMQPMessage;
9 9
 
10 10
 class Queue
11 11
 {
Please login to merge, or discard this patch.
src/Traits/AuthTrait.php 1 patch
Unused Use Statements   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,9 +4,8 @@
 block discarded – undo
4 4
 
5 5
 namespace Canvas\Traits;
6 6
 
7
-use Canvas\Models\Users;
8 7
 use Baka\Auth\Models\Sessions;
9
-use Canvas\Exception\NotFoundException;
8
+use Canvas\Models\Users;
10 9
 
11 10
 /**
12 11
  * Trait ResponseTrait.
Please login to merge, or discard this patch.