mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-16 08:28:41 +00:00
Optimize indention
This commit is contained in:
parent
e92df825fe
commit
fdcc81a3d1
|
|
@ -1742,7 +1742,10 @@ class DataMapperAbstract implements DataMapperInterface
|
|||
$reflectionClass = new \ReflectionClass($obj);
|
||||
|
||||
foreach ($result as $column => $value) {
|
||||
if (isset(static::$columns[$column]['internal']) /* && $reflectionClass->hasProperty(static::$columns[$column]['internal']) */) {
|
||||
if (!isset(static::$columns[$column]['internal']) /* && $reflectionClass->hasProperty(static::$columns[$column]['internal']) */) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$reflectionProperty = $reflectionClass->getProperty(static::$columns[$column]['internal']);
|
||||
|
||||
if (!($accessible = $reflectionProperty->isPublic())) {
|
||||
|
|
@ -1770,7 +1773,6 @@ class DataMapperAbstract implements DataMapperInterface
|
|||
$reflectionProperty->setAccessible(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $obj;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user