@@ -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 |
@@ -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 { |
@@ -20,6 +20,6 @@ |
||
20 | 20 | ); |
21 | 21 | } |
22 | 22 | |
23 | -require_once __DIR__ . '/composer/autoload_real.php'; |
|
23 | +require_once __DIR__.'/composer/autoload_real.php'; |
|
24 | 24 | |
25 | 25 | return ComposerAutoloaderInitFiles_External::getLoader(); |
@@ -370,18 +370,18 @@ discard block |
||
370 | 370 | private function findFileWithExtension($class, $ext) |
371 | 371 | { |
372 | 372 | // PSR-4 lookup |
373 | - $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; |
|
373 | + $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR).$ext; |
|
374 | 374 | |
375 | 375 | $first = $class[0]; |
376 | 376 | if (isset($this->prefixLengthsPsr4[$first])) { |
377 | 377 | $subPath = $class; |
378 | 378 | while (false !== $lastPos = strrpos($subPath, '\\')) { |
379 | 379 | $subPath = substr($subPath, 0, $lastPos); |
380 | - $search = $subPath . '\\'; |
|
380 | + $search = $subPath.'\\'; |
|
381 | 381 | if (isset($this->prefixDirsPsr4[$search])) { |
382 | - $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1); |
|
382 | + $pathEnd = DIRECTORY_SEPARATOR.substr($logicalPathPsr4, $lastPos + 1); |
|
383 | 383 | foreach ($this->prefixDirsPsr4[$search] as $dir) { |
384 | - if (file_exists($file = $dir . $pathEnd)) { |
|
384 | + if (file_exists($file = $dir.$pathEnd)) { |
|
385 | 385 | return $file; |
386 | 386 | } |
387 | 387 | } |
@@ -391,7 +391,7 @@ discard block |
||
391 | 391 | |
392 | 392 | // PSR-4 fallback dirs |
393 | 393 | foreach ($this->fallbackDirsPsr4 as $dir) { |
394 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { |
|
394 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr4)) { |
|
395 | 395 | return $file; |
396 | 396 | } |
397 | 397 | } |
@@ -403,14 +403,14 @@ discard block |
||
403 | 403 | . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); |
404 | 404 | } else { |
405 | 405 | // PEAR-like class name |
406 | - $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; |
|
406 | + $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR).$ext; |
|
407 | 407 | } |
408 | 408 | |
409 | 409 | if (isset($this->prefixesPsr0[$first])) { |
410 | 410 | foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { |
411 | 411 | if (0 === strpos($class, $prefix)) { |
412 | 412 | foreach ($dirs as $dir) { |
413 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
|
413 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) { |
|
414 | 414 | return $file; |
415 | 415 | } |
416 | 416 | } |
@@ -420,7 +420,7 @@ discard block |
||
420 | 420 | |
421 | 421 | // PSR-0 fallback dirs |
422 | 422 | foreach ($this->fallbackDirsPsr0 as $dir) { |
423 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
|
423 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) { |
|
424 | 424 | return $file; |
425 | 425 | } |
426 | 426 | } |