Failed Conditions
Pull Request — master (#223)
by Esteban
02:45
created
src/Core/functions.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      * @param string     $variable
38 38
      * @param mixed|null $default
39 39
      *
40
-     * @return mixed
40
+     * @return string|null
41 41
      */
42 42
     function envValue(string $variable, $default = null)
43 43
     {
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      * @param string $resource
65 65
      * @param int    $recordId
66 66
      *
67
-     * @return array|false|mixed|string
67
+     * @return string
68 68
      */
69 69
     function appUrl(string $resource, int $recordId)
70 70
     {
Please login to merge, or discard this patch.
src/CustomFields/AbstractCustomFieldsModel.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@
 block discarded – undo
3 3
 
4 4
 namespace Canvas\CustomFields;
5 5
 
6
-use Canvas\Models\CustomFieldsModules;
7
-use Canvas\Models\AbstractModel;
8 6
 use Baka\Database\Contracts\CustomFields\CustomFieldsTrait;
7
+use Canvas\Models\AbstractModel;
8
+use Canvas\Models\CustomFieldsModules;
9 9
 use PDO;
10 10
 
11 11
 /**
Please login to merge, or discard this patch.
src/EventsManager.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;
6 6
 
7
-use Canvas\Traits\EventManagerAwareTrait;
8 7
 use Canvas\Queue\Queue;
8
+use Canvas\Traits\EventManagerAwareTrait;
9 9
 use Phalcon\Di;
10 10
 
11 11
 /**
Please login to merge, or discard this patch.
src/Exception/HttpException.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
      * Get the http status code of the exception.
17 17
      *
18
-     * @return string
18
+     * @return integer
19 19
      */
20 20
     public function getHttpCode(): int
21 21
     {
Please login to merge, or discard this patch.
src/Filesystem/Helper.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
      * Given a file create it in the filesystem.
62 62
      *
63 63
      * @param File $file
64
-     * @return bool
64
+     * @return FileSystem
65 65
      */
66 66
     public static function upload(File $file): FileSystem
67 67
     {
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,10 +4,10 @@
 block discarded – undo
4 4
 
5 5
 namespace Canvas\Filesystem;
6 6
 
7
-use Phalcon\Http\Request\File;
8
-use Exception;
9 7
 use Canvas\Models\FileSystem;
8
+use Exception;
10 9
 use Phalcon\Di;
10
+use Phalcon\Http\Request\File;
11 11
 
12 12
 class Helper
13 13
 {
Please login to merge, or discard this patch.
src/Handlers/EmailNotifications.php 1 patch
Unused Use Statements   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,12 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace Canvas\Handlers;
4 4
 
5
-use Namshi\Notificator\Notification\Handler\HandlerInterface;
6 5
 use Canvas\Contracts\Notifications\EmailNotificationsInterface as EmailNotificationsContract;
7 6
 use Namshi\Notificator\NotificationInterface;
7
+use Namshi\Notificator\Notification\Handler\HandlerInterface;
8 8
 use Phalcon\Di;
9
-use Canvas\Models\Notifications;
10
-use Canvas\Models\SystemModules;
11 9
 
12 10
 class EmailNotifications implements HandlerInterface
13 11
 {
Please login to merge, or discard this patch.
src/Handlers/PushNotifications.php 1 patch
Unused Use Statements   +1 added lines, -5 removed lines patch added patch discarded remove patch
@@ -2,14 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace Canvas\Handlers;
4 4
 
5
-use Namshi\Notificator\Notification\Handler\HandlerInterface;
6 5
 use Canvas\Contracts\Notifications\PushNotificationsInterface as PushNotificationsContract;
7 6
 use Namshi\Notificator\NotificationInterface;
7
+use Namshi\Notificator\Notification\Handler\HandlerInterface;
8 8
 use Phalcon\Di;
9
-use Canvas\Notifications\Mobile\Apps;
10
-use Canvas\Notifications\Mobile\Mobile;
11
-use Canvas\Models\Notifications;
12
-use Canvas\Models\SystemModules;
13 9
 
14 10
 class PushNotifications implements HandlerInterface
15 11
 {
Please login to merge, or discard this patch.
src/Hashing/Password.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\Hashing;
6 6
 
7
-use Canvas\Models\Users;
8
-
9 7
 class Password
10 8
 {
11 9
     /**
Please login to merge, or discard this patch.
src/Http/SwooleResponse.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,10 +9,10 @@
 block discarded – undo
9 9
 
10 10
 namespace Canvas\Http;
11 11
 
12
+use Exception;
12 13
 use Phalcon\Http\Cookie;
13 14
 use Phalcon\Http\Response as PhResponse;
14 15
 use swoole_http_response;
15
-use Exception;
16 16
 
17 17
 class SwooleResponse extends Response
18 18
 {
Please login to merge, or discard this patch.