@@ -185,11 +185,11 @@ discard block |
||
| 185 | 185 | |
| 186 | 186 | $repositoryResponse = RepositoryResponse::fromResponse($response); |
| 187 | 187 | |
| 188 | - if (!$repositoryResponse->isSuccessful()) { |
|
| 188 | + if ( ! $repositoryResponse->isSuccessful()) { |
|
| 189 | 189 | throw ReportException::failed($repositoryResponse); |
| 190 | 190 | } |
| 191 | 191 | |
| 192 | - if (!isset($repositoryResponse->getResponseAsArray()['response']['report_id'])) { |
|
| 192 | + if ( ! isset($repositoryResponse->getResponseAsArray()['response']['report_id'])) { |
|
| 193 | 193 | throw ReportException::missingIndex('response->report_id'); |
| 194 | 194 | } |
| 195 | 195 | |
@@ -217,15 +217,15 @@ discard block |
||
| 217 | 217 | |
| 218 | 218 | $repositoryResponse = RepositoryResponse::fromResponse($response); |
| 219 | 219 | |
| 220 | - if (!$repositoryResponse->isSuccessful()) { |
|
| 220 | + if ( ! $repositoryResponse->isSuccessful()) { |
|
| 221 | 221 | throw ReportException::failed($repositoryResponse); |
| 222 | 222 | } |
| 223 | 223 | |
| 224 | - if (!isset($repositoryResponse->getResponseAsArray()['response']['report'])) { |
|
| 224 | + if ( ! isset($repositoryResponse->getResponseAsArray()['response']['report'])) { |
|
| 225 | 225 | throw ReportException::missingIndex('response->report'); |
| 226 | 226 | } |
| 227 | 227 | |
| 228 | - if (!isset($repositoryResponse->getResponseAsArray()['response']['execution_status'])) { |
|
| 228 | + if ( ! isset($repositoryResponse->getResponseAsArray()['response']['execution_status'])) { |
|
| 229 | 229 | throw ReportException::missingIndex('response->execution_status'); |
| 230 | 230 | } |
| 231 | 231 | |
@@ -248,11 +248,11 @@ discard block |
||
| 248 | 248 | */ |
| 249 | 249 | public function getReport(ReportStatus $reportStatus) |
| 250 | 250 | { |
| 251 | - if (!$reportStatus->isReady()) { |
|
| 251 | + if ( ! $reportStatus->isReady()) { |
|
| 252 | 252 | throw ReportException::validation('report status not ready'); |
| 253 | 253 | } |
| 254 | 254 | |
| 255 | - if (!$reportStatus->getUrl()) { |
|
| 255 | + if ( ! $reportStatus->getUrl()) { |
|
| 256 | 256 | throw ReportException::validation('missing url in the report status'); |
| 257 | 257 | } |
| 258 | 258 | |
@@ -271,7 +271,7 @@ discard block |
||
| 271 | 271 | $lines = explode(PHP_EOL, $response->getBody()->getContents()); |
| 272 | 272 | $result = []; |
| 273 | 273 | foreach ($lines as $line) { |
| 274 | - if (!empty($line)) { |
|
| 274 | + if ( ! empty($line)) { |
|
| 275 | 275 | $result[] = str_getcsv($line); |
| 276 | 276 | } |
| 277 | 277 | } |