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 * 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

View File

@ -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'])) {