diff options
author | Umherirrender <umherirrender_de.wp@web.de> | 2019-10-11 21:07:32 +0200 |
---|---|---|
committer | Umherirrender <umherirrender_de.wp@web.de> | 2019-11-16 22:54:17 +0000 |
commit | b4fe9c4bcc5e82c100bfd775f26eb6b7cd2968bb (patch) | |
tree | 5a7ef996d9361d3af24925cbcf69ae25ac0a2e86 /maintenance/includes/SevenZipStream.php | |
parent | 52d9ddc4f21a56cd08083d8cbf3a2da651906ee6 (diff) | |
download | mediawikicore-b4fe9c4bcc5e82c100bfd775f26eb6b7cd2968bb.tar.gz mediawikicore-b4fe9c4bcc5e82c100bfd775f26eb6b7cd2968bb.zip |
Set method visibility on maintenance scripts
Change-Id: I44c82fbe65e1d002803ce065df6563f06dd39cd4
Diffstat (limited to 'maintenance/includes/SevenZipStream.php')
-rw-r--r-- | maintenance/includes/SevenZipStream.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/maintenance/includes/SevenZipStream.php b/maintenance/includes/SevenZipStream.php index 6a763f2e1b6e..6d874512e31a 100644 --- a/maintenance/includes/SevenZipStream.php +++ b/maintenance/includes/SevenZipStream.php @@ -42,7 +42,7 @@ class SevenZipStream { return substr( $path, strlen( $prefix ) ); } - function stream_open( $path, $mode, $options, &$opened_path ) { + public function stream_open( $path, $mode, $options, &$opened_path ) { if ( $mode[0] == 'r' ) { $options = 'e -bd -so'; } elseif ( $mode[0] == 'w' ) { @@ -60,37 +60,37 @@ class SevenZipStream { return ( $this->stream !== false ); } - function url_stat( $path, $flags ) { + public function url_stat( $path, $flags ) { return stat( $this->stripPath( $path ) ); } // This is all so lame; there should be a default class we can extend - function stream_close() { + public function stream_close() { return fclose( $this->stream ); } - function stream_flush() { + public function stream_flush() { return fflush( $this->stream ); } - function stream_read( $count ) { + public function stream_read( $count ) { return fread( $this->stream, $count ); } - function stream_write( $data ) { + public function stream_write( $data ) { return fwrite( $this->stream, $data ); } - function stream_tell() { + public function stream_tell() { return ftell( $this->stream ); } - function stream_eof() { + public function stream_eof() { return feof( $this->stream ); } - function stream_seek( $offset, $whence ) { + public function stream_seek( $offset, $whence ) { return fseek( $this->stream, $offset, $whence ); } } |