cs fixes
This commit is contained in:
parent
e883ed70b3
commit
f3a11213f7
|
@ -24,7 +24,8 @@ class IndexController extends DashboardController
|
|||
}
|
||||
|
||||
if ($migrations->hasPendingMigrations()) {
|
||||
$this->content()->prepend($this
|
||||
$this->content()->prepend(
|
||||
$this
|
||||
->loadForm('applyMigrations')
|
||||
->setMigrations($migrations)
|
||||
->handleRequest()
|
||||
|
|
|
@ -58,11 +58,11 @@ abstract class Dashboard extends Html implements Countable
|
|||
protected function addDescription($description)
|
||||
{
|
||||
if ($description !== null) {
|
||||
$this->add(
|
||||
Html::tag('p', null, HtmlString::create(
|
||||
nl2br(Util::escapeForHtml($description)))
|
||||
)
|
||||
);
|
||||
$this->add(Html::tag(
|
||||
'p',
|
||||
null,
|
||||
HtmlString::create(nl2br(Util::escapeForHtml($description)))
|
||||
));
|
||||
}
|
||||
|
||||
return $this;
|
||||
|
|
|
@ -156,12 +156,14 @@ class ObjectsTable extends QueryBasedTable
|
|||
$type = $this->getType();
|
||||
$object = IcingaObject::createByType($type);
|
||||
$table = $object->getTableName();
|
||||
$query = $this->applyRestrictions($this->db()->select()
|
||||
->from(
|
||||
['o' => $table],
|
||||
$this->getColumns()
|
||||
)
|
||||
->order('o.object_name')
|
||||
$query = $this->applyRestrictions(
|
||||
$this->db()
|
||||
->select()
|
||||
->from(
|
||||
['o' => $table],
|
||||
$this->getColumns()
|
||||
)
|
||||
->order('o.object_name')
|
||||
);
|
||||
|
||||
return $this->applyObjectTypeFilter($query);
|
||||
|
|
|
@ -61,7 +61,7 @@ class TemplateTreeRenderer extends BaseElement
|
|||
}
|
||||
|
||||
if ($level === 0) {
|
||||
$li->add( Html::tag('a', [
|
||||
$li->add(Html::tag('a', [
|
||||
'name' => 'Templates',
|
||||
'class' => 'icon-globe'
|
||||
], $tree['name']));
|
||||
|
|
Loading…
Reference in New Issue