Completed
Push — develop ( 0660be...71868c )
by Freddie
04:14
created
tests/Unit/Validations/AttributeValidationTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
 
192 192
     public function propertyDataTypeValid(): array
193 193
     {
194
-        return array_map(function ($dataType) {
194
+        return array_map(function($dataType) {
195 195
             return [$dataType];
196 196
         }, PropertyDataTypeValidator::ALLOWED_DATATYPES);
197 197
     }
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
 
212 212
     public function propertyTypeValid(): array
213 213
     {
214
-        return array_map(function ($dataType) {
214
+        return array_map(function($dataType) {
215 215
             return [$dataType];
216 216
         }, PropertyTypeValidator::ALLOWED_TYPES);
217 217
     }
Please login to merge, or discard this patch.
src/Validations/AttributeValidation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         }
64 64
 
65 65
         if (!empty($notAllowedProperties)) {
66
-            throw new AttributeValidationException('Properties unknow: ' . implode(', ', $notAllowedProperties));
66
+            throw new AttributeValidationException('Properties unknow: '.implode(', ', $notAllowedProperties));
67 67
         }
68 68
 
69 69
         foreach ($this->requiredProperties as $property) {
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
         if (!empty($requiredPropertiesNotPresent)) {
76 76
             throw new AttributeValidationException(
77
-                'Required properties are missing: ' . implode(', ', $requiredPropertiesNotPresent)
77
+                'Required properties are missing: '.implode(', ', $requiredPropertiesNotPresent)
78 78
             );
79 79
         }
80 80
 
Please login to merge, or discard this patch.