Issues (1519)

system/modules/Modules/tpls/Model.php (1 issue)

Labels
Severity
1
<?= "<?php\n"; ?>
2
3
<?= "namespace {$module};\n"; ?>
4
5
class <?= $codeName; ?> extends \Inji\Model {
6
//modelParams<?php
7
if (!empty($name)) {
8
    echo "\n    static " . '$objectName = \'' . $name . "';";
9
}
10
if (!empty($labels)) {
11
    echo "\n    static " . '$labels = [' . CodeGenerator::genArray($labels, 1) . "\n    ];";
0 ignored issues
show
The type CodeGenerator was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
12
}
13
if (!empty($cols)) {
14
    echo "\n    static " . '$cols = [' . CodeGenerator::genArray($cols, 1) . "\n    ];";
15
}
16
?>
17
//!modelParams
18
//modelBody
19
//!modelBody
20
}
21