@@ -31,7 +31,7 @@ |
||
31 | 31 | if (class_exists(DoctrineOrmMappingsPass::class)) { |
32 | 32 | // $container->addCompilerPass(DoctrineOrmMappingsPass::createXmlMappingDriver($mappings)); |
33 | 33 | // Opted for annotations to support traits |
34 | - $container->addCompilerPass(DoctrineOrmMappingsPass::createAnnotationMappingDriver([ __NAMESPACE__ . '\\Entity'], [__DIR__ . '/Entity'])); |
|
34 | + $container->addCompilerPass(DoctrineOrmMappingsPass::createAnnotationMappingDriver([__NAMESPACE__ . '\\Entity'], [__DIR__ . '/Entity'])); |
|
35 | 35 | } |
36 | 36 | /* if (class_exists(DoctrineMongoDBMappingsPass::class)) { |
37 | 37 | $container->addCompilerPass(DoctrineMongoDBMappingsPass::createXmlMappingDriver($mappings)); |
@@ -34,7 +34,7 @@ |
||
34 | 34 | { |
35 | 35 | $loader = new PhpFileLoader( |
36 | 36 | $container, |
37 | - new FileLocator(__DIR__.'/../Resources/config') |
|
37 | + new FileLocator(__DIR__ . '/../Resources/config') |
|
38 | 38 | ); |
39 | 39 | $loader->load('services.php'); |
40 | 40 |
@@ -62,7 +62,7 @@ |
||
62 | 62 | } |
63 | 63 | $this->ops = array_filter( |
64 | 64 | array_merge(static::defaultOps(), $ops), |
65 | - function ($key) { |
|
65 | + function($key) { |
|
66 | 66 | if (!array_key_exists($key, static::defaultOps())) { |
67 | 67 | throw new InvalidFactoryOptionException( |
68 | 68 | sprintf('%s is not a valid option for the factory %s', $key, \get_class($this)) |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | return array_unique( |
241 | 241 | array_filter( |
242 | 242 | array_map( |
243 | - function ($content) { |
|
243 | + function($content) { |
|
244 | 244 | if ($content instanceof ComponentGroup) { |
245 | 245 | return $content->getParent(); |
246 | 246 | } |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | return array_unique( |
260 | 260 | array_filter( |
261 | 261 | array_map( |
262 | - function (ComponentLocation $loc) { |
|
262 | + function(ComponentLocation $loc) { |
|
263 | 263 | return $loc->getContent(); |
264 | 264 | }, |
265 | 265 | $this->locations->toArray() |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; |
18 | 18 | use Symfony\Component\DependencyInjection\Reference; |
19 | 19 | |
20 | -return function (ContainerConfigurator $configurator) { |
|
20 | +return function(ContainerConfigurator $configurator) { |
|
21 | 21 | $services = $configurator->services(); |
22 | 22 | |
23 | 23 | $services |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | |
40 | 40 | $services |
41 | 41 | ->load('Silverback\\ApiComponentBundle\\DataProvider\\Item\\', '../../DataProvider/Item') |
42 | - ->tag('api_platform.item_data_provider', [ 'priority' => 1 ]) |
|
42 | + ->tag('api_platform.item_data_provider', ['priority' => 1]) |
|
43 | 43 | ->autoconfigure(false) |
44 | 44 | ; |
45 | 45 | |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | $services |
111 | 111 | ->set(ApiContextBuilder::class) |
112 | 112 | ->decorate('api_platform.serializer.context_builder') |
113 | - ->args([ new Reference(ApiContextBuilder::class . '.inner') ]) |
|
113 | + ->args([new Reference(ApiContextBuilder::class . '.inner')]) |
|
114 | 114 | ; |
115 | 115 | |
116 | 116 | $services |
@@ -32,6 +32,6 @@ |
||
32 | 32 | public function removeRoute(Route $route) |
33 | 33 | { |
34 | 34 | $this->routes->removeElement($route); |
35 | - return $this; |
|
35 | + return $this; |
|
36 | 36 | } |
37 | 37 | } |
@@ -94,7 +94,7 @@ |
||
94 | 94 | $context['groups'][] = ['default']; |
95 | 95 | } |
96 | 96 | array_unshift($groups, $context['groups']); |
97 | - $context['groups'] = array_merge( /** @scrutinizer ignore-type */ ...$groups); |
|
97 | + $context['groups'] = array_merge(/** @scrutinizer ignore-type */ ...$groups); |
|
98 | 98 | } |
99 | 99 | return $context; |
100 | 100 | } |