phpcs fixes

This commit is contained in:
Dennis Eichhorn 2023-10-04 13:54:38 +00:00
parent cdea41f714
commit 39418dbe23
2 changed files with 6 additions and 6 deletions

View File

@ -426,8 +426,8 @@ class DataMapperFactory
/**
* Get id of object
*
* @param object $obj Model to create
* @param string $member Member name for the id, if it is not the primary key
* @param object $obj Model to create
* @param string $member Member name for the id, if it is not the primary key
* @param null|\ReflectionClass $refClass Reflection class
*
* @return mixed

View File

@ -699,9 +699,9 @@ final class ReadMapper extends DataMapperAbstract
}
if (\stripos($member, '/') !== false) {
$hasPath = true;
$path = \explode('/', $member);
$member = $path[0];
$hasPath = true;
$path = \explode('/', $member);
$member = $path[0];
if ($isPrivate) {
$refProp = $refClass->getProperty($path[0]);
@ -711,7 +711,7 @@ final class ReadMapper extends DataMapperAbstract
$arrayPath = \implode('/', $path);
$aValue = $isPrivate ? $refProp->getValue($obj) : $obj->{$path[0]};
} elseif ($isPrivate) {
$refProp = $refClass->getProperty($member);
$refProp = $refClass->getProperty($member);
}
if (\in_array($def['mapper']::COLUMNS[$column]['type'], ['string', 'int', 'float', 'bool'])) {