Add void return types

This commit is contained in:
Pierre Rudloff 2022-05-28 23:43:07 +02:00
parent e3187a7258
commit e81b8c75a8
6 changed files with 16 additions and 16 deletions

View file

@ -83,7 +83,7 @@ class PlaylistArchiveStream extends ZipArchive implements StreamInterface
*
* @return void
*/
protected function send($data)
protected function send($data): void
{
$pos = $this->tell();
@ -133,7 +133,7 @@ class PlaylistArchiveStream extends ZipArchive implements StreamInterface
*
* @return void
*/
public function rewind()
public function rewind(): void
{
rewind($this->buffer);
}
@ -233,7 +233,7 @@ class PlaylistArchiveStream extends ZipArchive implements StreamInterface
*
* @return void
*/
public function seek($offset, $whence = SEEK_SET)
public function seek($offset, $whence = SEEK_SET): void
{
fseek($this->buffer, $offset, $whence);
}
@ -256,7 +256,7 @@ class PlaylistArchiveStream extends ZipArchive implements StreamInterface
* @return void
* @throws AlltubeLibraryException
*/
protected function startVideoStream(Video $video)
protected function startVideoStream(Video $video): void
{
$response = $this->downloader->getHttpResponse($video);
@ -320,7 +320,7 @@ class PlaylistArchiveStream extends ZipArchive implements StreamInterface
*
* @return void
*/
public function close()
public function close(): void
{
if (is_resource($this->buffer)) {
fclose($this->buffer);