@@ -89,7 +89,7 @@ |
||
| 89 | 89 | return []; |
| 90 | 90 | } |
| 91 | 91 | |
| 92 | - array_walk($addresses, function ($readableName, $email) use (&$convertedAddresses) { |
|
| 92 | + array_walk($addresses, function($readableName, $email) use (&$convertedAddresses) { |
|
| 93 | 93 | if (is_numeric($email)) { |
| 94 | 94 | $convertedAddresses[] = new Address($readableName); |
| 95 | 95 | } else { |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | * |
| 50 | 50 | * @since 11.0.0 |
| 51 | 51 | */ |
| 52 | - public function getSize(): int|float; |
|
| 52 | + public function getSize(): int | float; |
|
| 53 | 53 | |
| 54 | 54 | /** |
| 55 | 55 | * Get the ETag |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | * @inheritdoc |
| 69 | 69 | * @since 16.0.0 |
| 70 | 70 | */ |
| 71 | - public function getSize(): int|float { |
|
| 71 | + public function getSize(): int | float { |
|
| 72 | 72 | return strlen($this->contents); |
| 73 | 73 | } |
| 74 | 74 | |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | } |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | - public function getSize($includeMounts = true): int|float { |
|
| 69 | + public function getSize($includeMounts = true): int | float { |
|
| 70 | 70 | if ($this->fileInfo) { |
| 71 | 71 | return parent::getSize($includeMounts); |
| 72 | 72 | } else { |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | /** |
| 47 | 47 | * Get the size in bytes |
| 48 | 48 | */ |
| 49 | - public function getSize(): int|float { |
|
| 49 | + public function getSize(): int | float { |
|
| 50 | 50 | return $this->file->getSize(); |
| 51 | 51 | } |
| 52 | 52 | |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | /** |
| 57 | 57 | * Get the size in bytes |
| 58 | 58 | */ |
| 59 | - public function getSize(): int|float { |
|
| 59 | + public function getSize(): int | float { |
|
| 60 | 60 | if ($this->file) { |
| 61 | 61 | return $this->file->getSize(); |
| 62 | 62 | } else { |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | return $this->file->fopen('w'); |
| 221 | 221 | } else { |
| 222 | 222 | $source = fopen('php://temp', 'w+'); |
| 223 | - return CallbackWrapper::wrap($source, null, null, null, null, function () use ($source) { |
|
| 223 | + return CallbackWrapper::wrap($source, null, null, null, null, function() use ($source) { |
|
| 224 | 224 | rewind($source); |
| 225 | 225 | $this->putContent($source); |
| 226 | 226 | }); |
@@ -65,14 +65,14 @@ discard block |
||
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | public function getETag(): string { |
| 68 | - return (string)$this->version->getRevisionId(); |
|
| 68 | + return (string) $this->version->getRevisionId(); |
|
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | /** |
| 72 | 72 | * @psalm-suppress ImplementedReturnTypeMismatch \Sabre\DAV\IFile::getSize signature does not support 32bit |
| 73 | 73 | * @return int|float |
| 74 | 74 | */ |
| 75 | - public function getSize(): int|float { |
|
| 75 | + public function getSize(): int | float { |
|
| 76 | 76 | return $this->version->getSize(); |
| 77 | 77 | } |
| 78 | 78 | |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | public function getName(): string { |
| 88 | - return (string)$this->version->getRevisionId(); |
|
| 88 | + return (string) $this->version->getRevisionId(); |
|
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | public function setName($name) { |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | * @return int|float |
| 69 | 69 | * @since 15.0.0 |
| 70 | 70 | */ |
| 71 | - public function getSize(): int|float; |
|
| 71 | + public function getSize(): int | float; |
|
| 72 | 72 | |
| 73 | 73 | /** |
| 74 | 74 | * Get the name of the source file at the time of making this version |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | * @psalm-suppress ImplementedReturnTypeMismatch \Sabre\DAV\IFile::getSize signature does not support 32bit |
| 62 | 62 | * @return int|float |
| 63 | 63 | */ |
| 64 | - public function getSize(): int|float { |
|
| 64 | + public function getSize(): int | float { |
|
| 65 | 65 | return $this->data->getSize(); |
| 66 | 66 | } |
| 67 | 67 | |