vtlib/Vtiger/Language.php
Missing class import via use statement (line '25', column '17'). Open
Open
$query = (new \App\Db\Query())->select(['prefix'])->from('vtiger_language');
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Suspicious type false
of a variable or expression used to build a string. (Expected type to be able to cast to a string) Open
Open
$langFilePath = "languages/$lang/Settings/{$moduleInstance->name}.json";
- Exclude checks
Suspicious type false
of a variable or expression used to build a string. (Expected type to be able to cast to a string) Open
Open
$langFilePath = "languages/$lang/{$moduleInstance->name}.json";
- Exclude checks
Call to undeclared method \App\Db\Query::select
Open
Open
$query = (new \App\Db\Query())->select(['prefix'])->from('vtiger_language');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$langFilePath = "languages/$lang/{$moduleInstance->name}.json";
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* @param ModuleBasic $moduleInstance
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$langFilePath = "languages/$lang/Settings/{$moduleInstance->name}.json";
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
unlink($langFilePath);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
if (file_exists($langFilePath)) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* Function to remove language files related to a module.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$query = (new \App\Db\Query())->select(['prefix'])->from('vtiger_language');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
unlink($langFilePath);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
if (file_exists($langFilePath)) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
foreach ($query->column() as $lang) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public static function deleteForModule(ModuleBasic $moduleInstance)
- Exclude checks