fixup! style(phpcs): Switch to PSR-12
This commit is contained in:
parent
44bf858c35
commit
a2f5f90e03
7 changed files with 8 additions and 2 deletions
|
@ -27,7 +27,7 @@ module.exports = function (grunt) {
|
||||||
bin: 'vendor/bin/phpcs'
|
bin: 'vendor/bin/phpcs'
|
||||||
},
|
},
|
||||||
php: {
|
php: {
|
||||||
src: ['*.php', 'classes/*.php', 'controllers/*.php']
|
src: ['*.php', 'classes/*.php', 'classes/*/*.php', 'controllers/*.php']
|
||||||
},
|
},
|
||||||
tests: {
|
tests: {
|
||||||
src: ['tests/*.php']
|
src: ['tests/*.php']
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* EmptyUrlException class.
|
* EmptyUrlException class.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PasswordException class.
|
* PasswordException class.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ConvertedPlaylistArchiveStream class.
|
* ConvertedPlaylistArchiveStream class.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PlaylistArchiveStream class.
|
* PlaylistArchiveStream class.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* YoutubeChunkStream class.
|
* YoutubeChunkStream class.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* YoutubeStream class.
|
* YoutubeStream class.
|
||||||
*/
|
*/
|
||||||
|
@ -32,7 +33,7 @@ class YoutubeStream extends AppendStream
|
||||||
if ($rangeEnd >= $contentLenghtHeader[0]) {
|
if ($rangeEnd >= $contentLenghtHeader[0]) {
|
||||||
$rangeEnd = $contentLenghtHeader[0] - 1;
|
$rangeEnd = $contentLenghtHeader[0] - 1;
|
||||||
}
|
}
|
||||||
$response = $video->getHttpResponse(['Range' => 'bytes='.$rangeStart.'-'.$rangeEnd]);
|
$response = $video->getHttpResponse(['Range' => 'bytes=' . $rangeStart . '-' . $rangeEnd]);
|
||||||
$this->addStream(new YoutubeChunkStream($response));
|
$this->addStream(new YoutubeChunkStream($response));
|
||||||
$rangeStart = $rangeEnd + 1;
|
$rangeStart = $rangeEnd + 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue