Completed
Pull Request — master (#152)
by Ankit
02:29
created
src/Tus/Client.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
514 514
     {
515 515
         $this->partial = $state;
516 516
 
517
-        if (!$this->partial) {
517
+        if ( ! $this->partial) {
518 518
             return;
519 519
         }
520 520
 
Please login to merge, or discard this patch.