style(styleci): Lint
This commit is contained in:
parent
1387d836dc
commit
bba2087a55
8 changed files with 2 additions and 30 deletions
|
@ -13,7 +13,6 @@ use Aura\Session\SessionFactory;
|
||||||
*/
|
*/
|
||||||
class SessionManager
|
class SessionManager
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Current session.
|
* Current session.
|
||||||
*
|
*
|
||||||
|
@ -32,6 +31,7 @@ class SessionManager
|
||||||
$session_factory = new SessionFactory();
|
$session_factory = new SessionFactory();
|
||||||
self::$session = $session_factory->newInstance($_COOKIE);
|
self::$session = $session_factory->newInstance($_COOKIE);
|
||||||
}
|
}
|
||||||
|
|
||||||
return self::$session;
|
return self::$session;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,6 @@ use Alltube\Video;
|
||||||
use Aura\Session\Segment;
|
use Aura\Session\Segment;
|
||||||
use Psr\Container\ContainerInterface;
|
use Psr\Container\ContainerInterface;
|
||||||
use Slim\Http\Request;
|
use Slim\Http\Request;
|
||||||
use Slim\Http\Response;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Abstract class used by every controller.
|
* Abstract class used by every controller.
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
namespace Alltube\Controller;
|
namespace Alltube\Controller;
|
||||||
|
|
||||||
use Alltube\Config;
|
use Alltube\Config;
|
||||||
use Alltube\EmptyUrlException;
|
|
||||||
use Alltube\Locale;
|
use Alltube\Locale;
|
||||||
use Alltube\LocaleManager;
|
use Alltube\LocaleManager;
|
||||||
use Alltube\PasswordException;
|
use Alltube\PasswordException;
|
||||||
|
@ -16,7 +15,6 @@ use Psr\Container\ContainerInterface;
|
||||||
use Slim\Container;
|
use Slim\Container;
|
||||||
use Slim\Http\Request;
|
use Slim\Http\Request;
|
||||||
use Slim\Http\Response;
|
use Slim\Http\Response;
|
||||||
use Slim\Http\Stream;
|
|
||||||
use Slim\Views\Smarty;
|
use Slim\Views\Smarty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
require_once __DIR__.'/vendor/autoload.php';
|
require_once __DIR__.'/vendor/autoload.php';
|
||||||
use Alltube\Config;
|
use Alltube\Config;
|
||||||
|
use Alltube\Controller\DownloadController;
|
||||||
use Alltube\Controller\FrontController;
|
use Alltube\Controller\FrontController;
|
||||||
use Alltube\Controller\JsonController;
|
use Alltube\Controller\JsonController;
|
||||||
use Alltube\Controller\DownloadController;
|
|
||||||
use Alltube\LocaleManager;
|
use Alltube\LocaleManager;
|
||||||
use Alltube\LocaleMiddleware;
|
use Alltube\LocaleMiddleware;
|
||||||
use Alltube\UglyRouter;
|
use Alltube\UglyRouter;
|
||||||
|
@ -74,7 +74,6 @@ $app->get(
|
||||||
[$frontController, 'locale']
|
[$frontController, 'locale']
|
||||||
)->setName('locale');
|
)->setName('locale');
|
||||||
|
|
||||||
|
|
||||||
$app->get(
|
$app->get(
|
||||||
'/json',
|
'/json',
|
||||||
[$jsonController, 'json']
|
[$jsonController, 'json']
|
||||||
|
|
|
@ -5,13 +5,11 @@
|
||||||
|
|
||||||
namespace Alltube\Test;
|
namespace Alltube\Test;
|
||||||
|
|
||||||
use Alltube\Config;
|
|
||||||
use Alltube\Controller\BaseController;
|
use Alltube\Controller\BaseController;
|
||||||
use Alltube\Controller\DownloadController;
|
use Alltube\Controller\DownloadController;
|
||||||
use Alltube\Controller\FrontController;
|
use Alltube\Controller\FrontController;
|
||||||
use Alltube\LocaleManager;
|
use Alltube\LocaleManager;
|
||||||
use Alltube\ViewFactory;
|
use Alltube\ViewFactory;
|
||||||
use Exception;
|
|
||||||
use Slim\Container;
|
use Slim\Container;
|
||||||
use Slim\Http\Environment;
|
use Slim\Http\Environment;
|
||||||
use Slim\Http\Request;
|
use Slim\Http\Request;
|
||||||
|
|
|
@ -7,20 +7,12 @@ namespace Alltube\Test;
|
||||||
|
|
||||||
use Alltube\Config;
|
use Alltube\Config;
|
||||||
use Alltube\Controller\DownloadController;
|
use Alltube\Controller\DownloadController;
|
||||||
use Alltube\LocaleManager;
|
|
||||||
use Alltube\ViewFactory;
|
|
||||||
use Exception;
|
|
||||||
use Slim\Container;
|
|
||||||
use Slim\Http\Environment;
|
|
||||||
use Slim\Http\Request;
|
|
||||||
use Slim\Http\Response;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unit tests for the FrontController class.
|
* Unit tests for the FrontController class.
|
||||||
*/
|
*/
|
||||||
class DownloadControllerTest extends ControllerTest
|
class DownloadControllerTest extends ControllerTest
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prepare tests.
|
* Prepare tests.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -7,20 +7,15 @@ namespace Alltube\Test;
|
||||||
|
|
||||||
use Alltube\Config;
|
use Alltube\Config;
|
||||||
use Alltube\Controller\FrontController;
|
use Alltube\Controller\FrontController;
|
||||||
use Alltube\LocaleManager;
|
|
||||||
use Alltube\ViewFactory;
|
|
||||||
use Exception;
|
use Exception;
|
||||||
use Slim\Container;
|
|
||||||
use Slim\Http\Environment;
|
use Slim\Http\Environment;
|
||||||
use Slim\Http\Request;
|
use Slim\Http\Request;
|
||||||
use Slim\Http\Response;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unit tests for the FrontController class.
|
* Unit tests for the FrontController class.
|
||||||
*/
|
*/
|
||||||
class FrontControllerTest extends ControllerTest
|
class FrontControllerTest extends ControllerTest
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Controller instance used in tests.
|
* Controller instance used in tests.
|
||||||
*
|
*
|
||||||
|
|
|
@ -5,22 +5,13 @@
|
||||||
|
|
||||||
namespace Alltube\Test;
|
namespace Alltube\Test;
|
||||||
|
|
||||||
use Alltube\Config;
|
|
||||||
use Alltube\Controller\JsonController;
|
use Alltube\Controller\JsonController;
|
||||||
use Alltube\LocaleManager;
|
|
||||||
use Alltube\ViewFactory;
|
|
||||||
use Exception;
|
|
||||||
use Slim\Container;
|
|
||||||
use Slim\Http\Environment;
|
|
||||||
use Slim\Http\Request;
|
|
||||||
use Slim\Http\Response;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unit tests for the FrontController class.
|
* Unit tests for the FrontController class.
|
||||||
*/
|
*/
|
||||||
class JsonControllerTest extends ControllerTest
|
class JsonControllerTest extends ControllerTest
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prepare tests.
|
* Prepare tests.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue