1 | <?php |
||
15 | class ServiceUniqueCode extends \Aimeos\MW\Setup\Task\Base |
||
16 | { |
||
17 | private $select = ' |
||
18 | SELECT "code" FROM "mshop_service" GROUP BY "code" HAVING COUNT("code") > 1 |
||
19 | '; |
||
20 | private $update = ' |
||
21 | UPDATE "mshop_service" SET "code"=? WHERE "code"=? |
||
22 | AND (SELECT "id" FROM "mshop_service_type" WHERE "code"=\'delivery\') |
||
23 | '; |
||
24 | |||
25 | |||
26 | /** |
||
27 | * Returns the list of task names which this task depends on. |
||
28 | * |
||
29 | * @return string[] List of task names |
||
30 | */ |
||
31 | public function getPreDependencies() |
||
35 | |||
36 | |||
37 | /** |
||
38 | * Returns the list of task names which depends on this task. |
||
39 | * |
||
40 | * @return array List of task names |
||
41 | */ |
||
42 | public function getPostDependencies() |
||
46 | |||
47 | |||
48 | /** |
||
49 | * Renames all order tables if they exist. |
||
50 | * |
||
51 | * @param array $stmts Associative array of tables names and lists of SQL statements to execute. |
||
|
|||
52 | */ |
||
53 | public function migrate() |
||
85 | } |
||
86 |
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.