Passed
Branch master (9ba31e)
by Petr
11:08
created
Category
php-src/Response/CancelResponse.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,9 +36,9 @@
 block discarded – undo
36 36
     public function jsonSerialize()
37 37
     {
38 38
         return [
39
-            'sharedKey' => (string)$this->sharedKey,
40
-            'status' => (string)$this->status,
41
-            'errorMessage' => (string)$this->errorMessage,
39
+            'sharedKey' => (string) $this->sharedKey,
40
+            'status' => (string) $this->status,
41
+            'errorMessage' => (string) $this->errorMessage,
42 42
         ];
43 43
     }
44 44
 }
Please login to merge, or discard this patch.
php-src/Response/DoneResponse.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,10 +56,10 @@
 block discarded – undo
56 56
     public function jsonSerialize()
57 57
     {
58 58
         return [
59
-            'name' => (string)$this->data->fileName,
60
-            'sharedKey' => (string)$this->sharedKey,
61
-            'status' => (string)$this->status,
62
-            'errorMessage' => (string)$this->errorMessage,
59
+            'name' => (string) $this->data->fileName,
60
+            'sharedKey' => (string) $this->sharedKey,
61
+            'status' => (string) $this->status,
62
+            'errorMessage' => (string) $this->errorMessage,
63 63
         ];
64 64
     }
65 65
 }
Please login to merge, or discard this patch.
php-src/Response/InitResponse.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -41,13 +41,13 @@
 block discarded – undo
41 41
     public function jsonSerialize()
42 42
     {
43 43
         return [
44
-            'name' => (string)$this->data->fileName,
45
-            'sharedKey' => (string)$this->sharedKey,
46
-            'totalParts' => (int)$this->data->partsCount,
47
-            'lastKnownPart' => (int)$this->data->lastKnownPart,
48
-            'partSize' => (int)$this->data->bytesPerPart,
49
-            'status' => (string)$this->status,
50
-            'errorMessage' => (string)$this->errorMessage,
44
+            'name' => (string) $this->data->fileName,
45
+            'sharedKey' => (string) $this->sharedKey,
46
+            'totalParts' => (int) $this->data->partsCount,
47
+            'lastKnownPart' => (int) $this->data->lastKnownPart,
48
+            'partSize' => (int) $this->data->bytesPerPart,
49
+            'status' => (string) $this->status,
50
+            'errorMessage' => (string) $this->errorMessage,
51 51
         ];
52 52
     }
53 53
 }
Please login to merge, or discard this patch.
php-src/Response/CheckResponse.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,10 +40,10 @@
 block discarded – undo
40 40
     public function jsonSerialize()
41 41
     {
42 42
         return [
43
-            'sharedKey' => (string)$this->sharedKey,
44
-            'checksum' => (string)$this->checksum,
45
-            'status' => (string)$this->status,
46
-            'errorMessage' => (string)$this->errorMessage,
43
+            'sharedKey' => (string) $this->sharedKey,
44
+            'checksum' => (string) $this->checksum,
45
+            'status' => (string) $this->status,
46
+            'errorMessage' => (string) $this->errorMessage,
47 47
         ];
48 48
     }
49 49
 }
Please login to merge, or discard this patch.
php-src/InfoStorage/Storage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
     public function load(string $key): string
47 47
     {
48 48
         try {
49
-            return (string)$this->storage->read($key);
49
+            return (string) $this->storage->read($key);
50 50
         } catch (StorageException $ex) {
51 51
             throw new UploadException($this->lang->uppDriveFileCannotRead($key), $ex->getCode(), $ex);
52 52
         }
Please login to merge, or discard this patch.
php-src/InfoStorage/Redis.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
      */
48 48
     public function load(string $key): string
49 49
     {
50
-        return (string)$this->redis->get($key);
50
+        return (string) $this->redis->get($key);
51 51
     }
52 52
 
53 53
     /**
Please login to merge, or discard this patch.
php-src/InfoStorage/Predis.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
      */
47 47
     public function load(string $key): string
48 48
     {
49
-        return (string)$this->redis->get($key);
49
+        return (string) $this->redis->get($key);
50 50
     }
51 51
 
52 52
     /**
Please login to merge, or discard this patch.
php-src/InfoFormat/Json.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,6 +22,6 @@
 block discarded – undo
22 22
 
23 23
     public function toFormat(Data $data): string
24 24
     {
25
-        return (string)json_encode($data);
25
+        return (string) json_encode($data);
26 26
     }
27 27
 }
Please login to merge, or discard this patch.
php-src/InfoFormat/Data.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -50,12 +50,12 @@
 block discarded – undo
50 50
 
51 51
     public function sanitizeData(): self
52 52
     {
53
-        $this->fileName = (string)$this->fileName;
54
-        $this->tempLocation = (string)$this->tempLocation;
55
-        $this->fileSize = (int)$this->fileSize;
56
-        $this->partsCount = (int)$this->partsCount;
57
-        $this->bytesPerPart = (int)$this->bytesPerPart;
58
-        $this->lastKnownPart = (int)$this->lastKnownPart;
53
+        $this->fileName = (string) $this->fileName;
54
+        $this->tempLocation = (string) $this->tempLocation;
55
+        $this->fileSize = (int) $this->fileSize;
56
+        $this->partsCount = (int) $this->partsCount;
57
+        $this->bytesPerPart = (int) $this->bytesPerPart;
58
+        $this->lastKnownPart = (int) $this->lastKnownPart;
59 59
         return $this;
60 60
     }
61 61
 }
Please login to merge, or discard this patch.