fix phpcs

This commit is contained in:
Dennis Eichhorn 2020-03-14 20:07:03 +01:00
parent dcfc61e7a9
commit 0e5e967920
3 changed files with 5 additions and 5 deletions

View File

@ -1562,7 +1562,7 @@ class DataMapperAbstract implements DataMapperInterface
// already in db
if (!empty($primaryKey)) {
$objsIds[$key] = $relations === RelationType::ALL ? $mapper::delete($value) : $primaryKey;
$objsIds[$key] = $relations === RelationType::ALL ? $mapper::delete($value) : $primaryKey;
continue;
}

View File

@ -491,7 +491,7 @@ class Grammar extends GrammarAbstract
$expression .= ' ' . \strtoupper($element['operator']) . ' ' . $this->compileSystem($element['value']);
} else {
$operator = $element['operator'] === '=' ? 'IS' : 'IS NOT';
$expression .= ' ' . $operator . ' ' . $this->compileValue($query, $element['value']);
$expression .= ' ' . $operator . ' ' . $this->compileValue($query, $element['value']);
}
return $expression;

View File

@ -165,7 +165,7 @@ final class ModuleManager
$uriHash = $request->getHash();
$query = new Builder($this->app->dbPool->get('select'));
$sth = $query->select('module_load.module_load_type', 'module_load.*')
$sth = $query->select('module_load.module_load_type', 'module_load.*')
->from('module_load')
->innerJoin('module')->on('module_load.module_load_from', '=', 'module.module_id')->orOn('module_load.module_load_for', '=', 'module.module_id')
->whereIn('module_load.module_load_pid', $uriHash)
@ -191,7 +191,7 @@ final class ModuleManager
{
if (empty($this->active) || !$useCache) {
$query = new Builder($this->app->dbPool->get('select'));
$sth = $query->select('module.module_path')
$sth = $query->select('module.module_path')
->from('module')
->where('module.module_active', '=', 1)
->execute();
@ -308,7 +308,7 @@ final class ModuleManager
{
if (empty($this->installed) || !$useCache) {
$query = new Builder($this->app->dbPool->get('select'));
$sth = $query->select('module.module_path')
$sth = $query->select('module.module_path')
->from('module')
->execute();