Commit eacc0864 authored by Tino Goratsch's avatar Tino Goratsch

run PHP-CS-Fixer

parent e3d88da8
<?php
namespace ACP3\Core\ACL\Model\Repository;
interface UserRoleRepositoryInterface
{
/**
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Application;
use ACP3\Core\Application\BootstrapCache\Event\Listener\UserContextSubscriber;
use ACP3\Core\Session\SessionHandlerInterface;
use ACP3\Core\View\Renderer\Smarty\Filters\MoveToBottom;
......@@ -35,7 +34,7 @@ class BootstrapCache extends EventDispatchingHttpCache
HttpKernelInterface $kernel,
StoreInterface $store,
SurrogateInterface $surrogate = null,
array $options = array())
array $options = [])
{
parent::__construct($kernel, $store, $surrogate, $options);
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Application\BootstrapCache;
class Esi extends \Symfony\Component\HttpKernel\HttpCache\Esi
{
}
......@@ -127,7 +127,7 @@ class UserContextSubscriber implements EventSubscriberInterface
$hashLookupRequest->cookies->set(AuthenticationModel::AUTH_NAME, $authCookie);
}
$sessionIds = array();
$sessionIds = [];
foreach ($originalRequest->cookies as $name => $value) {
if ($this->isSessionName($name)) {
$sessionIds[$name] = $value;
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Application\Event;
use Symfony\Component\HttpFoundation\Response;
class ControllerActionAfterDispatchEvent extends ControllerActionBeforeDispatchEvent
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Application\Event\Listener;
use ACP3\Core\Application\Event\ControllerActionAfterDispatchEvent;
use ACP3\Core\Controller\AreaEnum;
use ACP3\Core\Http\Request;
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Assets\Event;
use ACP3\Core\Assets\Libraries;
use Symfony\Component\EventDispatcher\Event;
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Assets;
use ACP3\Core\Assets\Event\AddLibraryEvent;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
......
......@@ -12,5 +12,4 @@ namespace ACP3\Core\Authentication\Exception;
*/
class AuthenticationException extends \Exception
{
}
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Breadcrumb\Event;
use ACP3\Core\Breadcrumb\Title;
use Symfony\Component\EventDispatcher\Event;
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Breadcrumb\Event;
use ACP3\Core\Breadcrumb\Steps;
use Symfony\Component\EventDispatcher\Event;
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Cache;
use ACP3\Core\Environment\ApplicationMode;
use ACP3\Core\Environment\ApplicationPath;
use Symfony\Component\DependencyInjection\ContainerInterface;
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Cache;
use ACP3\Core\Filesystem;
/**
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Controller\Event;
use ACP3\Core\View;
use Symfony\Component\EventDispatcher\Event;
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Enum;
use ReflectionClass;
class BaseEnum
......
......@@ -69,7 +69,7 @@ class ErrorHandler
/**
* @param \Exception $e
*/
public function handleException( $e)
public function handleException($e)
{
$this->logger->error('exception', $e);
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Helpers;
use ACP3\Core\Settings\SettingsInterface;
use ACP3\Modules\ACP3\System\Installer\Schema;
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Model;
use ACP3\Core\Model\Repository\AbstractRepository;
use ACP3\Core\NestedSet\Operation\Delete;
use ACP3\Core\NestedSet\Operation\Edit;
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Model;
use ACP3\Core\Model\DataProcessor\ColumnTypeStrategyFactory;
class DataProcessor
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Model\DataProcessor\ColumnType;
class BooleanColumnType implements ColumnTypeStrategyInterface
{
/**
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Model\DataProcessor\ColumnType;
interface ColumnTypeStrategyInterface
{
/**
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Model\DataProcessor\ColumnType;
use ACP3\Core\Date;
class DateTimeColumnType implements ColumnTypeStrategyInterface
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Model\DataProcessor\ColumnType;
class DoubleColumnType implements ColumnTypeStrategyInterface
{
/**
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Model\DataProcessor\ColumnType;
class IntegerNullableColumnType extends IntegerColumnType
{
/**
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Model\DataProcessor\ColumnType;
class RawColumnType implements ColumnTypeStrategyInterface
{
/**
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Model\DataProcessor\ColumnType;
use ACP3\Core\Helpers\Secure;
class TextColumnType implements ColumnTypeStrategyInterface
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Model\DataProcessor\ColumnType;
class TextWysiwygColumnType extends TextColumnType
{
/**
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Model\DataProcessor;
use ACP3\Core\Model\DataProcessor\ColumnType\ColumnTypeStrategyInterface;
class ColumnTypeStrategyFactory
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Model\DataProcessor;
interface ColumnTypes
{
const COLUMN_TYPE_DATETIME = 'datetime';
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Model\DataProcessor\DependencyInjection;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Reference;
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Model\Event;
use Symfony\Component\EventDispatcher\Event;
class ModelSaveEvent extends Event
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Model\Repository;
interface SettingsAwareRepositoryInterface extends RepositoryInterface
{
/**
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Modules;
use ACP3\Core\XML;
trait ModuleDependenciesTrait
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Modules;
use Symfony\Component\DependencyInjection\ContainerBuilder;
class ModuleRegistration
......@@ -16,6 +15,5 @@ class ModuleRegistration
*/
public function build(ContainerBuilder $containerBuilder)
{
}
}
......@@ -6,8 +6,6 @@
namespace ACP3\Core\NestedSet\Model\Repository;
interface BlockAwareNestedSetRepositoryInterface
{
}
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Settings\Event;
use Symfony\Component\EventDispatcher\Event;
class SettingsSaveEvent extends Event
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Settings;
interface SettingsInterface
{
/**
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Test;
use ACP3\Core\ACL;
use ACP3\Core\Modules;
use ACP3\Modules\ACP3\Permissions\Cache;
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Test\Assets;
use ACP3\Core\Assets\Cache;
use ACP3\Core\Assets\FileResolver;
use ACP3\Core\Environment\ApplicationMode;
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Test\Assets;
use ACP3\Core\Assets\Libraries;
use Symfony\Component\EventDispatcher\EventDispatcher;
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Test\Assets;
use ACP3\Core\Assets\PageCssClasses;
use ACP3\Core\Breadcrumb\Title;
use ACP3\Core\Helpers\StringFormatter;
......
<?php
namespace ACP3\Core\Test;
use ACP3\Core\Assets;
use ACP3\Core\Environment\ApplicationMode;
use ACP3\Core\Environment\ApplicationPath;
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Test\Breadcrumb;
use ACP3\Core\Breadcrumb\Steps;
use ACP3\Core\Controller\AreaEnum;
use ACP3\Core\Http\Request;
......@@ -139,7 +138,7 @@ class StepsTest extends \PHPUnit_Framework_TestCase
{
$this->routerMock->expects($this->atLeastOnce())
->method('route')
->willReturnCallback(function($path) {
->willReturnCallback(function ($path) {
return '/' . $path;
});
}
......@@ -148,8 +147,8 @@ class StepsTest extends \PHPUnit_Framework_TestCase
{
$this->translatorMock->expects($this->atLeast($callCount))
->method('t')
->willReturnCallback(function($module, $phrase) {
return strtoupper ('{' . $module . '_' . $phrase . '}');
->willReturnCallback(function ($module, $phrase) {
return strtoupper('{' . $module . '_' . $phrase . '}');
});
}
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Test\Breadcrumb;
use ACP3\Core\Breadcrumb\Steps;
use ACP3\Core\Breadcrumb\Title;
use Symfony\Component\EventDispatcher\EventDispatcher;
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Test\Cache;
use ACP3\Core\Cache\CacheDriverFactory;
use ACP3\Core\Environment\ApplicationMode;
use ACP3\Core\Environment\ApplicationPath;
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Test;
use ACP3\Core\Cache;
use Doctrine\Common\Cache\ArrayCache;
use Doctrine\Common\Cache\CacheProvider;
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Test\Controller;
use ACP3\Core\Controller\DisplayActionTrait;
use ACP3\Core\View;
use Symfony\Component\HttpFoundation\Response;
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Test\Controller;
use ACP3\Core\View;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\ResponseHeaderBag;
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Test\DataProvider;
interface DataProviderInterface
{
/**
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Test\DataProvider\Helpers;
use ACP3\Core\Test\DataProvider\DataProviderInterface;
/**
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Test\DataProvider\Helpers;
use ACP3\Core\Test\DataProvider\DataProviderInterface;
/**
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Test\DataProvider\Helpers;
use ACP3\Core\Test\DataProvider\DataProviderInterface;
/**
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Test\DataProvider\Helpers;
use ACP3\Core\Test\DataProvider\DataProviderInterface;
class SelectEntryDataProvider implements DataProviderInterface
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Test\Environment;
use ACP3\Core\Environment\ApplicationMode;
use ACP3\Core\Environment\ApplicationPath;
......
......@@ -28,6 +28,4 @@ class MassActionColumnRendererTest extends AbstractColumnRendererTest
$expected = '<td><input type="checkbox" name="entries[]" value="1234"></td>';
$this->compareResults($expected);
}
}
......@@ -72,5 +72,4 @@ class ReplaceValueColumnRendererTest extends AbstractColumnRendererTest
$expected = '<td>Foo Bar</td>';
$this->compareResults($expected);
}
}
......@@ -9,7 +9,7 @@ class TranslateColumnRendererTest extends AbstractColumnRendererTest
/**
* @var Translator|\PHPUnit_Framework_MockObject_MockObject
*/
protected $langMock;
protected $langMock;
protected function setUp()
{
......@@ -33,7 +33,6 @@ class TranslateColumnRendererTest extends AbstractColumnRendererTest
->method('t')
->with($langKey, $langKey)
->willReturn($langValue);
}
public function testValidField()
......
......@@ -121,5 +121,4 @@ class DateRangeTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($expected, $this->dateRange->formatTimeRange($dateStart, $dateEnd, 'short'));
}
}
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Test\Helpers\Formatter;
use ACP3\Core\Environment\ApplicationPath;
use ACP3\Core\Helpers\Formatter\RewriteInternalUri;
use ACP3\Core\Http\Request;
......@@ -218,5 +217,4 @@ HTML;
$this->assertEquals($expected, $this->rewriteInternalUri->rewriteInternalUri($content));
}
}
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Test\Helpers;
use ACP3\Core\Helpers\Forms;
use ACP3\Core\Http\Request;
use ACP3\Core\I18n\Translator;
......
<?php
namespace ACP3\Core\Test\Helpers;
use ACP3\Core\Helpers\PageBreaks;
use ACP3\Core\Helpers\TableOfContents;
use ACP3\Core\Http\Request;
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Test\Helpers;
use ACP3\Core\Helpers\ResultsPerPage;
use ACP3\Core\Settings\SettingsInterface;
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Test\Helpers;
use ACP3\Core\Helpers\StringFormatter;
use Cocur\Slugify\Slugify;
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Test\Http;
use ACP3\Core\Http\RedirectResponse;
use ACP3\Core\Http\Request;
use ACP3\Core\Router\RouterInterface;
......
......@@ -6,11 +6,9 @@
namespace ACP3\Core\Test\I18n;
use ACP3\Core\I18n\CountryList;
use ACP3\Core\I18n\Translator;
class CountryListTest extends \PHPUnit_Framework_TestCase
{
/**
......
......@@ -6,7 +6,6 @@
namespace ACP3\Core\Test\Model;
use ACP3\Core\Model\DataProcessor\ColumnType\ColumnTypeStrategyInterface;
trait CreateRawColumnTypeMockTrait
......