mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 01:04: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)
|
||||
{
|
||||
$self = (new static())->setConnection($db);
|
||||
if (is_object($row)) {
|
||||
return $self->setDbProperties((array) $row);
|
||||
}
|
||||
$self = (new static())->setConnection($db);
|
||||
if (is_object($row)) {
|
||||
return $self->setDbProperties((array) $row);
|
||||
}
|
||||
|
||||
if (is_array($row)) {
|
||||
return $self->setDbProperties($row);
|
||||
}
|
||||
if (is_array($row)) {
|
||||
return $self->setDbProperties($row);
|
||||
}
|
||||
|
||||
throw new InvalidDataException('array or object', $row);
|
||||
throw new InvalidDataException('array or object', $row);
|
||||
}
|
||||
|
||||
protected function setDbProperties($properties)
|
||||
|
Loading…
x
Reference in New Issue
Block a user