@@ -6,5 +6,5 @@ |
||
| 6 | 6 | $baseDir = $vendorDir; |
| 7 | 7 | |
| 8 | 8 | return array( |
| 9 | - 'OCA\\WeatherStatus\\' => array($baseDir . '/../lib'), |
|
| 9 | + 'OCA\\WeatherStatus\\' => array($baseDir.'/../lib'), |
|
| 10 | 10 | ); |
@@ -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('ComposerAutoloaderInitWeatherStatus', 'loadClassLoader')); |
| 28 | 28 | |
| 29 | - require __DIR__ . '/autoload_static.php'; |
|
| 29 | + require __DIR__.'/autoload_static.php'; |
|
| 30 | 30 | call_user_func(\Composer\Autoload\ComposerStaticInitWeatherStatus::getInitializer($loader)); |
| 31 | 31 | |
| 32 | 32 | $loader->setClassMapAuthoritative(true); |
@@ -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 | }); |