mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-19 04:58:41 +00:00
fix phpcs
This commit is contained in:
parent
dcfc61e7a9
commit
0e5e967920
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user