@@ -20,7 +20,7 @@ |
||
20 | 20 | * FormProcessor constructor. |
21 | 21 | * |
22 | 22 | * @param FormFactoryInterface $factory |
23 | - * @param string|FormTypeInterface $form |
|
23 | + * @param \Symfony\Component\Form\FormInterface $form |
|
24 | 24 | * @param array $options |
25 | 25 | */ |
26 | 26 | public function __construct(FormFactoryInterface $factory, $form, array $options = []) |
@@ -24,6 +24,9 @@ |
||
24 | 24 | $this->mapper = $mapper; |
25 | 25 | } |
26 | 26 | |
27 | + /** |
|
28 | + * @param string $className |
|
29 | + */ |
|
27 | 30 | public function createFormForClass($className) |
28 | 31 | { |
29 | 32 | $form = $this->factory->create(); |
@@ -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) |