X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=blobdiff_plain;f=includes%2FStreamFile.php;h=8d0b8f17275f8ea28ff99d578f487f6c5d526339;hb=5d8bb490803a45f69f8d289abe4b9eb6a118db83;hp=3f73ae3ccd459eb399138e8788bb70daac692c48;hpb=9f5b6f5aeb292df1651666a6558e2ff1c74c565d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/StreamFile.php b/includes/StreamFile.php index 3f73ae3ccd..8d0b8f1727 100644 --- a/includes/StreamFile.php +++ b/includes/StreamFile.php @@ -38,7 +38,7 @@ class StreamFile { * @throws MWException * @return bool Success */ - public static function stream( $fname, $headers = array(), $sendErrors = true ) { + public static function stream( $fname, $headers = [], $sendErrors = true ) { if ( FileBackend::isStoragePath( $fname ) ) { // sanity throw new MWException( __FUNCTION__ . " given storage path '$fname'." ); @@ -74,7 +74,7 @@ class StreamFile { * @return int|bool READY_STREAM, NOT_MODIFIED, or false on failure */ public static function prepareForStream( - $path, $info, $headers = array(), $sendErrors = true + $path, $info, $headers = [], $sendErrors = true ) { if ( !is_array( $info ) ) { if ( $sendErrors ) {