Failed Conditions
Pull Request — master (#298)
by Maximo
02:56
created
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.
src/Providers/DatabaseProvider.php 1 patch
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -5,12 +5,12 @@
 block discarded – undo
5 5
 namespace Canvas\Providers;
6 6
 
7 7
 use function Canvas\Core\envValue;
8
-use Phalcon\Db\Adapter\Pdo\Mysql;
9
-use Phalcon\Di\ServiceProviderInterface;
10
-use Phalcon\DiInterface;
11
-use PDOException;
12 8
 use Canvas\Exception\ServerErrorHttpException;
13 9
 use PDO;
10
+use PDOException;
11
+use Phalcon\Db\Adapter\Pdo\Mysql;
12
+use Phalcon\DiInterface;
13
+use Phalcon\Di\ServiceProviderInterface;
14 14
 
15 15
 class DatabaseProvider implements ServiceProviderInterface
16 16
 {
Please login to merge, or discard this patch.
src/Api/Controllers/UsersInviteController.php 1 patch
Unused Use Statements   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -4,19 +4,19 @@
 block discarded – undo
4 4
 
5 5
 namespace Canvas\Api\Controllers;
6 6
 
7
-use Canvas\Models\UsersInvite;
8
-use Canvas\Models\Users;
9
-use Canvas\Models\Roles;
10
-use Phalcon\Security\Random;
11
-use Phalcon\Validation\Validator\PresenceOf;
12
-use Phalcon\Validation\Validator\StringLength;
13 7
 use Canvas\Exception\NotFoundHttpException;
14
-use Phalcon\Http\Response;
15
-use Exception;
16 8
 use Canvas\Http\Exception\UnprocessableEntityException;
17
-use Canvas\Traits\AuthTrait;
9
+use Canvas\Models\Roles;
10
+use Canvas\Models\Users;
11
+use Canvas\Models\UsersInvite;
18 12
 use Canvas\Notifications\Invitation;
13
+use Canvas\Traits\AuthTrait;
19 14
 use Canvas\Validation as CanvasValidation;
15
+use Exception;
16
+use Phalcon\Http\Response;
17
+use Phalcon\Security\Random;
18
+use Phalcon\Validation\Validator\PresenceOf;
19
+use Phalcon\Validation\Validator\StringLength;
20 20
 
21 21
 /**
22 22
  * Class LanguagesController.
Please login to merge, or discard this patch.
src/Middleware/AuthenticationMiddleware.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,11 +4,11 @@
 block discarded – undo
4 4
 
5 5
 namespace Canvas\Middleware;
6 6
 
7
-use Phalcon\Mvc\Micro;
8 7
 use Baka\Auth\Models\Sessions;
9
-use Canvas\Models\Users;
10 8
 use Canvas\Constants\Flags;
11 9
 use Canvas\Http\Exception\UnauthorizedException;
10
+use Canvas\Models\Users;
11
+use Phalcon\Mvc\Micro;
12 12
 
13 13
 /**
14 14
  * Class AuthenticationMiddleware.
Please login to merge, or discard this patch.
src/Middleware/SubscriptionMiddleware.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,9 +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\UnauthorizedException;
9 8
 use Canvas\Models\Subscription;
9
+use Phalcon\Mvc\Micro;
10 10
 
11 11
 /**
12 12
  * Class AuthenticationMiddleware.
Please login to merge, or discard this patch.
src/Models/Subscription.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -266,7 +266,7 @@
 block discarded – undo
266 266
     /**
267 267
      * Given a not active subscription activate it.
268 268
      *
269
-     * @return void
269
+     * @return boolean
270 270
      */
271 271
     public function activate(): bool
272 272
     {
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@
 block discarded – undo
2 2
 
3 3
 namespace Canvas\Models;
4 4
 
5
-use Phalcon\Cashier\Subscription as PhalconSubscription;
6 5
 use Canvas\Http\Exception\InternalServerErrorException;
7
-use Phalcon\Di;
8 6
 use Carbon\Carbon;
7
+use Phalcon\Cashier\Subscription as PhalconSubscription;
9 8
 use Phalcon\Db\RawValue;
9
+use Phalcon\Di;
10 10
 
11 11
 /**
12 12
  * Trait Subscription.
Please login to merge, or discard this patch.
src/Api/Controllers/IndexController.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,12 +4,12 @@
 block discarded – undo
4 4
 
5 5
 namespace Canvas\Api\Controllers;
6 6
 
7
+use Canvas\Http\Exception\InternalServerErrorException;
7 8
 use Exception;
8 9
 use PDOException;
9 10
 use Phalcon\Http\Response;
10
-use Canvas\Http\Exception\InternalServerErrorException;
11
+use PhpAmqpLib\Exception\AMQPIOException;
11 12
 use RedisException;
12
-use PhpAmqpLib\Exception\AMQPIOException ;
13 13
 
14 14
 /**
15 15
  * Class IndexController.
Please login to merge, or discard this patch.