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' 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']

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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;
} }