@@ -116,6 +116,9 @@ |
||
| 116 | 116 | { |
| 117 | 117 | } |
| 118 | 118 | |
| 119 | + /** |
|
| 120 | + * @param string $action |
|
| 121 | + */ |
|
| 119 | 122 | private function configureActionNode(ArrayNodeDefinition $parent, $action) |
| 120 | 123 | { |
| 121 | 124 | $parent |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | ->defaultValue([]) |
| 93 | 93 | ->beforeNormalization() |
| 94 | 94 | ->ifString() |
| 95 | - ->then(function ($v) { |
|
| 95 | + ->then(function($v) { |
|
| 96 | 96 | return [$v]; |
| 97 | 97 | }) |
| 98 | 98 | ->ifNull() |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | $parent |
| 122 | 122 | ->children() |
| 123 | 123 | ->scalarNode('path') |
| 124 | - ->example('/' . $action) |
|
| 124 | + ->example('/'.$action) |
|
| 125 | 125 | ->info('Action path (prefixed)') |
| 126 | 126 | ->defaultNull(); |
| 127 | 127 | } |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | $mappedProperty = $this->mapper->getObjectProperty($entity, $apiProperty); |
| 59 | 59 | |
| 60 | 60 | if (null !== $mappedProperty) { |
| 61 | - $entityProperty = $alias . '.' . $mappedProperty; |
|
| 61 | + $entityProperty = $alias.'.'.$mappedProperty; |
|
| 62 | 62 | $this->filterDoctrineProperty($builder, $entityProperty, $value); |
| 63 | 63 | unset($criteria[$apiProperty]); |
| 64 | 64 | } |
@@ -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) |