mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
DbObject: indentation
This commit is contained in:
parent
68814e0de6
commit
c7cba433ed
@ -712,16 +712,16 @@ abstract class DbObject
|
|||||||
*/
|
*/
|
||||||
public static function fromDbRow($row, Db $db)
|
public static function fromDbRow($row, Db $db)
|
||||||
{
|
{
|
||||||
$self = (new static())->setConnection($db);
|
$self = (new static())->setConnection($db);
|
||||||
if (is_object($row)) {
|
if (is_object($row)) {
|
||||||
return $self->setDbProperties((array) $row);
|
return $self->setDbProperties((array) $row);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_array($row)) {
|
if (is_array($row)) {
|
||||||
return $self->setDbProperties($row);
|
return $self->setDbProperties($row);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new InvalidDataException('array or object', $row);
|
throw new InvalidDataException('array or object', $row);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function setDbProperties($properties)
|
protected function setDbProperties($properties)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user