Update to PHP 7.2 compatibility
This commit is contained in:
parent
4500fe78e1
commit
cdec4580a2
@ -12,7 +12,11 @@ class Filesystem {
|
||||
}
|
||||
|
||||
if($sortByDate) {
|
||||
usort($directories, create_function('$a,$b', 'return filemtime($b) - filemtime($a);'));
|
||||
usort($directories,
|
||||
function($a, $b) {
|
||||
return filemtime($b) - filemtime($a);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
return $directories;
|
||||
@ -27,7 +31,11 @@ class Filesystem {
|
||||
}
|
||||
|
||||
if ($sortByDate) {
|
||||
usort($files, create_function('$a,$b', 'return filemtime($b) - filemtime($a);'));
|
||||
usort($files,
|
||||
function($a, $b) {
|
||||
return filemtime($b) - filemtime($a);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
return $files;
|
||||
@ -179,4 +187,4 @@ class Filesystem {
|
||||
$zip->extractTo($destination);
|
||||
return $zip->close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user