@@ -35,7 +35,7 @@ |
||
35 | 35 | $name = $this->getSingularize($request->name); |
36 | 36 | $properties = \array_reduce( |
37 | 37 | $request->properties, |
38 | - function (array $result, SchemaAttributeInterface $schemaAttribute) { |
|
38 | + function(array $result, SchemaAttributeInterface $schemaAttribute) { |
|
39 | 39 | $result[$schemaAttribute->name()] = $schemaAttribute->properties(); |
40 | 40 | |
41 | 41 | return $result; |
@@ -36,7 +36,7 @@ |
||
36 | 36 | $entity = $this->getSingularize($request->entity); |
37 | 37 | $properties = \array_reduce( |
38 | 38 | $request->properties, |
39 | - function (array $result, SchemaAttributeInterface $schemaAttribute) { |
|
39 | + function(array $result, SchemaAttributeInterface $schemaAttribute) { |
|
40 | 40 | $name = $schemaAttribute->name(); |
41 | 41 | $result[$name] = (new RuleBuilder($name, $schemaAttribute->constraints()))->build(); |
42 | 42 |
@@ -37,7 +37,7 @@ |
||
37 | 37 | $actions = $request->actions; |
38 | 38 | $properties = \array_reduce( |
39 | 39 | $request->properties, |
40 | - function (array $result, SchemaAttributeInterface $schemaAttribute) { |
|
40 | + function(array $result, SchemaAttributeInterface $schemaAttribute) { |
|
41 | 41 | $name = $schemaAttribute->name(); |
42 | 42 | $result[$name] = $schemaAttribute->properties(); |
43 | 43 |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | |
51 | 51 | private function validateAllowedHeaders(): void |
52 | 52 | { |
53 | - $notAllowedHeaders = \array_filter($this->headers, function ($header) { |
|
53 | + $notAllowedHeaders = \array_filter($this->headers, function($header) { |
|
54 | 54 | return !\in_array($header, $this->allowedHeaders); |
55 | 55 | }); |
56 | 56 | |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | |
62 | 62 | private function validateRequiredHeaders(): void |
63 | 63 | { |
64 | - $requiredHeaders = \array_filter($this->requiredHeaders, function ($required) { |
|
64 | + $requiredHeaders = \array_filter($this->requiredHeaders, function($required) { |
|
65 | 65 | return !\in_array($required, $this->headers); |
66 | 66 | }); |
67 | 67 |
@@ -41,7 +41,7 @@ |
||
41 | 41 | // throw new FieldSyntaxValidationException('Property unknow: ' . $property); |
42 | 42 | // } |
43 | 43 | // } |
44 | - \array_map(function ($property): void { |
|
44 | + \array_map(function($property): void { |
|
45 | 45 | if (!\in_array($property, $this->allowedProperties)) { |
46 | 46 | throw new FieldSyntaxValidationException('Property unknow: ' . $property); |
47 | 47 | } |
@@ -16,7 +16,7 @@ |
||
16 | 16 | { |
17 | 17 | public function __construct(string $entity, string $action, array $properties) |
18 | 18 | { |
19 | - $properties = \array_reduce($properties, function ($result, $property) { |
|
19 | + $properties = \array_reduce($properties, function($result, $property) { |
|
20 | 20 | $result[$property[Keyword::NAME]] = $property; |
21 | 21 | |
22 | 22 | return $result; |
@@ -15,7 +15,7 @@ |
||
15 | 15 | { |
16 | 16 | public function __construct(string $entity, array $actions) |
17 | 17 | { |
18 | - $actions = \array_reduce($actions, function (array $result, string $action) { |
|
18 | + $actions = \array_reduce($actions, function(array $result, string $action) { |
|
19 | 19 | $result[] = $this->getCamelCase($action); |
20 | 20 | |
21 | 21 | return $result; |
@@ -16,7 +16,7 @@ |
||
16 | 16 | { |
17 | 17 | public function __construct(string $entity, string $action, array $properties) |
18 | 18 | { |
19 | - $properties = \array_reduce($properties, function ($result, $property) { |
|
19 | + $properties = \array_reduce($properties, function($result, $property) { |
|
20 | 20 | $result[$property[Keyword::NAME]] = $property; |
21 | 21 | |
22 | 22 | return $result; |
@@ -15,7 +15,7 @@ |
||
15 | 15 | { |
16 | 16 | public function __construct(string $entity, array $actions) |
17 | 17 | { |
18 | - $actions = \array_reduce($actions, function (array $result, string $action) { |
|
18 | + $actions = \array_reduce($actions, function(array $result, string $action) { |
|
19 | 19 | $result[] = $this->getCamelCase($action); |
20 | 20 | |
21 | 21 | return $result; |