@@ -29,14 +29,14 @@ final class Error extends AbstractElement
29
29
*/
30
30
protected function parse ($ object ): void
31
31
{
32
- if (! is_object ($ object )) {
32
+ if (!is_object ($ object )) {
33
33
throw new ValidationException (
34
34
'Error has to be an object, " ' . gettype ($ object ) . '" given. '
35
35
);
36
36
}
37
37
38
38
if (property_exists ($ object , 'id ' )) {
39
- if (! is_string ($ object ->id )) {
39
+ if (!is_string ($ object ->id )) {
40
40
throw new ValidationException (
41
41
'property "id" has to be a string, " ' .
42
42
gettype ($ object ->id ) . '" given. '
@@ -51,7 +51,7 @@ protected function parse($object): void
51
51
}
52
52
53
53
if (property_exists ($ object , 'status ' )) {
54
- if (! is_string ($ object ->status )) {
54
+ if (!is_string ($ object ->status )) {
55
55
throw new ValidationException (
56
56
'property "status" has to be a string, " ' .
57
57
gettype ($ object ->status ) . '" given. '
@@ -62,7 +62,7 @@ protected function parse($object): void
62
62
}
63
63
64
64
if (property_exists ($ object , 'code ' )) {
65
- if (! is_string ($ object ->code )) {
65
+ if (!is_string ($ object ->code )) {
66
66
throw new ValidationException (
67
67
'property "code" has to be a string, " ' .
68
68
gettype ($ object ->code ) . '" given. '
@@ -73,7 +73,7 @@ protected function parse($object): void
73
73
}
74
74
75
75
if (property_exists ($ object , 'title ' )) {
76
- if (! is_string ($ object ->title )) {
76
+ if (!is_string ($ object ->title )) {
77
77
throw new ValidationException (
78
78
'property "title" has to be a string, " ' .
79
79
gettype ($ object ->title ) . '" given. '
@@ -84,7 +84,7 @@ protected function parse($object): void
84
84
}
85
85
86
86
if (property_exists ($ object , 'detail ' )) {
87
- if (! is_string ($ object ->detail )) {
87
+ if (!is_string ($ object ->detail )) {
88
88
throw new ValidationException (
89
89
'property "detail" has to be a string, " ' .
90
90
gettype ($ object ->detail ) . '" given. '
0 commit comments