@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | * @param array $queryParameters all query parameters defined by the specification |
37 | 37 | * @param array $document the request jsonapi document |
38 | 38 | */ |
39 | - public function __construct($selfLink='', array $queryParameters=[], array $document=[]) { |
|
39 | + public function __construct($selfLink = '', array $queryParameters = [], array $document = []) { |
|
40 | 40 | $this->selfLink = $selfLink; |
41 | 41 | $this->queryParameters = $queryParameters; |
42 | 42 | $this->document = $document; |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | $document = $_POST; |
57 | 57 | if ($document === [] && isset($_SERVER['CONTENT_TYPE'])) { |
58 | 58 | $documentIsJsonapi = (strpos($_SERVER['CONTENT_TYPE'], Document::CONTENT_TYPE_OFFICIAL) !== false); |
59 | - $documentIsJson = (strpos($_SERVER['CONTENT_TYPE'], Document::CONTENT_TYPE_DEBUG) !== false); |
|
59 | + $documentIsJson = (strpos($_SERVER['CONTENT_TYPE'], Document::CONTENT_TYPE_DEBUG) !== false); |
|
60 | 60 | |
61 | 61 | if ($documentIsJsonapi || $documentIsJson) { |
62 | 62 | $document = json_decode(file_get_contents('php://input'), true); |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | * @param array $options optional {@see RequestParser::$defaults} |
127 | 127 | * @return string[]|array |
128 | 128 | */ |
129 | - public function getIncludePaths(array $options=[]) { |
|
129 | + public function getIncludePaths(array $options = []) { |
|
130 | 130 | if ($this->queryParameters['include'] === '') { |
131 | 131 | return []; |
132 | 132 | } |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | * @var string $order one of the RequestParser::SORT_* constants |
196 | 196 | * } |
197 | 197 | */ |
198 | - public function getSortFields(array $options=[]) { |
|
198 | + public function getSortFields(array $options = []) { |
|
199 | 199 | if ($this->queryParameters['sort'] === '') { |
200 | 200 | return []; |
201 | 201 | } |