@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | ->beforeNormalization() |
| 65 | 65 | ->ifArray() |
| 66 | 66 | ->then( |
| 67 | - function (array $v) { |
|
| 67 | + function(array $v) { |
|
| 68 | 68 | if (array_keys($v) !== range(0, count($v) - 1)) { |
| 69 | 69 | return $v; |
| 70 | 70 | } |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | ->beforeNormalization() |
| 118 | 118 | ->ifString() |
| 119 | 119 | ->then( |
| 120 | - function ($v) { |
|
| 120 | + function($v) { |
|
| 121 | 121 | return [$v]; |
| 122 | 122 | } |
| 123 | 123 | ) |
@@ -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) |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace ScayTrase\Api\Cruds\Adaptors\Symfony; |
| 4 | 4 | |
| 5 | 5 | use ScayTrase\Api\Cruds\Exception\EntityProcessingException; |
| 6 | -use ScayTrase\Api\Cruds\Exception\MapperException; |
|
| 7 | 6 | use ScayTrase\Api\Cruds\PropertyMapperInterface; |
| 8 | 7 | use Symfony\Component\Form\FormFactoryInterface; |
| 9 | 8 | use Symfony\Component\Form\FormInterface; |