Adopt short array syntax

Since PHP 5.4 the short array syntax `[]` may be used instead of `array()`.
This commit is contained in:
Shift
2023-01-03 08:25:32 +00:00
parent 43386fd86d
commit f9ab4d057e
17 changed files with 62 additions and 62 deletions

View File

@@ -1368,8 +1368,8 @@ class="nav-link active"
<div class="modal-body">
<?php
$groups = App\Model\helpdesk\Agent\Groups::all(array('id', 'name'));
$departments = App\Model\helpdesk\Agent\Department::all(array('id', 'name'));
$groups = App\Model\helpdesk\Agent\Groups::all(['id', 'name']);
$departments = App\Model\helpdesk\Agent\Department::all(['id', 'name']);
?>
<!-- <div class="col-sm-4 form-group {{ $errors->has('group') ? 'has-error' : '' }}"> -->
@@ -1440,8 +1440,8 @@ class="nav-link active"
<div class="modal-body">
<?php
$groups = App\Model\helpdesk\Agent\Groups::all(array('id', 'name'));
$departments = App\Model\helpdesk\Agent\Department::all(array('id', 'name'));
$groups = App\Model\helpdesk\Agent\Groups::all(['id', 'name']);
$departments = App\Model\helpdesk\Agent\Department::all(['id', 'name']);
?>
<!-- <div class="col-sm-4 form-group {{ $errors->has('group') ? 'has-error' : '' }}"> -->