Failed Conditions
Pull Request — master (#284)
by Maximo
04:23
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, -3 removed lines patch added patch discarded remove patch
@@ -6,10 +6,8 @@
 block discarded – undo
6 6
 
7 7
 use Canvas\Models\UserWebhooks;
8 8
 use Canvas\Validation;
9
-use Exception;
10
-use Phalcon\Http\Response;
11
-use GuzzleHttp\Client;
12 9
 use Canvas\Webhooks;
10
+use Phalcon\Http\Response;
13 11
 use Phalcon\Validation\Validator\PresenceOf;
14 12
 
15 13
 /**
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
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
      * Get System Module by its model_name.
142 142
      * 
143 143
      * @deprecated v2
144
-     * @param string $model_name
144
+     * @param string $modelName
145 145
      * @return SystemModules
146 146
      */
147 147
     public static function getSystemModuleByModelName(string $modelName): SystemModules
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
     /**
162 162
      * Get System Module by its model_name.
163 163
      * 
164
-     * @param string $model_name
164
+     * @param string $modelName
165 165
      * @return SystemModules
166 166
      */
167 167
     public static function getByModelName(string $modelName): SystemModules
@@ -188,7 +188,6 @@  discard block
 block discarded – undo
188 188
     /**
189 189
      * Get System Module by id.
190 190
      *
191
-     * @param int $id
192 191
      * @return SystemModules
193 192
      */
194 193
     public static function getBySlug(string $slug): SystemModules
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
 
9 9
 class SystemModules extends AbstractModel
10 10
 {
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   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,12 +4,12 @@
 block discarded – undo
4 4
 
5 5
 namespace Canvas;
6 6
 
7
+use Canvas\Models\SystemModules;
7 8
 use Canvas\Models\UserWebhooks;
8 9
 use Exception;
9
-use Phalcon\Http\Response;
10 10
 use GuzzleHttp\Client;
11 11
 use Phalcon\Di;
12
-use Canvas\Models\SystemModules;
12
+use Phalcon\Http\Response;
13 13
 
14 14
 /**
15 15
  * Class Validation.
Please login to merge, or discard this patch.