Failed Conditions
Pull Request — master (#223)
by Esteban
02:45
created
src/Jobs/PendingDispatch.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     /**
21 21
      * Create a new pending job dispatch.
22 22
      *
23
-     * @param  mixed  $job
23
+     * @param  QueueableJobInterfase  $job
24 24
      * @return void
25 25
      */
26 26
     public function __construct(QueueableJobInterfase $job)
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     /**
44 44
      * Handle the object's destruction.
45 45
      *
46
-     * @return void
46
+     * @return boolean
47 47
      */
48 48
     public function __destruct()
49 49
     {
Please login to merge, or discard this patch.
src/Listener/Company.php 2 patches
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,6 @@
 block discarded – undo
18 18
      *  Event to run after a user signs up.
19 19
      *
20 20
      * @param Event $event
21
-     * @param Users $user
22
-     * @param boolean $isFirstSignup
23 21
      * @return void
24 22
      */
25 23
     public function afterSignup(Event $event, Companies $company): void
Please login to merge, or discard this patch.
Unused Use Statements   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -4,13 +4,13 @@
 block discarded – undo
4 4
 
5 5
 namespace Canvas\Listener;
6 6
 
7
-use Phalcon\Events\Event;
8
-use Canvas\Models\Users;
9
-use Canvas\Models\Companies;
10
-use Canvas\Models\CompaniesBranches;
11
-use Canvas\Exception\ServerErrorHttpException;
12 7
 use Baka\Auth\Models\UserCompanyApps;
8
+use Canvas\Exception\ServerErrorHttpException;
13 9
 use Canvas\Models\AppsPlans;
10
+use Canvas\Models\Companies;
11
+use Canvas\Models\CompaniesBranches;
12
+use Canvas\Models\Users;
13
+use Phalcon\Events\Event;
14 14
 
15 15
 class Company
16 16
 {
Please login to merge, or discard this patch.
src/Listener/Notification.php 2 patches
Doc Comments   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -31,10 +31,7 @@  discard block
 block discarded – undo
31 31
      * From a given push notification send it to the user.
32 32
      *
33 33
      * @param Event $event
34
-     * @param Users $user
35
-     * @param string $message
36
-     * @param array $params
37
-     * @return mixed
34
+     * @return \Canvas\Jobs\PendingDispatch
38 35
      */
39 36
     public function sendPushNotification(Event $event, PushNotification $pushNotification)
40 37
     {
@@ -45,8 +42,8 @@  discard block
 block discarded – undo
45 42
      * From a given notificatino send its realtime websocket.
46 43
      *
47 44
      * @param Event $event
48
-     * @param NotificationInterfase $notification
49
-     * @return void
45
+     * @param NotificationInterfase $pusherNotification
46
+     * @return \Canvas\Jobs\PendingDispatch
50 47
      */
51 48
     public function sendRealtime(Event $event, PusherNotification $pusherNotification)
52 49
     {
Please login to merge, or discard this patch.
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,14 +4,14 @@
 block discarded – undo
4 4
 
5 5
 namespace Canvas\Listener;
6 6
 
7
-use Phalcon\Events\Event;
8
-use Canvas\Contracts\Notifications\NotificationInterfase;
9 7
 use Baka\Mail\Message;
10
-use Canvas\Cli\Jobs\Pusher;
11 8
 use Canvas\Cli\Jobs\PushNotifications;
9
+use Canvas\Cli\Jobs\Pusher;
10
+use Canvas\Contracts\Notifications\NotificationInterfase;
12 11
 use Canvas\Models\Users;
13
-use Canvas\Notifications\PusherNotification;
14 12
 use Canvas\Notifications\PushNotification;
13
+use Canvas\Notifications\PusherNotification;
14
+use Phalcon\Events\Event;
15 15
 
16 16
 class Notification
17 17
 {
Please login to merge, or discard this patch.
src/Listener/User.php 1 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\Listener;
6 6
 
7
-use Phalcon\Events\Event;
8
-use Canvas\Models\Users;
9
-use Canvas\Models\Companies;
10
-use Canvas\Models\UserRoles;
11 7
 use Canvas\Auth\App;
8
+use Canvas\Models\Companies;
12 9
 use Canvas\Models\Roles;
10
+use Canvas\Models\UserRoles;
11
+use Canvas\Models\Users;
13 12
 use Canvas\Models\UsersInvite;
13
+use Phalcon\Events\Event;
14 14
 
15 15
 class User
16 16
 {
Please login to merge, or discard this patch.
src/Mapper/CustomFieldsMapper.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,6 @@
 block discarded – undo
11 11
 class CustomFieldsMapper extends CustomMapper
12 12
 {
13 13
     /**
14
-     * @param Canvas\Models\FileSystem $file
15
-     * @param Canvas\Dto\Files $fileDto
16 14
      * @return Files
17 15
      */
18 16
     public function mapToObject($customField, $customFieldDto, array $context = [])
Please login to merge, or discard this patch.
src/Mapper/CustomFilterMapper.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 {
13 13
     /**
14 14
      * @param Baka\Database\CustomFilters\CustomFilters $filter
15
-     * @param \Canvas\Dto\CustomFilter $filterSchema
16 15
      * @return ListSchema
17 16
      */
18 17
     public function mapToObject($filter, $customFilter, array $context = [])
Please login to merge, or discard this patch.
src/Mapper/FileMapper.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,6 @@
 block discarded – undo
28 28
     }
29 29
 
30 30
     /**
31
-     * @param Canvas\Models\FileSystem $file
32 31
      * @param Canvas\Dto\Files $fileDto
33 32
      * @return Files
34 33
      */
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 
7 7
 use AutoMapperPlus\CustomMapper\CustomMapper;
8 8
 use Canvas\Dto\Files;
9
-use Canvas\Models\FileSystemEntities;
10 9
 
11 10
 // You can either extend the CustomMapper, or just implement the MapperInterface
12 11
 // directly.
Please login to merge, or discard this patch.
src/Mapper/ListSchemaMapper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     /**
19 19
      * @param SystemModules $systeModel
20 20
      * @param \Canvas\Dto\ListSchema $listSchema
21
-     * @return ListSchema
21
+     * @return \Canvas\Dto\ListSchema
22 22
      */
23 23
     public function mapToObject($systeModel, $listSchema, array $context = [])
24 24
     {
Please login to merge, or discard this patch.
src/Mapper/NotificationMapper.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,8 +6,8 @@
 block discarded – undo
6 6
 
7 7
 use AutoMapperPlus\CustomMapper\CustomMapper;
8 8
 use Canvas\Models\SystemModules;
9
-use ReflectionClass;
10 9
 use Exception;
10
+use ReflectionClass;
11 11
 
12 12
 // You can either extend the CustomMapper, or just implement the MapperInterface
13 13
 // directly.
Please login to merge, or discard this patch.