mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-13 15:18:41 +00:00
phpcs fixes
This commit is contained in:
parent
cdea41f714
commit
39418dbe23
|
|
@ -426,8 +426,8 @@ class DataMapperFactory
|
||||||
/**
|
/**
|
||||||
* Get id of object
|
* Get id of object
|
||||||
*
|
*
|
||||||
* @param object $obj Model to create
|
* @param object $obj Model to create
|
||||||
* @param string $member Member name for the id, if it is not the primary key
|
* @param string $member Member name for the id, if it is not the primary key
|
||||||
* @param null|\ReflectionClass $refClass Reflection class
|
* @param null|\ReflectionClass $refClass Reflection class
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return mixed
|
||||||
|
|
|
||||||
|
|
@ -699,9 +699,9 @@ final class ReadMapper extends DataMapperAbstract
|
||||||
}
|
}
|
||||||
|
|
||||||
if (\stripos($member, '/') !== false) {
|
if (\stripos($member, '/') !== false) {
|
||||||
$hasPath = true;
|
$hasPath = true;
|
||||||
$path = \explode('/', $member);
|
$path = \explode('/', $member);
|
||||||
$member = $path[0];
|
$member = $path[0];
|
||||||
|
|
||||||
if ($isPrivate) {
|
if ($isPrivate) {
|
||||||
$refProp = $refClass->getProperty($path[0]);
|
$refProp = $refClass->getProperty($path[0]);
|
||||||
|
|
@ -711,7 +711,7 @@ final class ReadMapper extends DataMapperAbstract
|
||||||
$arrayPath = \implode('/', $path);
|
$arrayPath = \implode('/', $path);
|
||||||
$aValue = $isPrivate ? $refProp->getValue($obj) : $obj->{$path[0]};
|
$aValue = $isPrivate ? $refProp->getValue($obj) : $obj->{$path[0]};
|
||||||
} elseif ($isPrivate) {
|
} elseif ($isPrivate) {
|
||||||
$refProp = $refClass->getProperty($member);
|
$refProp = $refClass->getProperty($member);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (\in_array($def['mapper']::COLUMNS[$column]['type'], ['string', 'int', 'float', 'bool'])) {
|
if (\in_array($def['mapper']::COLUMNS[$column]['type'], ['string', 'int', 'float', 'bool'])) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user