DirectorObjectForm: remove unused parameter for...

...object() helper method
This commit is contained in:
Thomas Gelf 2016-12-14 20:48:59 +01:00
parent 145e1fc6a9
commit cbb3c7aa88
1 changed files with 3 additions and 3 deletions

View File

@ -84,12 +84,13 @@ abstract class DirectorObjectForm extends QuickForm
*
* @return DbObject|DbObjectWithSettings|IcingaObject
*/
protected function object($values = array())
protected function object()
{
if ($this->object === null) {
$values = array();
/** @var DbObject|IcingaObject $class */
$class = $this->getObjectClassname();
if ($this->preferredObjectType && ! array_key_exists('object_type', $values)) {
if ($this->preferredObjectType) {
$values['object_type'] = $this->preferredObjectType;
}
@ -103,7 +104,6 @@ abstract class DirectorObjectForm extends QuickForm
if (! $this->object->hasConnection()) {
$this->object->setConnection($this->db);
}
$this->object->setProperties($values);
}
return $this->object;