Merge pull request #78 from Rudloff/analysis-qx7vWN

Applied fixes from StyleCI
This commit is contained in:
Pierre Rudloff 2016-10-20 23:05:46 +02:00 committed by GitHub
commit 75ddf27a95
3 changed files with 9 additions and 9 deletions

View file

@ -1,13 +1,12 @@
<?php <?php
/** /**
* PasswordException class * PasswordException class.
*/ */
namespace Alltube; namespace Alltube;
/** /**
* Exception thrown when a video requires a password * Exception thrown when a video requires a password.
*/ */
class PasswordException extends \Exception class PasswordException extends \Exception
{ {
} }

View file

@ -5,8 +5,8 @@
namespace Alltube\Controller; namespace Alltube\Controller;
use Alltube\Config; use Alltube\Config;
use Alltube\VideoDownload;
use Alltube\PasswordException; use Alltube\PasswordException;
use Alltube\VideoDownload;
use Interop\Container\ContainerInterface; use Interop\Container\ContainerInterface;
use Slim\Container; use Slim\Container;
use Slim\Http\Request; use Slim\Http\Request;
@ -49,7 +49,7 @@ class FrontController
$this->config = Config::getInstance(); $this->config = Config::getInstance();
$this->download = new VideoDownload(); $this->download = new VideoDownload();
$this->container = $container; $this->container = $container;
$session_factory = new \Aura\Session\SessionFactory; $session_factory = new \Aura\Session\SessionFactory();
$session = $session_factory->newInstance($_COOKIE); $session = $session_factory->newInstance($_COOKIE);
$this->sessionSegment = $session->getSegment('Alltube\Controller\FrontController'); $this->sessionSegment = $session->getSegment('Alltube\Controller\FrontController');
} }
@ -103,9 +103,10 @@ class FrontController
} }
/** /**
* Display a password prompt * Display a password prompt.
* @param Request $request PSR-7 request *
* @param Response $response PSR-7 response * @param Request $request PSR-7 request
* @param Response $response PSR-7 response
* *
* @return Response HTTP response * @return Response HTTP response
*/ */

View file

@ -90,7 +90,7 @@ class VideoDownloadTest extends \PHPUnit_Framework_TestCase
} }
/** /**
* Test getURL function with a protected video * Test getURL function with a protected video.
* *
* @return void * @return void
*/ */