Conform to coding guidelines

This commit is contained in:
Matthias Jentsch 2015-05-04 17:02:14 +02:00
parent 1586275521
commit 3187975553
3 changed files with 29 additions and 25 deletions

View File

@ -70,8 +70,7 @@ class Monitoring_DowntimesController extends Controller
);
}
$this->getTabs()
->add(
$this->getTabs()->add(
'downtimes',
array(
'title' => $this->translate(
@ -81,7 +80,7 @@ class Monitoring_DowntimesController extends Controller
'label' => $this->translate('Downtimes'),
'url' =>'monitoring/downtimes/show'
)
)->activate('downtimes')->extend(new DashboardAction());
)->activate('downtimes');
foreach ($this->downtimes as $downtime) {
if (isset($downtime->service_description)) {

View File

@ -12,6 +12,11 @@ use Icinga\Web\Notification;
*/
class DeleteDowntimesCommandForm extends CommandForm
{
/**
* The downtimes to delete on success
*
* @var array
*/
protected $downtimes;
/**