diff options
Diffstat (limited to 'app/controllers/admin')
| -rw-r--r-- | app/controllers/admin/banner.php | 2 | ||||
| -rw-r--r-- | app/controllers/admin/cronjobs/schedules.php | 2 | ||||
| -rw-r--r-- | app/controllers/admin/login_style.php | 4 | ||||
| -rw-r--r-- | app/controllers/admin/specification.php | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/app/controllers/admin/banner.php b/app/controllers/admin/banner.php index abc88ba..a3a7210 100644 --- a/app/controllers/admin/banner.php +++ b/app/controllers/admin/banner.php @@ -88,7 +88,7 @@ class Admin_BannerController extends AuthenticatedController * * @param Banner $banner Banner object */ - public function edit_action(Banner $banner = null) + public function edit_action(?Banner $banner = null) { if ($banner->isNew()) { PageLayout::setTitle(_('Neues Banner anlegen')); diff --git a/app/controllers/admin/cronjobs/schedules.php b/app/controllers/admin/cronjobs/schedules.php index 929ae29..ba275a8 100644 --- a/app/controllers/admin/cronjobs/schedules.php +++ b/app/controllers/admin/cronjobs/schedules.php @@ -122,7 +122,7 @@ class Admin_Cronjobs_SchedulesController extends AuthenticatedController * * @param String $id Id of the schedule in question (null to create) */ - public function edit_action(CronjobSchedule $schedule = null) + public function edit_action(?CronjobSchedule $schedule = null) { if (Request::submitted('store')) { $parameters = Request::getArray('parameters'); diff --git a/app/controllers/admin/login_style.php b/app/controllers/admin/login_style.php index a5a6df4..18d5166 100644 --- a/app/controllers/admin/login_style.php +++ b/app/controllers/admin/login_style.php @@ -166,14 +166,14 @@ class Admin_LoginStyleController extends AuthenticatedController $this->faq_entries = LoginFaq::findBySql('1'); } - public function edit_faq_action(LoginFaq $entry = null) + public function edit_faq_action(?LoginFaq $entry = null) { PageLayout::setTitle( $entry->isNew() ? _('Hinweistext hinzufügen') : _('Hinweistext bearbeiten') ); } - public function store_faq_action(LoginFaq $entry = null) + public function store_faq_action(?LoginFaq $entry = null) { CSRFProtection::verifyUnsafeRequest(); diff --git a/app/controllers/admin/specification.php b/app/controllers/admin/specification.php index 819d59b..7371177 100644 --- a/app/controllers/admin/specification.php +++ b/app/controllers/admin/specification.php @@ -56,7 +56,7 @@ class Admin_SpecificationController extends AuthenticatedController * Edit or create a rule * @property AuxLockRule $rule */ - public function edit_action(AuxLockRule $rule = null) + public function edit_action(?AuxLockRule $rule = null) { $rule->name = Request::i18n('name', $rule->name); $rule->description = Request::i18n('description', $rule->description); @@ -90,7 +90,7 @@ class Admin_SpecificationController extends AuthenticatedController * Store or edit Rule * @param string $id */ - public function store_action(AuxLockRule $rule = null) + public function store_action(?AuxLockRule $rule = null) { CSRFProtection::verifyUnsafeRequest(); |
