From b4be0ead6a6399451cd8f904dae6a0c1ea2419d8 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Tue, 25 Apr 2017 00:41:49 +0200 Subject: [PATCH] Lint --- classes/VideoDownload.php | 3 ++- tests/FrontControllerTest.php | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/classes/VideoDownload.php b/classes/VideoDownload.php index a6b8873..7e8dcdc 100644 --- a/classes/VideoDownload.php +++ b/classes/VideoDownload.php @@ -149,7 +149,7 @@ class VideoDownload } /** - * Get filename of video with the specified extension + * Get filename of video with the specified extension. * * @param string $extension New file extension * @param string $url URL of page @@ -348,6 +348,7 @@ class VideoDownload 'pipe:1', ] ); + return popen($procBuilder->getProcess()->getCommandLine(), 'r'); } diff --git a/tests/FrontControllerTest.php b/tests/FrontControllerTest.php index c964463..d2dce25 100644 --- a/tests/FrontControllerTest.php +++ b/tests/FrontControllerTest.php @@ -372,8 +372,8 @@ class FrontControllerTest extends \PHPUnit_Framework_TestCase $result = $controller->redirect( $this->request->withQueryParams( [ - 'url'=>'https://www.youtube.com/watch?v=M7IpKCZ47pU', - 'format'=>'bestvideo+bestaudio' + 'url' => 'https://www.youtube.com/watch?v=M7IpKCZ47pU', + 'format'=> 'bestvideo+bestaudio', ] ), $this->response @@ -391,8 +391,8 @@ class FrontControllerTest extends \PHPUnit_Framework_TestCase $result = $this->controller->redirect( $this->request->withQueryParams( [ - 'url'=>'https://www.youtube.com/watch?v=M7IpKCZ47pU', - 'format'=>'bestvideo+bestaudio' + 'url' => 'https://www.youtube.com/watch?v=M7IpKCZ47pU', + 'format'=> 'bestvideo+bestaudio', ] ), $this->response