@@ -36,9 +36,9 @@ |
||
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 | } |
@@ -56,10 +56,10 @@ |
||
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 | } |
@@ -41,13 +41,13 @@ |
||
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 | } |
@@ -40,10 +40,10 @@ |
||
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 | } |
@@ -46,7 +46,7 @@ |
||
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 | } |
@@ -47,7 +47,7 @@ |
||
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 | /** |
@@ -46,7 +46,7 @@ |
||
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 | /** |
@@ -22,6 +22,6 @@ |
||
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 | } |
@@ -50,12 +50,12 @@ |
||
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 | } |