Applied fixes from StyleCI

This commit is contained in:
Pierre Rudloff 2016-10-20 21:03:13 +00:00 committed by StyleCI Bot
parent e34b01f2c4
commit 57a0424b6f
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,7 +103,8 @@ class FrontController
} }
/** /**
* Display a password prompt * Display a password prompt.
*
* @param Request $request PSR-7 request * @param Request $request PSR-7 request
* @param Response $response PSR-7 response * @param Response $response PSR-7 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
*/ */