Conditions | 4 |
Paths | 4 |
Total Lines | 25 |
Code Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
31 | public function actionIndex(): int |
||
32 | { |
||
33 | $this->disableLogging(); |
||
34 | $result = []; |
||
35 | foreach ($this->getDataTypes() as $dataTypeHandle) { |
||
36 | $dataType = $this->module->getDataType($dataTypeHandle); |
||
37 | if (null == $dataType) { |
||
38 | continue; |
||
39 | } |
||
40 | |||
41 | $mapper = $dataType->getMapperHandle(); |
||
42 | if (!$this->module->checkMapper($mapper)) { |
||
43 | continue; |
||
44 | } |
||
45 | |||
46 | Schematic::info('Exporting '.$dataTypeHandle); |
||
47 | $records = $dataType->getRecords(); |
||
48 | $result[$dataTypeHandle] = $this->module->$mapper->export($records); |
||
49 | } |
||
50 | |||
51 | FileHelper::writeToFile($this->file, Data::toYaml($result)); |
||
52 | Schematic::info('Exported schema to '.$this->file); |
||
53 | |||
54 | return 0; |
||
55 | } |
||
56 | } |
||
57 |
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.