Failed Conditions
Pull Request — master (#337)
by Rafael
09:12
created
src/Models/Apps.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@
 block discarded – undo
3 3
 
4 4
 namespace Canvas\Models;
5 5
 
6
-use Canvas\Traits\UsersAssociatedTrait;
7 6
 use Baka\Database\Contracts\HashTableTrait;
7
+use Canvas\Traits\UsersAssociatedTrait;
8 8
 
9 9
 class Apps extends \Baka\Database\Apps
10 10
 {
Please login to merge, or discard this patch.
src/Models/Companies.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -518,7 +518,7 @@
 block discarded – undo
518 518
     /**
519 519
      * Overwrite the relationship.
520 520
      *
521
-     * @return void
521
+     * @return string|null
522 522
      */
523 523
     public function getLogo()
524 524
     {
Please login to merge, or discard this patch.
Unused Use Statements   +8 added lines, -9 removed lines patch added patch discarded remove patch
@@ -3,19 +3,18 @@
 block discarded – undo
3 3
 
4 4
 namespace Canvas\Models;
5 5
 
6
-use Phalcon\Validation;
7
-use Phalcon\Validation\Validator\PresenceOf;
8
-use Canvas\Exception\ServerErrorHttpException;
9
-use Exception;
10
-use Carbon\Carbon;
11
-use Baka\Database\Contracts\HashTableTrait;
12
-use Baka\Blameable\BlameableTrait;
13
-use Canvas\Traits\UsersAssociatedTrait;
14
-use Canvas\Traits\FileSystemModelTrait;
15 6
 use Baka\Blameable\Blameable;
7
+use Baka\Blameable\BlameableTrait;
8
+use Baka\Database\Contracts\HashTableTrait;
16 9
 use Canvas\Http\Exception\InternalServerErrorException;
17 10
 use Canvas\Traits\EventManagerAwareTrait;
11
+use Canvas\Traits\FileSystemModelTrait;
12
+use Canvas\Traits\UsersAssociatedTrait;
13
+use Carbon\Carbon;
14
+use Exception;
18 15
 use Phalcon\Di;
16
+use Phalcon\Validation;
17
+use Phalcon\Validation\Validator\PresenceOf;
19 18
 
20 19
 /**
21 20
  * Class Companies.
Please login to merge, or discard this patch.
src/Models/FileSystemEntities.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -132,7 +132,6 @@  discard block
 block discarded – undo
132 132
      * Get a filesystem entities from this system modules.
133 133
      *
134 134
      * @param integer $id
135
-     * @param SystemModules $systemModules
136 135
      * @return FileSystemEntities
137 136
      */
138 137
     public static function getById(int $id): FileSystemEntities
@@ -157,7 +156,6 @@  discard block
 block discarded – undo
157 156
      * Get a filesystem entities from this system modules.
158 157
      *
159 158
      * @param integer $id
160
-     * @param SystemModules $systemModules
161 159
      * @return FileSystemEntities
162 160
      */
163 161
     public static function getByEntityId(int $id): FileSystemEntities
Please login to merge, or discard this patch.
src/Models/Notifications.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
      * Mark as Read all the notification from a user.
129 129
      *
130 130
      * @param Users $user
131
-     * @return void
131
+     * @return boolean
132 132
      */
133 133
     public static function markAsRead(Users $user): bool
134 134
     {
Please login to merge, or discard this patch.
src/Models/NotificationType.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
      *  by defautl in any kanvas app the key will be its classname
104 104
      *
105 105
      * @param string $key
106
-     * @return void
106
+     * @return NotificationType
107 107
      */
108 108
     public static function getByKey(string $key): NotificationType
109 109
     {
Please login to merge, or discard this patch.
src/Models/ResourcesAccesses.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
     /**
80 80
      * Check if it exist
81 81
      *
82
-     * @param Resources $resouce
82
+     * @param Resources $resource
83 83
      * @param string $accessName
84 84
      * @return integer
85 85
      */
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 namespace Canvas\Models;
6 6
 
7 7
 use Phalcon\Di;
8
-use Canvas\Exception\ModelException;
9 8
 
10 9
 class ResourcesAccesses extends AbstractModel
11 10
 {
Please login to merge, or discard this patch.
src/Models/Roles.php 2 patches
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -196,7 +196,6 @@  discard block
 block discarded – undo
196 196
     /**
197 197
      * Get the entity by its name.
198 198
      *
199
-     * @param string $name
200 199
      * @return Roles
201 200
      */
202 201
     public static function getById(int $id): Roles
@@ -321,7 +320,6 @@  discard block
 block discarded – undo
321 320
 
322 321
     /**
323 322
      * Check if role exists by its id.
324
-     * @param integer $role_id
325 323
      * @return Roles
326 324
      */
327 325
     public static function existsById(int $id): Roles
Please login to merge, or discard this 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
 namespace Canvas\Models;
5 5
 
6 6
 use Baka\Database\Exception\ModelNotFoundException;
7
+use Canvas\Http\Exception\InternalServerErrorException;
8
+use Canvas\Http\Exception\UnprocessableEntityException;
9
+use Phalcon\Acl\Role as AclRole;
7 10
 use Phalcon\Di;
8 11
 use Phalcon\Validation;
9 12
 use Phalcon\Validation\Validator\PresenceOf;
10 13
 use Phalcon\Validation\Validator\StringLength;
11
-use Phalcon\Acl\Role as AclRole;
12
-use Canvas\Http\Exception\InternalServerErrorException;
13
-use Canvas\Http\Exception\UnprocessableEntityException;
14 14
 use Phalcon\Validation\Validator\Uniqueness;
15 15
 
16 16
 /**
Please login to merge, or discard this patch.
src/Models/UserCompanyApps.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
     /**
87 87
      * Get the current company app
88 88
      *
89
-     * @return void
89
+     * @return UserCompanyApps
90 90
      */
91 91
     public static function getCurrentApp(): UserCompanyApps
92 92
     {
Please login to merge, or discard this patch.
src/Models/UsersInvite.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@
 block discarded – undo
171 171
     /**
172 172
      * Given the form request return a new user invite.
173 173
      *
174
-     * @param array $requets
174
+     * @param array $request
175 175
      * @return Users
176 176
      */
177 177
     public function newUser(array $request): Users
Please login to merge, or discard this patch.