@@ -109,7 +109,7 @@ |
||
109 | 109 | $ext = $params[self::PARAM_EXT]; |
110 | 110 | if (empty($ext) === false) { |
111 | 111 | $contentType .= $separator . self::PARAM_EXT . '="' . $ext . '"'; |
112 | - $separator = ','; |
|
112 | + $separator = ','; |
|
113 | 113 | } |
114 | 114 | } |
115 | 115 |
@@ -107,7 +107,7 @@ |
||
107 | 107 | idx: rand(), |
108 | 108 | status: '422', |
109 | 109 | code: self::INVALID_DISCRIMINATOR_VALUE, |
110 | - title: str_replace('{{value}}', (string) $value, $this->discError) |
|
110 | + title: str_replace('{{value}}', (string) $value, $this->discError) |
|
111 | 111 | ); |
112 | 112 | |
113 | 113 | throw new JsonApiException($error, 422); |
@@ -719,7 +719,7 @@ discard block |
||
719 | 719 | return $this->parseArray( |
720 | 720 | $data, |
721 | 721 | $path, |
722 | - function ($data, $path, DataParser $parser) use ($typeParams) { |
|
722 | + function($data, $path, DataParser $parser) use ($typeParams) { |
|
723 | 723 | return $parser->parseScalarValue($data, $path, $typeParams); |
724 | 724 | } |
725 | 725 | ); |
@@ -729,7 +729,7 @@ discard block |
||
729 | 729 | return $this->parseArray( |
730 | 730 | $data, |
731 | 731 | $path, |
732 | - function ($data, $path, DataParser $parser) use ($format) { |
|
732 | + function($data, $path, DataParser $parser) use ($format) { |
|
733 | 733 | return $parser->parseDateTime($data, $path, $format); |
734 | 734 | } |
735 | 735 | ); |
@@ -738,7 +738,7 @@ discard block |
||
738 | 738 | return $this->parseArray( |
739 | 739 | $data, |
740 | 740 | $path, |
741 | - function ($data, $path, DataParser $parser) use ($typeParams, $propMetadata) { |
|
741 | + function($data, $path, DataParser $parser) use ($typeParams, $propMetadata) { |
|
742 | 742 | return $parser->parseResourceOrObject($data, $path, $typeParams, $propMetadata); |
743 | 743 | } |
744 | 744 | ); |
@@ -747,7 +747,7 @@ discard block |
||
747 | 747 | return $this->parseArray( |
748 | 748 | $data, |
749 | 749 | $path, |
750 | - function ($data, $path, DataParser $parser) use ($typeParams, $propMetadata) { |
|
750 | + function($data, $path, DataParser $parser) use ($typeParams, $propMetadata) { |
|
751 | 751 | return $parser->parseArrayValue($data, $path, $typeParams, $propMetadata); |
752 | 752 | } |
753 | 753 | ); |
@@ -756,7 +756,7 @@ discard block |
||
756 | 756 | return $this->parseArray( |
757 | 757 | $data, |
758 | 758 | $path, |
759 | - function ($data, $path, DataParser $parser) { |
|
759 | + function($data, $path, DataParser $parser) { |
|
760 | 760 | return $parser->parseRaw($data, $path); |
761 | 761 | } |
762 | 762 | ); |
@@ -964,14 +964,14 @@ discard block |
||
964 | 964 | */ |
965 | 965 | private function parseArrayRelationship(mixed $data, mixed $pathValue, PropertyMetadataInterface $relationship): void |
966 | 966 | { |
967 | - $data = $this->parseArray($data, $relationship->getDataPath(), function ($data, $path) use ($relationship) { |
|
967 | + $data = $this->parseArray($data, $relationship->getDataPath(), function($data, $path) use ($relationship) { |
|
968 | 968 | $resType = null; |
969 | 969 | if ($this->hasValue($data, $path . '.type')) { |
970 | 970 | $resType = $this->parseString($data, $path . '.type'); |
971 | 971 | } |
972 | 972 | |
973 | 973 | $resId = null; |
974 | - if ($this->hasValue($data, $path .'.id')) { |
|
974 | + if ($this->hasValue($data, $path . '.id')) { |
|
975 | 975 | $resId = $this->getValue($data, $path . '.id'); |
976 | 976 | } |
977 | 977 | |
@@ -993,7 +993,7 @@ discard block |
||
993 | 993 | |
994 | 994 | $parsed = $this->parseResourceOrObject( |
995 | 995 | [$idx => $linkedData], |
996 | - '[' . $idx .']', |
|
996 | + '[' . $idx . ']', |
|
997 | 997 | $params[1], |
998 | 998 | $relationship |
999 | 999 | ); |
@@ -1040,7 +1040,7 @@ discard block |
||
1040 | 1040 | return; |
1041 | 1041 | } |
1042 | 1042 | |
1043 | - $errors = $this->parseArray($data, 'errors', function ($data, $path) { |
|
1043 | + $errors = $this->parseArray($data, 'errors', function($data, $path) { |
|
1044 | 1044 | $source = null; |
1045 | 1045 | if ($this->hasValue($data, $path . '.source.pointer')) { |
1046 | 1046 | $source = ['pointer' => $this->parseString($data, $path . '.source.pointer')]; |