Failed Conditions
Pull Request — master (#337)
by Rafael
09:12
created
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.
src/Traits/EventManagerAwareTrait.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,6 @@  discard block
 block discarded – undo
25 25
     /**
26 26
      * set event manager.
27 27
      *
28
-     * @param EventsManager $eventsManager
29 28
      */
30 29
     public function setEventsManager(EventsManager $manager)
31 30
     {
@@ -59,7 +58,7 @@  discard block
 block discarded – undo
59 58
      *
60 59
      * @param string $event
61 60
      * @param object $source
62
-     * @param mixed $data
61
+     * @param boolean $data
63 62
      * @param boolean $cancelable
64 63
      *
65 64
      */
Please login to merge, or discard this patch.
src/Traits/FileSystemModelTrait.php 2 patches
Doc Comments   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      *
37 37
      * call on the after saves
38 38
      *
39
-     * @return void
39
+     * @return boolean
40 40
      */
41 41
     protected function associateFileSystem(): bool
42 42
     {
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
      * ];.
172 172
      *
173 173
      * @param array $files
174
-     * @return void
174
+     * @return boolean
175 175
      */
176 176
     public function attach(array $files): bool
177 177
     {
@@ -290,7 +290,6 @@  discard block
 block discarded – undo
290 290
      * when a company has over 1k images
291 291
      *
292 292
      * @deprecated version 0.2
293
-     * @param string $name
294 293
      * @return void
295 294
      */
296 295
     public function getAttachmentByName(string $fieldName)
@@ -338,7 +337,6 @@  discard block
 block discarded – undo
338 337
     /**
339 338
      * Given this entity define a new path.
340 339
      *
341
-     * @param string $path
342 340
      * @return string
343 341
      */
344 342
     protected function filesNewAttachedPath(): ?string
Please login to merge, or discard this patch.
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,13 +4,13 @@
 block discarded – undo
4 4
 
5 5
 namespace Canvas\Traits;
6 6
 
7
-use Canvas\Models\SystemModules;
8
-use Canvas\Models\FileSystem;
9
-use RuntimeException;
10
-use Canvas\Models\FileSystemEntities;
11 7
 use Canvas\Dto\Files;
12 8
 use Canvas\Mapper\FileMapper;
9
+use Canvas\Models\FileSystem;
10
+use Canvas\Models\FileSystemEntities;
11
+use Canvas\Models\SystemModules;
13 12
 use Phalcon\Mvc\Model\ResultsetInterface;
13
+use RuntimeException;
14 14
 
15 15
 /**
16 16
  * Trait ResponseTrait.
Please login to merge, or discard this patch.
src/Traits/RequestJwtTrait.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -46,5 +46,8 @@
 block discarded – undo
46 46
         return false;
47 47
     }
48 48
 
49
+    /**
50
+     * @param string $header
51
+     */
49 52
     abstract public function getHeader($header);
50 53
 }
Please login to merge, or discard this patch.