Failed Conditions
Pull Request — master (#223)
by Esteban
02:45
created
src/Api/Controllers/SchemaController.php 1 patch
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,13 +4,13 @@
 block discarded – undo
4 4
 
5 5
 namespace Canvas\Api\Controllers;
6 6
 
7
-use Canvas\Models\SystemModules;
8
-use Phalcon\Http\Response;
9
-use Canvas\Exception\ServerErrorHttpException;
10 7
 use Baka\Http\Api\BaseController as BakaBaseController;
11 8
 use Canvas\Dto\ListSchema;
9
+use Canvas\Exception\ServerErrorHttpException;
12 10
 use Canvas\Mapper\ListSchemaMapper;
11
+use Canvas\Models\SystemModules;
13 12
 use Phalcon\Db\Column;
13
+use Phalcon\Http\Response;
14 14
 
15 15
 /**
16 16
  * Class LanguagesController.
Please login to merge, or discard this patch.
src/Api/Controllers/UsersController.php 1 patch
Unused Use Statements   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -4,17 +4,17 @@
 block discarded – undo
4 4
 
5 5
 namespace Canvas\Api\Controllers;
6 6
 
7
-use Canvas\Models\Users;
8
-use Phalcon\Http\Response;
9
-use Phalcon\Validation\Validator\PresenceOf;
10
-use Canvas\Exception\BadRequestHttpException;
11
-use Canvas\Exception\ServerErrorHttpException;
12 7
 use Baka\Auth\UsersController as BakaUsersController;
13 8
 use Canvas\Contracts\Controllers\ProcessOutputMapperTrait;
14 9
 use Canvas\Dto\User as UserDto;
10
+use Canvas\Exception\BadRequestHttpException;
11
+use Canvas\Exception\ServerErrorHttpException;
15 12
 use Canvas\Mapper\UserMapper;
16
-use Canvas\Validation as CanvasValidation;
13
+use Canvas\Models\Users;
17 14
 use Canvas\Models\UsersAssociatedApps;
15
+use Canvas\Validation as CanvasValidation;
16
+use Phalcon\Http\Response;
17
+use Phalcon\Validation\Validator\PresenceOf;
18 18
 
19 19
 /**
20 20
  * Class UsersController.
Please login to merge, or discard this patch.
src/Auth/App.php 1 patch
Unused Use Statements   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,11 +4,10 @@
 block discarded – undo
4 4
 
5 5
 namespace Canvas\Auth;
6 6
 
7
+use Canvas\Hashing\Password;
7 8
 use Canvas\Models\Users;
8 9
 use Exception;
9 10
 use Phalcon\Di;
10
-use RuntimeException;
11
-use Canvas\Hashing\Password;
12 11
 
13 12
 class App extends Auth
14 13
 {
Please login to merge, or discard this patch.
src/Auth/Auth.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      *
16 16
      * @param Users $user
17 17
      * @throws Exception
18
-     * @return void
18
+     * @return boolean
19 19
      */
20 20
     protected static function loginAttempsValidation(Users $user): bool
21 21
     {
Please login to merge, or discard this patch.
src/Auth/Factory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     /**
12 12
      * Create the Auth factory
13 13
      *
14
-     * @param integer $ecosystem_auth
14
+     * @param integer $ecosystemAuth
15 15
      * @return Auth
16 16
      */
17 17
     public static function create(bool $ecosystemAuth)
Please login to merge, or discard this patch.
src/Cli/jobs/Pusher.php 1 patch
Doc Comments   -3 removed lines patch added patch discarded remove patch
@@ -33,9 +33,6 @@
 block discarded – undo
33 33
     /**
34 34
      * Constructor setup info for Pusher.
35 35
      *
36
-     * @param string $channel
37
-     * @param string $event
38
-     * @param array $params
39 36
      */
40 37
     public function __construct(PusherNotification $pusherNotification)
41 38
     {
Please login to merge, or discard this patch.
src/Cli/jobs/PushNotifications.php 2 patches
Doc Comments   +1 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,9 +40,6 @@  discard block
 block discarded – undo
40 40
     /**
41 41
      * Constructor setup info for Pusher.
42 42
      *
43
-     * @param string $channel
44
-     * @param string $event
45
-     * @param array $params
46 43
      */
47 44
     public function __construct(PushNotification $pushNotification)
48 45
     {
@@ -54,7 +51,7 @@  discard block
 block discarded – undo
54 51
     /**
55 52
      * Handle the pusher request.
56 53
      *
57
-     * @return void
54
+     * @return boolean
58 55
      */
59 56
     public function handle()
60 57
     {
Please login to merge, or discard this 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
 use Canvas\Contracts\Queue\QueueableJobInterfase;
6 6
 use Canvas\Jobs\Job;
7
-use Phalcon\Di;
7
+use Canvas\Models\UserLinkedSources;
8
+use Canvas\Notifications\PushNotification;
9
+use Exception;
8 10
 use GuzzleHttp\Client as GuzzleClient;
9 11
 use Http\Adapter\Guzzle6\Client as GuzzleAdapter;
10 12
 use Http\Client\Common\HttpMethodsClient as HttpClient;
11 13
 use Http\Message\MessageFactory\GuzzleMessageFactory;
12 14
 use OneSignal\Config;
13 15
 use OneSignal\OneSignal;
14
-use Canvas\Models\UserLinkedSources;
15
-use Canvas\Notifications\PushNotification;
16
-use Exception;
16
+use Phalcon\Di;
17 17
 
18 18
 class PushNotifications extends Job implements QueueableJobInterfase
19 19
 {
Please login to merge, or discard this patch.
src/Cli/tasks/QueueTask.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@
 block discarded – undo
3 3
 namespace Canvas\Cli\Tasks;
4 4
 
5 5
 use Canvas\Contracts\Queue\QueueableJobInterfase;
6
-use Phalcon\Cli\Task as PhTask;
7 6
 use Canvas\Models\Users;
8 7
 use Canvas\Queue\Queue;
8
+use Phalcon\Cli\Task as PhTask;
9 9
 use Phalcon\Mvc\Model;
10 10
 use Throwable;
11 11
 
Please login to merge, or discard this patch.
src/Contracts/Controllers/ProcessOutputMapperTrait.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\Contracts\Controllers;
6 6
 
7
-use Canvas\Exception\ServerErrorHttpException;
8 7
 use AutoMapperPlus\DataType;
8
+use Canvas\Exception\ServerErrorHttpException;
9 9
 use StdClass;
10 10
 
11 11
 trait ProcessOutputMapperTrait
Please login to merge, or discard this patch.