Applied fixes from StyleCI
This commit is contained in:
parent
e34b01f2c4
commit
57a0424b6f
3 changed files with 9 additions and 9 deletions
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue