Add void return types
This commit is contained in:
parent
e3187a7258
commit
e81b8c75a8
6 changed files with 16 additions and 16 deletions
|
@ -23,7 +23,7 @@ class ConvertedPlaylistArchiveStream extends PlaylistArchiveStream
|
|||
* @return void
|
||||
* @throws AlltubeLibraryException
|
||||
*/
|
||||
protected function startVideoStream(Video $video)
|
||||
protected function startVideoStream(Video $video): void
|
||||
{
|
||||
$this->curVideoStream = new Stream($this->downloader->getAudioStream($video));
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -63,7 +63,7 @@ class YoutubeChunkStream implements StreamInterface
|
|||
*
|
||||
* @return void
|
||||
*/
|
||||
public function close()
|
||||
public function close(): void
|
||||
{
|
||||
$this->response->getBody()->close();
|
||||
}
|
||||
|
@ -126,7 +126,7 @@ class YoutubeChunkStream implements StreamInterface
|
|||
*
|
||||
* @return void
|
||||
*/
|
||||
public function seek($offset, $whence = SEEK_SET)
|
||||
public function seek($offset, $whence = SEEK_SET): void
|
||||
{
|
||||
$this->response->getBody()->seek($offset, $whence);
|
||||
}
|
||||
|
@ -136,7 +136,7 @@ class YoutubeChunkStream implements StreamInterface
|
|||
*
|
||||
* @return void
|
||||
*/
|
||||
public function rewind()
|
||||
public function rewind(): void
|
||||
{
|
||||
$this->response->getBody()->rewind();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue