mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 01:38:41 +00:00
phpcs fixes
This commit is contained in:
parent
cdea41f714
commit
39418dbe23
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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'])) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user