diff --git a/resources/views/themes/default1/admin/helpdesk/setting.blade.php b/resources/views/themes/default1/admin/helpdesk/setting.blade.php index 8b92e02b8..b3bde077e 100644 --- a/resources/views/themes/default1/admin/helpdesk/setting.blade.php +++ b/resources/views/themes/default1/admin/helpdesk/setting.blade.php @@ -665,7 +665,7 @@ - + @stop diff --git a/resources/views/themes/default1/admin/layout/admin.blade.php b/resources/views/themes/default1/admin/layout/admin.blade.php index a5347b3c1..91cc33a37 100644 --- a/resources/views/themes/default1/admin/layout/admin.blade.php +++ b/resources/views/themes/default1/admin/layout/admin.blade.php @@ -96,14 +96,14 @@ @else - + @endif @@ -691,7 +691,7 @@ @endif - + diff --git a/resources/views/themes/default1/agent/helpdesk/organization/getautocomplete.blade.php b/resources/views/themes/default1/agent/helpdesk/organization/getautocomplete.blade.php index 540bed9c1..c328785da 100644 --- a/resources/views/themes/default1/agent/helpdesk/organization/getautocomplete.blade.php +++ b/resources/views/themes/default1/agent/helpdesk/organization/getautocomplete.blade.php @@ -2,18 +2,18 @@ $term = $_GET["term"]; $organizations =App\Model\helpdesk\Agent_panel\Organization::where('name', 'LIKE', '%' . $term . '%')->get(); -$json = array(); +$json = []; foreach ($organizations as $organization) { - $json[] = array( + $json[] = [ 'value' => $organization["name"], 'label' => $organization["name"], 'org' => $organization["name"], - ); + ]; } echo json_encode($json); \ No newline at end of file diff --git a/resources/views/themes/default1/agent/helpdesk/ticket/getautocomplete.blade.php b/resources/views/themes/default1/agent/helpdesk/ticket/getautocomplete.blade.php index d11add06d..68fe4fc01 100644 --- a/resources/views/themes/default1/agent/helpdesk/ticket/getautocomplete.blade.php +++ b/resources/views/themes/default1/agent/helpdesk/ticket/getautocomplete.blade.php @@ -2,11 +2,11 @@ $term = $_GET["term"]; $users = app\User::where('email', 'LIKE', '%' . $term . '%')->where('active', '=', 1)->where('role', '=', 'user')->get(); -$json = array(); +$json = []; foreach ($users as $user) { - $json[] = array( + $json[] = [ 'value' => $user["email"], 'label' => 'Name: '.$user["first_name"] .' '.$user["last_name"].' | '.('Email: <'.$user["email"].'>'), 'email' => $user["email"], @@ -17,7 +17,7 @@ foreach ($users as $user) { 'mobile' => $user["mobile"], 'phone_number' => $user["phone_number"] - ); + ]; } echo json_encode($json); diff --git a/resources/views/themes/default1/agent/helpdesk/ticket/inbox.blade.php b/resources/views/themes/default1/agent/helpdesk/ticket/inbox.blade.php index c39017468..812b436cb 100644 --- a/resources/views/themes/default1/agent/helpdesk/ticket/inbox.blade.php +++ b/resources/views/themes/default1/agent/helpdesk/ticket/inbox.blade.php @@ -52,9 +52,9 @@ class="nav-link active" $date_time_format = UTC::getDateTimeFormat(); if (Auth::user()->role == 'agent') { $dept = App\Model\helpdesk\Agent\Department::where('id', '=', Auth::user()->primary_dpt)->first(); - $tickets = App\Model\helpdesk\Ticket\Tickets::whereIn('status', array(1, 7))->where('dept_id', '=', $dept->id)->orderBy('id', 'DESC')->count(); + $tickets = App\Model\helpdesk\Ticket\Tickets::whereIn('status', [1, 7])->where('dept_id', '=', $dept->id)->orderBy('id', 'DESC')->count(); } else { - $tickets = App\Model\helpdesk\Ticket\Tickets::whereIn('status', array(1, 7))->orderBy('id', 'DESC')->count(); + $tickets = App\Model\helpdesk\Ticket\Tickets::whereIn('status', [1, 7])->orderBy('id', 'DESC')->count(); } ?> diff --git a/resources/views/themes/default1/agent/helpdesk/ticket/timeline.blade.php b/resources/views/themes/default1/agent/helpdesk/ticket/timeline.blade.php index 686acd1ef..bb5dab32d 100755 --- a/resources/views/themes/default1/agent/helpdesk/ticket/timeline.blade.php +++ b/resources/views/themes/default1/agent/helpdesk/ticket/timeline.blade.php @@ -149,7 +149,7 @@ if ($thread->title != "") { @endif - + {!! Lang::get('lang.generate_pdf') !!}
@@ -311,7 +311,7 @@ if ($thread->title != "") {
- + @@ -1072,7 +1072,7 @@ if ($thread->title != "") { - $tickets->id))?> + $tickets->id])?> @@ -806,8 +806,8 @@ - - + + @yield('FooterInclude') diff --git a/resources/views/themes/default1/agent/layout/agentold.blade.php b/resources/views/themes/default1/agent/layout/agentold.blade.php index 938ede37a..f1c006a00 100755 --- a/resources/views/themes/default1/agent/layout/agentold.blade.php +++ b/resources/views/themes/default1/agent/layout/agentold.blade.php @@ -66,7 +66,7 @@ } $replacetop = 0; - $replacetop = \Event::fire('service.desk.agent.topbar.replace', array()); + $replacetop = \Event::fire('service.desk.agent.topbar.replace', []); if (count($replacetop) == 0) { $replacetop = 0; @@ -74,7 +74,7 @@ $replacetop = $replacetop[0]; } $replaceside = 0; - $replaceside = \Event::fire('service.desk.agent.sidebar.replace', array()); + $replaceside = \Event::fire('service.desk.agent.sidebar.replace', []); if (count($replaceside) == 0) { $replaceside = 0; @@ -105,10 +105,10 @@ @if(Auth::user()->role == 'admin')
  • {!! Lang::get('lang.report') !!}
  • @endif - + @else - + @endif id)->where('is_read', '0')->get(); ?> @@ -444,7 +444,7 @@ @endif @endif - + @@ -613,8 +613,8 @@ }); --> - - + + @yield('FooterInclude') diff --git a/resources/views/themes/default1/client/helpdesk/ckeckticket.blade.php b/resources/views/themes/default1/client/helpdesk/ckeckticket.blade.php index 37ad9bc8b..4be2d54bf 100755 --- a/resources/views/themes/default1/client/helpdesk/ckeckticket.blade.php +++ b/resources/views/themes/default1/client/helpdesk/ckeckticket.blade.php @@ -410,17 +410,17 @@ $thread = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', \Cryp size; - $units = array('B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'); + $units = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']; $power = $size > 0 ? floor(log($size, 1024)) : 0; $value = number_format($size / pow(1024, $power), 2, '.', ',') . ' ' . $units[$power]; if ($attachment->poster == 'ATTACHMENT') { if (mime($attachment->type) == true) { - $var = ''; + $var = ''; echo '
  • ' . $var . '
    ' . $attachment->name . '' . $value . '
  • '; } else { //$var = ''; - $var = '' . strtoupper($attachment->type) . '
    ' . $attachment->name . '' . $value . '
    '; + $var = '' . strtoupper($attachment->type) . '
    ' . $attachment->name . '' . $value . '
    '; echo '
  • ' . $var . '
  • '; } diff --git a/resources/views/themes/default1/client/helpdesk/ckeckticket2.blade.php b/resources/views/themes/default1/client/helpdesk/ckeckticket2.blade.php index f957bbed7..bb205ee23 100644 --- a/resources/views/themes/default1/client/helpdesk/ckeckticket2.blade.php +++ b/resources/views/themes/default1/client/helpdesk/ckeckticket2.blade.php @@ -289,7 +289,7 @@ foreach ($conversations as $conversation) { { $size = $attachment->size; - $units = array( 'B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'); + $units = [ 'B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']; $power = $size > 0 ? floor(log($size, 1024)) : 0; $value = number_format($size / pow(1024, $power), 2, '.', ',') . ' ' . $units[$power]; @@ -303,14 +303,14 @@ foreach ($conversations as $conversation) { imagejpeg($image, null, 80); $data = ob_get_contents(); ob_end_clean(); - $var = ''; + $var = ''; echo '
  • '.$var.'
    '.$attachment->name.'

    '.$value.'

  • '; } else { - $var = ''.strtoupper($attachment->type).'
    '.$attachment->name.'

    '.$value.'

    '; + $var = ''.strtoupper($attachment->type).'
    '.$attachment->name.'

    '.$value.'

    '; echo '
  • '.$var.'
  • '; } } diff --git a/resources/views/themes/default1/client/helpdesk/ckeckticketOld.blade.php b/resources/views/themes/default1/client/helpdesk/ckeckticketOld.blade.php index 983dfc2ca..9af8aba8f 100644 --- a/resources/views/themes/default1/client/helpdesk/ckeckticketOld.blade.php +++ b/resources/views/themes/default1/client/helpdesk/ckeckticketOld.blade.php @@ -294,7 +294,7 @@ foreach ($conversations as $conversation) { size; - $units = array('B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'); + $units = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']; $power = $size > 0 ? floor(log($size, 1024)) : 0; $value = number_format($size / pow(1024, $power), 2, '.', ',') . ' ' . $units[$power]; if ($attachment->poster == 'ATTACHMENT') { @@ -304,10 +304,10 @@ foreach ($conversations as $conversation) { imagejpeg($image, null, 80); $data = ob_get_contents(); ob_end_clean(); - $var = ''; + $var = ''; echo '
  • ' . $var . '
    ' . $attachment->name . '

    ' . $value . '

  • '; } else { - $var = '' . strtoupper($attachment->type) . '
    ' . $attachment->name . '

    ' . $value . '

    '; + $var = '' . strtoupper($attachment->type) . '
    ' . $attachment->name . '

    ' . $value . '

    '; echo '
  • ' . $var . '
  • '; } } diff --git a/resources/views/themes/default1/client/helpdesk/guest-user/view_ticket.blade.php b/resources/views/themes/default1/client/helpdesk/guest-user/view_ticket.blade.php index 9e1fff494..67128af58 100755 --- a/resources/views/themes/default1/client/helpdesk/guest-user/view_ticket.blade.php +++ b/resources/views/themes/default1/client/helpdesk/guest-user/view_ticket.blade.php @@ -565,12 +565,12 @@ $data = $ConvDate[0]; imagejpeg($image, null, 80); $data = ob_get_contents(); ob_end_clean(); - $var = ''; + $var = ''; echo '
  • '.$var.'
  • '; } else { - $var = ''.$attachment->name.''; + $var = ''.$attachment->name.''; echo '
  • '.$var.'
  • '; } } diff --git a/resources/views/themes/default1/client/helpdesk/ticket.blade.php b/resources/views/themes/default1/client/helpdesk/ticket.blade.php index 3cd3a35ce..14128bf3f 100755 --- a/resources/views/themes/default1/client/helpdesk/ticket.blade.php +++ b/resources/views/themes/default1/client/helpdesk/ticket.blade.php @@ -520,7 +520,7 @@ $data = $ConvDate[0]; { $size = $attachment->size; - $units = array( 'B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'); + $units = [ 'B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']; $power = $size > 0 ? floor(log($size, 1024)) : 0; $value = number_format($size / pow(1024, $power), 2, '.', ',') . ' ' . $units[$power]; @@ -534,14 +534,14 @@ $data = $ConvDate[0]; imagejpeg($image, null, 80); $data = ob_get_contents(); ob_end_clean(); - $var = ''; + $var = ''; echo '
  • '.$var.'
    '.$attachment->name.'

    '.$value.'

  • '; } else { - $var = ''.strtoupper($attachment->type).'
    '.$attachment->name.'

    '.$value.'

    '; + $var = ''.strtoupper($attachment->type).'
    '.$attachment->name.'

    '.$value.'

    '; echo '
  • '.$var.'
  • '; } } diff --git a/resources/views/themes/default1/client/helpdesk/unauth/showticket.blade.php b/resources/views/themes/default1/client/helpdesk/unauth/showticket.blade.php index 19edea762..836e898bc 100755 --- a/resources/views/themes/default1/client/helpdesk/unauth/showticket.blade.php +++ b/resources/views/themes/default1/client/helpdesk/unauth/showticket.blade.php @@ -303,7 +303,7 @@ foreach ($conversations as $conversation) { size; - $units = array('B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'); + $units = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']; $power = $size > 0 ? floor(log($size, 1024)) : 0; $value = number_format($size / pow(1024, $power), 2, '.', ',') . ' ' . $units[$power]; if ($attachment->poster == 'ATTACHMENT') { @@ -313,10 +313,10 @@ foreach ($conversations as $conversation) { imagejpeg($image, null, 80); $data = ob_get_contents(); ob_end_clean(); - $var = ''; + $var = ''; echo '
  • ' . $var . '
    ' . $attachment->name . '

    ' . $value . '

  • '; } else { - $var = '' . strtoupper($attachment->type) . '
    ' . $attachment->name . '

    ' . $value . '

    '; + $var = '' . strtoupper($attachment->type) . '
    ' . $attachment->name . '

    ' . $value . '

    '; echo '
  • ' . $var . '
  • '; } } diff --git a/resources/views/themes/default1/installer/helpdesk/view2.blade.php b/resources/views/themes/default1/installer/helpdesk/view2.blade.php index e9776e290..95742645c 100644 --- a/resources/views/themes/default1/installer/helpdesk/view2.blade.php +++ b/resources/views/themes/default1/installer/helpdesk/view2.blade.php @@ -143,12 +143,12 @@ function validate_memory_limit(&$results) { * @return string */ function format_file_size($value) { - $data = array( + $data = [ 'TB' => 1099511627776, 'GB' => 1073741824, 'MB' => 1048576, 'kb' => 1024, - ); + ]; // commented because of integer overflow on 32bit sistems // http://php.net/manual/en/language.types.integer.php#language.types.integer.overflow @@ -206,7 +206,7 @@ function validate_extensions(&$results) { $ok = false; } // if - $recommended_extensions = array( + $recommended_extensions = [ // 'imap' => 'IMAP extension is used for connecting to mail server using IMAP settings to fetch emails in the system.', // 'mcrypt' => 'Optional extension', // 'gd' => 'GD is used for image manipulation. Without it, system is not able to create thumbnails for files or manage avatars, logos and project icons. Please refer to this page for installation instructions', @@ -216,7 +216,7 @@ function validate_extensions(&$results) { // 'imap' => 'IMAP is used to connect to POP3 and IMAP servers. Without it, Incoming Mail module will not work. Please refer to this page for installation instructions', // 'zlib' => 'ZLIB is used to read and write gzip (.gz) compressed files', // SVN extension ommited, to avoid confusion - ); + ]; foreach ($recommended_extensions as $recommended_extension => $recommended_extension_desc) { if (extension_loaded($recommended_extension)) { @@ -268,7 +268,7 @@ function checkMaxExecutiontime(&$results) // Do the magic // --------------------------------------------------- -$results = array(); +$results = []; $php_ok = validate_php($results); $memory_ok = validate_memory_limit($results); diff --git a/resources/views/themes/default1/installer/helpdesk/view4.blade.php b/resources/views/themes/default1/installer/helpdesk/view4.blade.php index b0b437e01..1208bd238 100644 --- a/resources/views/themes/default1/installer/helpdesk/view4.blade.php +++ b/resources/views/themes/default1/installer/helpdesk/view4.blade.php @@ -59,7 +59,7 @@ if (DB_HOST && DB_USER && DB_NAME) { ?>