1 | <?php |
||
19 | class Webhooks |
||
20 | { |
||
21 | /** |
||
22 | * Given the weebhook id, we run a test for it. |
||
23 | * |
||
24 | * @param integer $id |
||
25 | * @param mixed $data |
||
26 | * @return Response |
||
27 | */ |
||
28 | public static function run(int $id, $data) |
||
65 | |||
66 | /** |
||
67 | * Execute the the webhook for the given app company providing the system module |
||
68 | * for the SDK |
||
69 | * - pass the system module classname or classname\namespace |
||
70 | * - pass the action you are doing from the CRUD |
||
71 | * - get all the hooks from the user that match this action |
||
72 | * - pass the data you are sending |
||
73 | * - then we send it over to the URl. |
||
74 | * |
||
75 | * @param string $model |
||
|
|||
76 | * @param mixed $data |
||
77 | * @param string $action |
||
78 | * @throws Exception |
||
79 | * @return bool |
||
80 | */ |
||
81 | public static function process(string $module, $data, string $action): bool |
||
110 | } |
||
111 | |||
113 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.