@@ -27,7 +27,7 @@ |
||
| 27 | 27 | 'V1_MAC', 'V2_DCE', 'V3_MD5', 'V4_RANDOM', 'V5_SHA1', 'V6_SORTABLE', 'V7_MONOTONIC', |
| 28 | 28 | ]; |
| 29 | 29 | |
| 30 | - return array_filter(array_map(function (string $constName) { |
|
| 30 | + return array_filter(array_map(function(string $constName) { |
|
| 31 | 31 | $cName = sprintf('%s::%s', Uuid::class, $constName); |
| 32 | 32 | |
| 33 | 33 | return \defined($cName) ? \constant($cName) : null; |
@@ -79,8 +79,8 @@ discard block |
||
| 79 | 79 | $deserialized = $classSerializerFacade->fromJsonTransfer($jsonDto); |
| 80 | 80 | |
| 81 | 81 | $className = get_class($user); |
| 82 | -$okNo = get_class($deserialized) === $className ?'true' : 'false'; |
|
| 83 | -print_r( "Deserialize $className: $okNo \r\n"); |
|
| 82 | +$okNo = get_class($deserialized) === $className ? 'true' : 'false'; |
|
| 83 | +print_r("Deserialize $className: $okNo \r\n"); |
|
| 84 | 84 | |
| 85 | 85 | /** |
| 86 | 86 | * Validate DTO example |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | $validator = new ValidatorFacadeDefault(); |
| 118 | 118 | $constraints = $validator->validate($simpleUser); |
| 119 | 119 | |
| 120 | -$validationStatus = !count($constraints) ? 'Validated': 'Validation error'; |
|
| 120 | +$validationStatus = !count($constraints) ? 'Validated' : 'Validation error'; |
|
| 121 | 121 | |
| 122 | 122 | print_r("Validation status: $validationStatus\r\n"); |
| 123 | 123 | |