Optimize indention

This commit is contained in:
Dennis Eichhorn 2017-12-03 21:57:28 +01:00
parent e92df825fe
commit fdcc81a3d1

View File

@ -1742,7 +1742,10 @@ class DataMapperAbstract implements DataMapperInterface
$reflectionClass = new \ReflectionClass($obj); $reflectionClass = new \ReflectionClass($obj);
foreach ($result as $column => $value) { 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']); $reflectionProperty = $reflectionClass->getProperty(static::$columns[$column]['internal']);
if (!($accessible = $reflectionProperty->isPublic())) { if (!($accessible = $reflectionProperty->isPublic())) {
@ -1770,7 +1773,6 @@ class DataMapperAbstract implements DataMapperInterface
$reflectionProperty->setAccessible(false); $reflectionProperty->setAccessible(false);
} }
} }
}
return $obj; return $obj;
} }