@@ -54,7 +54,7 @@ |
||
54 | 54 | $searchFactoryMock |
55 | 55 | ->expects($this->once()) |
56 | 56 | ->method('createSearchConfig') |
57 | - ->willReturnCallback(function () { |
|
57 | + ->willReturnCallback(function() { |
|
58 | 58 | return $this->getMockBuilder(SearchConfig::class)->disableOriginalConstructor()->getMock(); |
59 | 59 | }); |
60 | 60 |
@@ -28,7 +28,7 @@ |
||
28 | 28 | "1": "one", |
29 | 29 | "2": "two" |
30 | 30 | } |
31 | -JSON; |
|
31 | +json; |
|
32 | 32 | |
33 | 33 | /** |
34 | 34 | * @var array |
@@ -20,7 +20,7 @@ |
||
20 | 20 | { |
21 | 21 | use _generated\UtilDataReaderServiceTesterActions; |
22 | 22 | |
23 | - /** |
|
24 | - * Define custom actions here |
|
25 | - */ |
|
23 | + /** |
|
24 | + * Define custom actions here |
|
25 | + */ |
|
26 | 26 | } |
@@ -45,7 +45,7 @@ |
||
45 | 45 | protected function getApplicationMock() |
46 | 46 | { |
47 | 47 | $application = new Application(); |
48 | - $application['twig'] = function () { |
|
48 | + $application['twig'] = function() { |
|
49 | 49 | return new Twig_Environment(new Twig_Loader_Filesystem()); |
50 | 50 | }; |
51 | 51 |
@@ -33,7 +33,7 @@ |
||
33 | 33 | $app['controller.service.error'] = $this->getFactory()->createExceptionHandlerDispatcher(); |
34 | 34 | |
35 | 35 | $app['dispatcher'] = $app->share( |
36 | - $app->extend('dispatcher', function (EventDispatcherInterface $dispatcher) { |
|
36 | + $app->extend('dispatcher', function(EventDispatcherInterface $dispatcher) { |
|
37 | 37 | $exceptionListener = new ExceptionListener( |
38 | 38 | 'controller.service.error:dispatch' |
39 | 39 | ); |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | */ |
27 | 27 | public function register(Application $app) |
28 | 28 | { |
29 | - $app['url_matcher'] = $app->share(function () use ($app) { |
|
29 | + $app['url_matcher'] = $app->share(function() use ($app) { |
|
30 | 30 | /** @var \Symfony\Cmf\Component\Routing\ChainRouter $chainRouter */ |
31 | 31 | $chainRouter = $app['routers']; |
32 | 32 | $chainRouter->setContext($app['request_context']); |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | return $chainRouter; |
35 | 35 | }); |
36 | 36 | |
37 | - $app['routers'] = $app->share(function () { |
|
37 | + $app['routers'] = $app->share(function() { |
|
38 | 38 | return new ChainRouter(); |
39 | 39 | }); |
40 | 40 | } |
@@ -46,7 +46,7 @@ |
||
46 | 46 | */ |
47 | 47 | public function migrate(CmsVersionDataTransfer $originVersionDataTransfer, CmsVersionDataTransfer $targetVersionDataTransfer) |
48 | 48 | { |
49 | - $this->handleDatabaseTransaction(function () use ($targetVersionDataTransfer) { |
|
49 | + $this->handleDatabaseTransaction(function() use ($targetVersionDataTransfer) { |
|
50 | 50 | $this->executeMigrateTransaction($targetVersionDataTransfer); |
51 | 51 | }); |
52 | 52 | } |
@@ -40,7 +40,7 @@ |
||
40 | 40 | public function register(Application $app) |
41 | 41 | { |
42 | 42 | $app['twig.global.variables'] = $app->share( |
43 | - $app->extend('twig.global.variables', function (array $variables) { |
|
43 | + $app->extend('twig.global.variables', function(array $variables) { |
|
44 | 44 | $variables['username'] = $this->getUsername(); |
45 | 45 | |
46 | 46 | return $variables; |
@@ -43,7 +43,7 @@ |
||
43 | 43 | */ |
44 | 44 | public function deleteProductReview(ProductReviewTransfer $productReviewTransfer) |
45 | 45 | { |
46 | - $this->handleDatabaseTransaction(function () use ($productReviewTransfer) { |
|
46 | + $this->handleDatabaseTransaction(function() use ($productReviewTransfer) { |
|
47 | 47 | $this->executeDeleteProductReviewTransaction($productReviewTransfer); |
48 | 48 | }); |
49 | 49 | } |