Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3720532

Browse files
committedSep 20, 2023
MDL-79422 ajax: Update service.php for coding style
1 parent 7f569fc commit 3720532

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎lib/ajax/service.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
$lasterror = json_last_error_msg();
6565
throw new coding_exception('Invalid json in request: ' . $lasterror);
6666
}
67-
$responses = array();
67+
$responses = [];
6868

6969
// Defines the external settings required for Ajax processing.
7070
$settings = external_settings::get_instance();
@@ -75,7 +75,7 @@
7575

7676
$haserror = false;
7777
foreach ($requests as $request) {
78-
$response = array();
78+
$response = [];
7979
$methodname = clean_param($request['methodname'], PARAM_ALPHANUMEXT);
8080
$index = clean_param($request['index'], PARAM_INT);
8181
$args = $request['args'];
@@ -109,7 +109,7 @@
109109
// 90 days only - based on Moodle point release cadence being every 3 months.
110110
$lifetime = 60 * 60 * 24 * 90;
111111

112-
header('Expires: '. gmdate('D, d M Y H:i:s', time() + $lifetime) .' GMT');
112+
header('Expires: ' . gmdate('D, d M Y H:i:s', time() + $lifetime) . ' GMT');
113113
header('Pragma: ');
114114
header('Cache-Control: public, max-age=' . $lifetime . ', immutable');
115115
header('Accept-Ranges: none');

0 commit comments

Comments
 (0)
Please sign in to comment.