style(styleci): Lint

This commit is contained in:
Pierre Rudloff 2019-04-22 17:04:59 +02:00
parent 1387d836dc
commit bba2087a55
8 changed files with 2 additions and 30 deletions

View file

@ -13,7 +13,6 @@ use Aura\Session\SessionFactory;
*/
class SessionManager
{
/**
* Current session.
*
@ -32,6 +31,7 @@ class SessionManager
$session_factory = new SessionFactory();
self::$session = $session_factory->newInstance($_COOKIE);
}
return self::$session;
}
}

View file

@ -11,7 +11,6 @@ use Alltube\Video;
use Aura\Session\Segment;
use Psr\Container\ContainerInterface;
use Slim\Http\Request;
use Slim\Http\Response;
/**
* Abstract class used by every controller.

View file

@ -6,7 +6,6 @@
namespace Alltube\Controller;
use Alltube\Config;
use Alltube\EmptyUrlException;
use Alltube\Locale;
use Alltube\LocaleManager;
use Alltube\PasswordException;
@ -16,7 +15,6 @@ use Psr\Container\ContainerInterface;
use Slim\Container;
use Slim\Http\Request;
use Slim\Http\Response;
use Slim\Http\Stream;
use Slim\Views\Smarty;
/**

View file

@ -2,9 +2,9 @@
require_once __DIR__.'/vendor/autoload.php';
use Alltube\Config;
use Alltube\Controller\DownloadController;
use Alltube\Controller\FrontController;
use Alltube\Controller\JsonController;
use Alltube\Controller\DownloadController;
use Alltube\LocaleManager;
use Alltube\LocaleMiddleware;
use Alltube\UglyRouter;
@ -74,7 +74,6 @@ $app->get(
[$frontController, 'locale']
)->setName('locale');
$app->get(
'/json',
[$jsonController, 'json']

View file

@ -5,13 +5,11 @@
namespace Alltube\Test;
use Alltube\Config;
use Alltube\Controller\BaseController;
use Alltube\Controller\DownloadController;
use Alltube\Controller\FrontController;
use Alltube\LocaleManager;
use Alltube\ViewFactory;
use Exception;
use Slim\Container;
use Slim\Http\Environment;
use Slim\Http\Request;

View file

@ -7,20 +7,12 @@ namespace Alltube\Test;
use Alltube\Config;
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.
*/
class DownloadControllerTest extends ControllerTest
{
/**
* Prepare tests.
*/

View file

@ -7,20 +7,15 @@ namespace Alltube\Test;
use Alltube\Config;
use Alltube\Controller\FrontController;
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.
*/
class FrontControllerTest extends ControllerTest
{
/**
* Controller instance used in tests.
*

View file

@ -5,22 +5,13 @@
namespace Alltube\Test;
use Alltube\Config;
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.
*/
class JsonControllerTest extends ControllerTest
{
/**
* Prepare tests.
*/