Test Setup Failed
Push — develop ( 17b215...d74e9d )
by Freddie
13:13
created
src/Domain/UseCases/CreateEntityFileUseCase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Domain/UseCases/CreateConstraintFileUseCase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Domain/UseCases/CreateRequestFileUseCase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Domain/Validations/HeaderSyntaxValidation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Domain/Validations/FieldSyntaxValidation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/Domain/Builders/UseCase/UseCaseBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Domain/Builders/Gateway/GatewayBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Domain/Builders/Message/RequestBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Domain/Builders/Repository/RepositoryBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.