From 0e5e967920d2f197fffb6b59aee5f7b4c97c1be0 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 14 Mar 2020 20:07:03 +0100 Subject: [PATCH] fix phpcs --- DataStorage/Database/DataMapperAbstract.php | 2 +- DataStorage/Database/Query/Grammar/Grammar.php | 2 +- Module/ModuleManager.php | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/DataStorage/Database/DataMapperAbstract.php b/DataStorage/Database/DataMapperAbstract.php index 967128842..04d35c623 100644 --- a/DataStorage/Database/DataMapperAbstract.php +++ b/DataStorage/Database/DataMapperAbstract.php @@ -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; } diff --git a/DataStorage/Database/Query/Grammar/Grammar.php b/DataStorage/Database/Query/Grammar/Grammar.php index a246998d1..8e6367562 100644 --- a/DataStorage/Database/Query/Grammar/Grammar.php +++ b/DataStorage/Database/Query/Grammar/Grammar.php @@ -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; diff --git a/Module/ModuleManager.php b/Module/ModuleManager.php index 5af46c4dc..41718885c 100644 --- a/Module/ModuleManager.php +++ b/Module/ModuleManager.php @@ -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();