@@ -36,7 +36,7 @@ |
||
| 36 | 36 | implode( |
| 37 | 37 | "\n\n", |
| 38 | 38 | array_map( |
| 39 | - function ($l) { |
|
| 39 | + function($l) { |
|
| 40 | 40 | return implode("\n\n", $l); |
| 41 | 41 | }, |
| 42 | 42 | $errors |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | return; |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../../Resources/config')); |
|
| 24 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../../Resources/config')); |
|
| 25 | 25 | $loader->load('doctrine.yml'); |
| 26 | 26 | |
| 27 | 27 | $factory = $container->getDefinition('cruds.factory.reflection'); |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | throw new EntityProcessingException( |
| 41 | 41 | 'Data for the entity is not valid', |
| 42 | 42 | array_map( |
| 43 | - function (ConstraintViolationInterface $violation) { |
|
| 43 | + function(ConstraintViolationInterface $violation) { |
|
| 44 | 44 | return $violation->getMessage(); |
| 45 | 45 | }, |
| 46 | 46 | iterator_to_array($list) |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | ->beforeNormalization() |
| 66 | 66 | ->ifArray() |
| 67 | 67 | ->then( |
| 68 | - function (array $v) { |
|
| 68 | + function(array $v) { |
|
| 69 | 69 | if (array_keys($v) !== range(0, count($v) - 1)) { |
| 70 | 70 | return $v; |
| 71 | 71 | } |
@@ -109,9 +109,9 @@ discard block |
||
| 109 | 109 | ->defaultNull() |
| 110 | 110 | ->example('@my_entity.factory') |
| 111 | 111 | ->info( |
| 112 | - 'Service ID implementing ' . PHP_EOL . |
|
| 113 | - ObjectFactoryInterface::class . PHP_EOL . |
|
| 114 | - 'Defaults to ' . ReflectionConstructorFactory::class |
|
| 112 | + 'Service ID implementing '.PHP_EOL. |
|
| 113 | + ObjectFactoryInterface::class.PHP_EOL. |
|
| 114 | + 'Defaults to '.ReflectionConstructorFactory::class |
|
| 115 | 115 | ); |
| 116 | 116 | |
| 117 | 117 | $create |
@@ -120,9 +120,9 @@ discard block |
||
| 120 | 120 | ->defaultNull() |
| 121 | 121 | ->example('@my_entity.factory') |
| 122 | 122 | ->info( |
| 123 | - 'Service ID implementing ' . PHP_EOL . |
|
| 124 | - ObjectFactoryInterface::class . PHP_EOL . |
|
| 125 | - 'Defaults to ' . ReflectionConstructorFactory::class |
|
| 123 | + 'Service ID implementing '.PHP_EOL. |
|
| 124 | + ObjectFactoryInterface::class.PHP_EOL. |
|
| 125 | + 'Defaults to '.ReflectionConstructorFactory::class |
|
| 126 | 126 | ); |
| 127 | 127 | |
| 128 | 128 | $this->configureActionNode($create, 'create'); |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | ->beforeNormalization() |
| 142 | 142 | ->ifString() |
| 143 | 143 | ->then( |
| 144 | - function ($v) { |
|
| 144 | + function($v) { |
|
| 145 | 145 | return [$v]; |
| 146 | 146 | } |
| 147 | 147 | ) |
@@ -176,9 +176,9 @@ discard block |
||
| 176 | 176 | ->defaultNull() |
| 177 | 177 | ->example('@my_entity.factory') |
| 178 | 178 | ->info( |
| 179 | - 'Service ID implementing ' . PHP_EOL . |
|
| 180 | - ObjectFactoryInterface::class . PHP_EOL . |
|
| 181 | - 'Defaults to ' . ReflectionConstructorFactory::class |
|
| 179 | + 'Service ID implementing '.PHP_EOL. |
|
| 180 | + ObjectFactoryInterface::class.PHP_EOL. |
|
| 181 | + 'Defaults to '.ReflectionConstructorFactory::class |
|
| 182 | 182 | ); |
| 183 | 183 | |
| 184 | 184 | $this->configureActionNode($update, 'update'); |
@@ -199,8 +199,8 @@ discard block |
||
| 199 | 199 | $parent |
| 200 | 200 | ->children() |
| 201 | 201 | ->scalarNode('path') |
| 202 | - ->example('/' . $action) |
|
| 202 | + ->example('/'.$action) |
|
| 203 | 203 | ->info('Action path (prefixed)') |
| 204 | - ->defaultValue('/' . $action); |
|
| 204 | + ->defaultValue('/'.$action); |
|
| 205 | 205 | } |
| 206 | 206 | } |