Passed
Push — develop ( 7d04f4...c381c7 )
by Daniel
11:43
created
src/SilverbackApiComponentBundle.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
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));
Please login to merge, or discard this patch.
src/DependencyInjection/SilverbackApiComponentExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Factory/Fixtures/Component/AbstractComponentFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
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))
Please login to merge, or discard this patch.
src/Entity/Component/AbstractComponent.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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()
Please login to merge, or discard this patch.
src/Resources/config/services.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.