Failed Conditions
Pull Request — master (#284)
by Maximo
02:56
created
src/Api/Controllers/UserWebhooksController.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,6 @@
 block discarded – undo
70 70
     /**
71 71
     * Given the weebhook id, we run a test for it.
72 72
     *
73
-    * @param integer $id
74 73
     * @return Response
75 74
     */
76 75
     public function execute(string $name): Response
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,8 +7,8 @@
 block discarded – undo
7 7
 use Canvas\Http\Exception\UnprocessableEntityException;
8 8
 use Canvas\Models\UserWebhooks;
9 9
 use Canvas\Validation;
10
-use Phalcon\Http\Response;
11 10
 use Canvas\Webhooks;
11
+use Phalcon\Http\Response;
12 12
 use Phalcon\Validation\Validator\PresenceOf;
13 13
 use function Canvas\Core\isJson;
14 14
 
Please login to merge, or discard this patch.
src/Models/UserWebhooks.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -145,6 +145,7 @@
 block discarded – undo
145 145
     /**
146 146
     * Get element by Id.
147 147
     *
148
+    * @param integer $id
148 149
     * @return Webhooks
149 150
     */
150 151
     public static function getById($id): self
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
 namespace Canvas\Models;
5 5
 
6 6
 use Phalcon\Di;
7
-use Phalcon\Validation\Validator\Url;
8 7
 use Phalcon\Validation;
8
+use Phalcon\Validation\Validator\Url;
9 9
 
10 10
 class UserWebhooks extends AbstractModel
11 11
 {
Please login to merge, or discard this patch.
src/Webhooks.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
      *  - pass the data you are sending
73 73
      *  - then we send it over to the URl.
74 74
      *
75
-     * @param string $model
75
+     * @param string $module
76 76
      * @param mixed $data
77 77
      * @param string $action
78 78
      * @throws Exception
Please login to merge, or discard this patch.
Unused Use Statements   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,14 +4,13 @@
 block discarded – undo
4 4
 
5 5
 namespace Canvas;
6 6
 
7
+use Canvas\Models\SystemModules;
7 8
 use Canvas\Models\UserWebhooks;
8
-use Throwable;
9
-use Phalcon\Http\Response;
10 9
 use GuzzleHttp\Client;
11 10
 use Phalcon\Di;
12
-use Canvas\Models\SystemModules;
11
+use Phalcon\Http\Response;
12
+use Throwable;
13 13
 use function Canvas\Core\isJson;
14
-use Canvas\Http\Exception\UnprocessableEntityException;
15 14
 
16 15
 /**
17 16
  * Class Validation.
Please login to merge, or discard this patch.
src/Middleware/TokenBase.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\Middleware;
6 6
 
7
-use Canvas\Traits\TokenTrait;
8 7
 use Canvas\Traits\SubscriptionPlanLimitTrait;
8
+use Canvas\Traits\TokenTrait;
9 9
 use Phalcon\Mvc\Micro\MiddlewareInterface;
10 10
 
11 11
 /**
Please login to merge, or discard this patch.
src/Models/SystemModules.php 2 patches
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      * Get System Module by its model_name.
143 143
      *
144 144
      * @deprecated v2
145
-     * @param string $model_name
145
+     * @param string $modelName
146 146
      * @return ModelInterface
147 147
      */
148 148
     public static function getSystemModuleByModelName(string $modelName): ModelInterface
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
     /**
163 163
      * Get System Module by its model_name.
164 164
      *
165
-     * @param string $model_name
165
+     * @param string $modelName
166 166
      * @return ModelInterface
167 167
      */
168 168
     public static function getByModelName(string $modelName): ModelInterface
@@ -200,7 +200,6 @@  discard block
 block discarded – undo
200 200
     /**
201 201
      * Get System Module by id.
202 202
      *
203
-     * @param int $id
204 203
      * @return ModelInterface
205 204
      */
206 205
     public static function getBySlug(string $slug): ModelInterface
Please login to merge, or discard this 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 Phalcon\Di;
7 6
 use Canvas\Http\Exception\InternalServerErrorException;
7
+use Phalcon\Di;
8 8
 use Phalcon\Mvc\ModelInterface;
9 9
 
10 10
 class SystemModules extends AbstractModel
Please login to merge, or discard this patch.