@@ -31,7 +31,7 @@ |
||
| 31 | 31 | ) |
| 32 | 32 | { |
| 33 | 33 | parent::__construct( |
| 34 | - 'Invalid field type - "' . $field . '" should be of type: ' . $expectedType, |
|
| 34 | + 'Invalid field type - "'.$field.'" should be of type: '.$expectedType, |
|
| 35 | 35 | $code, |
| 36 | 36 | $previous |
| 37 | 37 | ); |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | foreach ($data as $operation) { |
| 58 | 58 | /** @var OpPath|OpPathValue|OpPathFrom|array $operation */ |
| 59 | 59 | if (is_array($operation)) { |
| 60 | - $operation = (object)$operation; |
|
| 60 | + $operation = (object) $operation; |
|
| 61 | 61 | } |
| 62 | 62 | if (!is_object($operation)) { |
| 63 | 63 | throw new Exception('Invalid patch operation - should be a JSON object'); |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | { |
| 125 | 125 | $result = array(); |
| 126 | 126 | foreach ($patch->operations as $operation) { |
| 127 | - $result[] = (object)(array)$operation; |
|
| 127 | + $result[] = (object) (array) $operation; |
|
| 128 | 128 | } |
| 129 | 129 | |
| 130 | 130 | return $result; |