@@ -59,7 +59,7 @@ |
||
59 | 59 | array $files = array(), |
60 | 60 | array $headers = array() |
61 | 61 | ) { |
62 | - $query = array_replace($query, [ 'oauth_token' => $this->token ]); |
|
62 | + $query = array_replace($query, ['oauth_token' => $this->token]); |
|
63 | 63 | |
64 | 64 | return $this->client->call($method, $path, $query, $postFields, $files, $headers); |
65 | 65 | } |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | array $files = array(), |
85 | 85 | array $headers = array() |
86 | 86 | ) { |
87 | - $headers = array_replace($headers, [ 'Accept' => $this->getAcceptHeader() ]); |
|
87 | + $headers = array_replace($headers, ['Accept' => $this->getAcceptHeader()]); |
|
88 | 88 | $responseBody = $this->client->call($method, $path, $query, $postFields, $files, $headers); |
89 | 89 | |
90 | 90 | $decodedResponse = @json_decode($responseBody); |
@@ -104,7 +104,6 @@ discard block |
||
104 | 104 | private function getAcceptHeader() |
105 | 105 | { |
106 | 106 | return $this->isExtendedModeEnabled() ? |
107 | - 'application/vnd.phraseanet.record-extended+json' : |
|
108 | - 'application/json'; |
|
107 | + 'application/vnd.phraseanet.record-extended+json' : 'application/json'; |
|
109 | 108 | } |
110 | 109 | } |
@@ -52,7 +52,7 @@ |
||
52 | 52 | */ |
53 | 53 | public function setResponseBody($body) |
54 | 54 | { |
55 | - $this->responseBody = (string)$body; |
|
55 | + $this->responseBody = (string) $body; |
|
56 | 56 | |
57 | 57 | return $this; |
58 | 58 | } |