fixup! style(phpcs): Switch to PSR-12

This commit is contained in:
Pierre Rudloff 2019-10-03 21:41:54 +02:00
parent 44bf858c35
commit a2f5f90e03
7 changed files with 8 additions and 2 deletions

View file

@ -27,7 +27,7 @@ module.exports = function (grunt) {
bin: 'vendor/bin/phpcs'
},
php: {
src: ['*.php', 'classes/*.php', 'controllers/*.php']
src: ['*.php', 'classes/*.php', 'classes/*/*.php', 'controllers/*.php']
},
tests: {
src: ['tests/*.php']

View file

@ -1,4 +1,5 @@
<?php
/**
* EmptyUrlException class.
*/

View file

@ -1,4 +1,5 @@
<?php
/**
* PasswordException class.
*/

View file

@ -1,4 +1,5 @@
<?php
/**
* ConvertedPlaylistArchiveStream class.
*/

View file

@ -1,4 +1,5 @@
<?php
/**
* PlaylistArchiveStream class.
*/

View file

@ -1,4 +1,5 @@
<?php
/**
* YoutubeChunkStream class.
*/

View file

@ -1,4 +1,5 @@
<?php
/**
* YoutubeStream class.
*/
@ -32,7 +33,7 @@ class YoutubeStream extends AppendStream
if ($rangeEnd >= $contentLenghtHeader[0]) {
$rangeEnd = $contentLenghtHeader[0] - 1;
}
$response = $video->getHttpResponse(['Range' => 'bytes='.$rangeStart.'-'.$rangeEnd]);
$response = $video->getHttpResponse(['Range' => 'bytes=' . $rangeStart . '-' . $rangeEnd]);
$this->addStream(new YoutubeChunkStream($response));
$rangeStart = $rangeEnd + 1;
}