@@ -6,9 +6,9 @@ |
||
| 6 | 6 | $baseDir = $vendorDir; |
| 7 | 7 | |
| 8 | 8 | return array( |
| 9 | - 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', |
|
| 10 | - 'OCA\\WeatherStatus\\AppInfo\\Application' => $baseDir . '/../lib/AppInfo/Application.php', |
|
| 11 | - 'OCA\\WeatherStatus\\Capabilities' => $baseDir . '/../lib/Capabilities.php', |
|
| 12 | - 'OCA\\WeatherStatus\\Controller\\WeatherStatusController' => $baseDir . '/../lib/Controller/WeatherStatusController.php', |
|
| 13 | - 'OCA\\WeatherStatus\\Service\\WeatherStatusService' => $baseDir . '/../lib/Service/WeatherStatusService.php', |
|
| 9 | + 'Composer\\InstalledVersions' => $vendorDir.'/composer/InstalledVersions.php', |
|
| 10 | + 'OCA\\WeatherStatus\\AppInfo\\Application' => $baseDir.'/../lib/AppInfo/Application.php', |
|
| 11 | + 'OCA\\WeatherStatus\\Capabilities' => $baseDir.'/../lib/Capabilities.php', |
|
| 12 | + 'OCA\\WeatherStatus\\Controller\\WeatherStatusController' => $baseDir.'/../lib/Controller/WeatherStatusController.php', |
|
| 13 | + 'OCA\\WeatherStatus\\Service\\WeatherStatusService' => $baseDir.'/../lib/Service/WeatherStatusService.php', |
|
| 14 | 14 | ); |
@@ -5,7 +5,7 @@ discard block |
||
| 5 | 5 | 'version' => 'dev-master', |
| 6 | 6 | 'reference' => '3bfc5a4d959faebd8a76470d2832390598c7981e', |
| 7 | 7 | 'type' => 'library', |
| 8 | - 'install_path' => __DIR__ . '/../', |
|
| 8 | + 'install_path' => __DIR__.'/../', |
|
| 9 | 9 | 'aliases' => array(), |
| 10 | 10 | 'dev' => false, |
| 11 | 11 | ), |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | 'version' => 'dev-master', |
| 16 | 16 | 'reference' => '3bfc5a4d959faebd8a76470d2832390598c7981e', |
| 17 | 17 | 'type' => 'library', |
| 18 | - 'install_path' => __DIR__ . '/../', |
|
| 18 | + 'install_path' => __DIR__.'/../', |
|
| 19 | 19 | 'aliases' => array(), |
| 20 | 20 | 'dev_requirement' => false, |
| 21 | 21 | ), |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | return implode(' || ', $ranges); |
| 157 | 157 | } |
| 158 | 158 | |
| 159 | - throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); |
|
| 159 | + throw new \OutOfBoundsException('Package "'.$packageName.'" is not installed'); |
|
| 160 | 160 | } |
| 161 | 161 | |
| 162 | 162 | /** |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | return $installed['versions'][$packageName]['version']; |
| 178 | 178 | } |
| 179 | 179 | |
| 180 | - throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); |
|
| 180 | + throw new \OutOfBoundsException('Package "'.$packageName.'" is not installed'); |
|
| 181 | 181 | } |
| 182 | 182 | |
| 183 | 183 | /** |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | return $installed['versions'][$packageName]['pretty_version']; |
| 199 | 199 | } |
| 200 | 200 | |
| 201 | - throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); |
|
| 201 | + throw new \OutOfBoundsException('Package "'.$packageName.'" is not installed'); |
|
| 202 | 202 | } |
| 203 | 203 | |
| 204 | 204 | /** |
@@ -219,7 +219,7 @@ discard block |
||
| 219 | 219 | return $installed['versions'][$packageName]['reference']; |
| 220 | 220 | } |
| 221 | 221 | |
| 222 | - throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); |
|
| 222 | + throw new \OutOfBoundsException('Package "'.$packageName.'" is not installed'); |
|
| 223 | 223 | } |
| 224 | 224 | |
| 225 | 225 | /** |
@@ -236,7 +236,7 @@ discard block |
||
| 236 | 236 | return isset($installed['versions'][$packageName]['install_path']) ? $installed['versions'][$packageName]['install_path'] : null; |
| 237 | 237 | } |
| 238 | 238 | |
| 239 | - throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); |
|
| 239 | + throw new \OutOfBoundsException('Package "'.$packageName.'" is not installed'); |
|
| 240 | 240 | } |
| 241 | 241 | |
| 242 | 242 | /** |
@@ -265,7 +265,7 @@ discard block |
||
| 265 | 265 | // only require the installed.php file if this file is loaded from its dumped location, |
| 266 | 266 | // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 |
| 267 | 267 | if (substr(__DIR__, -8, 1) !== 'C') { |
| 268 | - self::$installed = include __DIR__ . '/installed.php'; |
|
| 268 | + self::$installed = include __DIR__.'/installed.php'; |
|
| 269 | 269 | } else { |
| 270 | 270 | self::$installed = array(); |
| 271 | 271 | } |
@@ -338,7 +338,7 @@ discard block |
||
| 338 | 338 | // only require the installed.php file if this file is loaded from its dumped location, |
| 339 | 339 | // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 |
| 340 | 340 | if (substr(__DIR__, -8, 1) !== 'C') { |
| 341 | - self::$installed = require __DIR__ . '/installed.php'; |
|
| 341 | + self::$installed = require __DIR__.'/installed.php'; |
|
| 342 | 342 | } else { |
| 343 | 343 | self::$installed = array(); |
| 344 | 344 | } |
@@ -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 | ); |
@@ -6,31 +6,31 @@ |
||
| 6 | 6 | |
| 7 | 7 | class ComposerStaticInitWeatherStatus |
| 8 | 8 | { |
| 9 | - public static $prefixLengthsPsr4 = array ( |
|
| 9 | + public static $prefixLengthsPsr4 = array( |
|
| 10 | 10 | 'O' => |
| 11 | - array ( |
|
| 11 | + array( |
|
| 12 | 12 | 'OCA\\WeatherStatus\\' => 18, |
| 13 | 13 | ), |
| 14 | 14 | ); |
| 15 | 15 | |
| 16 | - public static $prefixDirsPsr4 = array ( |
|
| 16 | + public static $prefixDirsPsr4 = array( |
|
| 17 | 17 | 'OCA\\WeatherStatus\\' => |
| 18 | - array ( |
|
| 19 | - 0 => __DIR__ . '/..' . '/../lib', |
|
| 18 | + array( |
|
| 19 | + 0 => __DIR__.'/..'.'/../lib', |
|
| 20 | 20 | ), |
| 21 | 21 | ); |
| 22 | 22 | |
| 23 | - public static $classMap = array ( |
|
| 24 | - 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', |
|
| 25 | - 'OCA\\WeatherStatus\\AppInfo\\Application' => __DIR__ . '/..' . '/../lib/AppInfo/Application.php', |
|
| 26 | - 'OCA\\WeatherStatus\\Capabilities' => __DIR__ . '/..' . '/../lib/Capabilities.php', |
|
| 27 | - 'OCA\\WeatherStatus\\Controller\\WeatherStatusController' => __DIR__ . '/..' . '/../lib/Controller/WeatherStatusController.php', |
|
| 28 | - 'OCA\\WeatherStatus\\Service\\WeatherStatusService' => __DIR__ . '/..' . '/../lib/Service/WeatherStatusService.php', |
|
| 23 | + public static $classMap = array( |
|
| 24 | + 'Composer\\InstalledVersions' => __DIR__.'/..'.'/composer/InstalledVersions.php', |
|
| 25 | + 'OCA\\WeatherStatus\\AppInfo\\Application' => __DIR__.'/..'.'/../lib/AppInfo/Application.php', |
|
| 26 | + 'OCA\\WeatherStatus\\Capabilities' => __DIR__.'/..'.'/../lib/Capabilities.php', |
|
| 27 | + 'OCA\\WeatherStatus\\Controller\\WeatherStatusController' => __DIR__.'/..'.'/../lib/Controller/WeatherStatusController.php', |
|
| 28 | + 'OCA\\WeatherStatus\\Service\\WeatherStatusService' => __DIR__.'/..'.'/../lib/Service/WeatherStatusService.php', |
|
| 29 | 29 | ); |
| 30 | 30 | |
| 31 | 31 | public static function getInitializer(ClassLoader $loader) |
| 32 | 32 | { |
| 33 | - return \Closure::bind(function () use ($loader) { |
|
| 33 | + return \Closure::bind(function() use ($loader) { |
|
| 34 | 34 | $loader->prefixLengthsPsr4 = ComposerStaticInitWeatherStatus::$prefixLengthsPsr4; |
| 35 | 35 | $loader->prefixDirsPsr4 = ComposerStaticInitWeatherStatus::$prefixDirsPsr4; |
| 36 | 36 | $loader->classMap = ComposerStaticInitWeatherStatus::$classMap; |
@@ -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); |
@@ -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 ComposerAutoloaderInitWeatherStatus::getLoader(); |