@@ -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 | } |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | public static function loadClassLoader($class) |
10 | 10 | { |
11 | 11 | if ('Composer\Autoload\ClassLoader' === $class) { |
12 | - require __DIR__ . '/ClassLoader.php'; |
|
12 | + require __DIR__.'/ClassLoader.php'; |
|
13 | 13 | } |
14 | 14 | } |
15 | 15 | |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); |
27 | 27 | spl_autoload_unregister(array('ComposerAutoloaderInitFiles_External', 'loadClassLoader')); |
28 | 28 | |
29 | - require __DIR__ . '/autoload_static.php'; |
|
29 | + require __DIR__.'/autoload_static.php'; |
|
30 | 30 | call_user_func(\Composer\Autoload\ComposerStaticInitFiles_External::getInitializer($loader)); |
31 | 31 | |
32 | 32 | $loader->setClassMapAuthoritative(true); |
@@ -135,13 +135,13 @@ |
||
135 | 135 | $this->progress->finish(); |
136 | 136 | $this->output->writeln(''); |
137 | 137 | } elseif ($event instanceof RepairStepEvent) { |
138 | - $this->output->writeln('<info> - ' . $event->getStepName() . '</info>'); |
|
138 | + $this->output->writeln('<info> - '.$event->getStepName().'</info>'); |
|
139 | 139 | } elseif ($event instanceof RepairInfoEvent) { |
140 | - $this->output->writeln('<info> - ' . $event->getMessage() . '</info>'); |
|
140 | + $this->output->writeln('<info> - '.$event->getMessage().'</info>'); |
|
141 | 141 | } elseif ($event instanceof RepairWarningEvent) { |
142 | - $this->output->writeln('<comment> - WARNING: ' . $event->getMessage() . '</comment>'); |
|
142 | + $this->output->writeln('<comment> - WARNING: '.$event->getMessage().'</comment>'); |
|
143 | 143 | } elseif ($event instanceof RepairErrorEvent) { |
144 | - $this->output->writeln('<error> - ERROR: ' . $event->getMessage() . '</error>'); |
|
144 | + $this->output->writeln('<error> - ERROR: '.$event->getMessage().'</error>'); |
|
145 | 145 | $this->errored = true; |
146 | 146 | } |
147 | 147 | } |
@@ -81,8 +81,8 @@ discard block |
||
81 | 81 | $sectionSettings = array_reduce($sectionSettings, [$this, 'getDelegatedSettings'], []); |
82 | 82 | $settings = array_merge( |
83 | 83 | $settings, |
84 | - array_map(function (IDelegatedSettings $setting) use ($section) { |
|
85 | - $sectionName = $section->getName() . ($setting->getName() !== null ? ' - ' . $setting->getName() : ''); |
|
84 | + array_map(function(IDelegatedSettings $setting) use ($section) { |
|
85 | + $sectionName = $section->getName().($setting->getName() !== null ? ' - '.$setting->getName() : ''); |
|
86 | 86 | return [ |
87 | 87 | 'class' => get_class($setting), |
88 | 88 | 'sectionName' => $sectionName, |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | ); |
94 | 94 | } |
95 | 95 | } |
96 | - usort($settings, function (array $a, array $b) { |
|
96 | + usort($settings, function(array $a, array $b) { |
|
97 | 97 | if ($a['priority'] == $b['priority']) { |
98 | 98 | return 0; |
99 | 99 | } |