From a2f5f90e0303af1e945aa52484cd1ce7ee81198e Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Thu, 3 Oct 2019 21:41:54 +0200 Subject: [PATCH] fixup! style(phpcs): Switch to PSR-12 --- Gruntfile.js | 2 +- classes/exceptions/EmptyUrlException.php | 1 + classes/exceptions/PasswordException.php | 1 + classes/streams/ConvertedPlaylistArchiveStream.php | 1 + classes/streams/PlaylistArchiveStream.php | 1 + classes/streams/YoutubeChunkStream.php | 1 + classes/streams/YoutubeStream.php | 3 ++- 7 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 91a7b8d..b198735 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -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'] diff --git a/classes/exceptions/EmptyUrlException.php b/classes/exceptions/EmptyUrlException.php index 232559a..a1ba771 100644 --- a/classes/exceptions/EmptyUrlException.php +++ b/classes/exceptions/EmptyUrlException.php @@ -1,4 +1,5 @@ = $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; }