@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | { |
| 84 | 84 | $this->filePath = $file; |
| 85 | 85 | |
| 86 | - if (!file_exists($file) || !is_readable($file)) { |
|
| 86 | + if ( ! file_exists($file) || ! is_readable($file)) { |
|
| 87 | 87 | throw new FileException('Cannot read file: ' . $file); |
| 88 | 88 | } |
| 89 | 89 | |
@@ -281,7 +281,7 @@ discard block |
||
| 281 | 281 | { |
| 282 | 282 | $this->url = $this->getCache()->get($this->getKey())['location'] ?? null; |
| 283 | 283 | |
| 284 | - if (!$this->url) { |
|
| 284 | + if ( ! $this->url) { |
|
| 285 | 285 | throw new FileException('File not found.'); |
| 286 | 286 | } |
| 287 | 287 | |
@@ -476,7 +476,7 @@ discard block |
||
| 476 | 476 | $checksum = $data['data']['checksum'] ?? null; |
| 477 | 477 | $statusCode = $response->getStatusCode(); |
| 478 | 478 | |
| 479 | - if (HttpResponse::HTTP_CREATED !== $statusCode || !$checksum) { |
|
| 479 | + if (HttpResponse::HTTP_CREATED !== $statusCode || ! $checksum) { |
|
| 480 | 480 | throw new FileException('Unable to create resource.'); |
| 481 | 481 | } |
| 482 | 482 | |
@@ -514,7 +514,7 @@ discard block |
||
| 514 | 514 | { |
| 515 | 515 | $this->partial = $state; |
| 516 | 516 | |
| 517 | - if (!$this->partial) { |
|
| 517 | + if ( ! $this->partial) { |
|
| 518 | 518 | return; |
| 519 | 519 | } |
| 520 | 520 | |