@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | throw new FieldValidationException([ |
| 67 | 67 | new SchemaValidationError( |
| 68 | 68 | SchemaValidationError::SCHEMA_VIOLATION, |
| 69 | - 'Could not find a valid field for descriptor: '.json_encode($descriptor)), |
|
| 69 | + 'Could not find a valid field for descriptor: ' . json_encode($descriptor)), |
|
| 70 | 70 | ]); |
| 71 | 71 | } |
| 72 | 72 | } |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | throw new FieldValidationException([ |
| 91 | 91 | new SchemaValidationError( |
| 92 | 92 | SchemaValidationError::SCHEMA_VIOLATION, |
| 93 | - 'Could not find a valid field for value: '.json_encode($val)), |
|
| 93 | + 'Could not find a valid field for value: ' . json_encode($val)), |
|
| 94 | 94 | ]); |
| 95 | 95 | } |
| 96 | 96 | } |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | public function __construct($descriptor = null) |
| 24 | 24 | { |
| 25 | 25 | if (is_null($descriptor)) { |
| 26 | - $this->descriptor = (object) ['fields' => []]; |
|
| 26 | + $this->descriptor = (object)['fields' => []]; |
|
| 27 | 27 | } else { |
| 28 | 28 | if (Utils::isJsonString($descriptor)) { |
| 29 | 29 | // it's a json encoded string |