style(styleci): Lint
This commit is contained in:
parent
ddc27a8a2c
commit
586f20adb4
4 changed files with 8 additions and 17 deletions
|
@ -63,7 +63,7 @@ class PlaylistArchiveStream extends TarArchive implements StreamInterface
|
||||||
/**
|
/**
|
||||||
* PlaylistArchiveStream constructor.
|
* PlaylistArchiveStream constructor.
|
||||||
*
|
*
|
||||||
* @param Config $config Config instance.
|
* @param Config $config Config instance.
|
||||||
* @param stdClass $video Video object returned by youtube-dl
|
* @param stdClass $video Video object returned by youtube-dl
|
||||||
* @param string $format Requested format
|
* @param string $format Requested format
|
||||||
*/
|
*/
|
||||||
|
@ -120,13 +120,12 @@ class PlaylistArchiveStream extends TarArchive implements StreamInterface
|
||||||
*/
|
*/
|
||||||
public function getSize()
|
public function getSize()
|
||||||
{
|
{
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns whether or not the stream is seekable.
|
* Returns whether or not the stream is seekable.
|
||||||
*
|
*
|
||||||
* @return boolean
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function isSeekable()
|
public function isSeekable()
|
||||||
{
|
{
|
||||||
|
@ -146,7 +145,7 @@ class PlaylistArchiveStream extends TarArchive implements StreamInterface
|
||||||
/**
|
/**
|
||||||
* Returns whether or not the stream is writable.
|
* Returns whether or not the stream is writable.
|
||||||
*
|
*
|
||||||
* @return boolean
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function isWritable()
|
public function isWritable()
|
||||||
{
|
{
|
||||||
|
@ -156,7 +155,7 @@ class PlaylistArchiveStream extends TarArchive implements StreamInterface
|
||||||
/**
|
/**
|
||||||
* Returns whether or not the stream is readable.
|
* Returns whether or not the stream is readable.
|
||||||
*
|
*
|
||||||
* @return boolean
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function isReadable()
|
public function isReadable()
|
||||||
{
|
{
|
||||||
|
@ -176,13 +175,12 @@ class PlaylistArchiveStream extends TarArchive implements StreamInterface
|
||||||
/**
|
/**
|
||||||
* Get stream metadata as an associative array or retrieve a specific key.
|
* Get stream metadata as an associative array or retrieve a specific key.
|
||||||
*
|
*
|
||||||
* @param string $key string $key Specific metadata to retrieve.
|
* @param string $key string $key Specific metadata to retrieve.
|
||||||
*
|
*
|
||||||
* @return null
|
* @return null
|
||||||
*/
|
*/
|
||||||
public function getMetadata($key = null)
|
public function getMetadata($key = null)
|
||||||
{
|
{
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -194,6 +192,7 @@ class PlaylistArchiveStream extends TarArchive implements StreamInterface
|
||||||
{
|
{
|
||||||
$stream = $this->buffer;
|
$stream = $this->buffer;
|
||||||
$this->close();
|
$this->close();
|
||||||
|
|
||||||
return $stream;
|
return $stream;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -214,7 +213,7 @@ class PlaylistArchiveStream extends TarArchive implements StreamInterface
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the current position of the file read/write pointer
|
* Returns the current position of the file read/write pointer.
|
||||||
*
|
*
|
||||||
* @return int|false
|
* @return int|false
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -5,12 +5,6 @@
|
||||||
|
|
||||||
namespace Alltube;
|
namespace Alltube;
|
||||||
|
|
||||||
use Barracuda\ArchiveStream\TarArchive;
|
|
||||||
use GuzzleHttp\Client;
|
|
||||||
use Psr\Http\Message\StreamInterface;
|
|
||||||
use RuntimeException;
|
|
||||||
use stdClass;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Video streamed to a PlaylistArchiveStream.
|
* Video streamed to a PlaylistArchiveStream.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -5,7 +5,6 @@ use Alltube\Config;
|
||||||
use Alltube\Controller\FrontController;
|
use Alltube\Controller\FrontController;
|
||||||
use Alltube\LocaleManager;
|
use Alltube\LocaleManager;
|
||||||
use Alltube\LocaleMiddleware;
|
use Alltube\LocaleMiddleware;
|
||||||
use Alltube\PlaylistArchiveStream;
|
|
||||||
use Alltube\UglyRouter;
|
use Alltube\UglyRouter;
|
||||||
use Alltube\ViewFactory;
|
use Alltube\ViewFactory;
|
||||||
use Slim\App;
|
use Slim\App;
|
||||||
|
|
|
@ -8,8 +8,8 @@ namespace Alltube\Test;
|
||||||
use Alltube\Config;
|
use Alltube\Config;
|
||||||
use Alltube\PlaylistArchiveStream;
|
use Alltube\PlaylistArchiveStream;
|
||||||
use PHPUnit\Framework\TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
use stdClass;
|
|
||||||
use RuntimeException;
|
use RuntimeException;
|
||||||
|
use stdClass;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unit tests for the ViewFactory class.
|
* Unit tests for the ViewFactory class.
|
||||||
|
@ -64,7 +64,6 @@ class PlaylistArchiveStreamTest extends TestCase
|
||||||
$this->stream->write('foo');
|
$this->stream->write('foo');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test the tell() function.
|
* Test the tell() function.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue