@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | // XML Example from GitHub |
3 | -require(__DIR__ . '/../bootstrap.php'); |
|
3 | +require(__DIR__.'/../bootstrap.php'); |
|
4 | 4 | use \Httpful\Request; |
5 | 5 | |
6 | 6 | $uri = 'https://github.com/api/v2/xml/user/show/nategood'; |
7 | 7 | $request = Request::get($uri)->send(); |
8 | 8 | |
9 | -echo "{$request->body->name} joined GitHub on " . date('M jS', strtotime($request->body->{'created-at'})) ."\n"; |
|
10 | 9 | \ No newline at end of file |
10 | +echo "{$request->body->name} joined GitHub on ".date('M jS', strtotime($request->body->{'created-at'}))."\n"; |
|
11 | 11 | \ No newline at end of file |
@@ -2,6 +2,6 @@ |
||
2 | 2 | |
3 | 3 | // autoload.php @generated by Composer |
4 | 4 | |
5 | -require_once __DIR__ . '/composer/autoload_real.php'; |
|
5 | +require_once __DIR__.'/composer/autoload_real.php'; |
|
6 | 6 | |
7 | 7 | return ComposerAutoloaderInite9b98626d34214d615c6aa9a49f5e66e::getLoader(); |
@@ -37,7 +37,7 @@ |
||
37 | 37 | $result = ''; |
38 | 38 | $length = strlen($str); |
39 | 39 | for ($i = 0; $i < $length; $i++) { |
40 | - $result .= ($str[$i] === $lowerCase[$i] ? '' : $delimiter) . $lowerCase[$i]; |
|
40 | + $result .= ($str[$i] === $lowerCase[$i] ? '' : $delimiter).$lowerCase[$i]; |
|
41 | 41 | } |
42 | 42 | return $result; |
43 | 43 | } |
@@ -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 | |
@@ -25,21 +25,21 @@ discard block |
||
25 | 25 | |
26 | 26 | $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); |
27 | 27 | if ($useStaticLoader) { |
28 | - require_once __DIR__ . '/autoload_static.php'; |
|
28 | + require_once __DIR__.'/autoload_static.php'; |
|
29 | 29 | |
30 | 30 | call_user_func(\Composer\Autoload\ComposerStaticInite9b98626d34214d615c6aa9a49f5e66e::getInitializer($loader)); |
31 | 31 | } else { |
32 | - $map = require __DIR__ . '/autoload_namespaces.php'; |
|
32 | + $map = require __DIR__.'/autoload_namespaces.php'; |
|
33 | 33 | foreach ($map as $namespace => $path) { |
34 | 34 | $loader->set($namespace, $path); |
35 | 35 | } |
36 | 36 | |
37 | - $map = require __DIR__ . '/autoload_psr4.php'; |
|
37 | + $map = require __DIR__.'/autoload_psr4.php'; |
|
38 | 38 | foreach ($map as $namespace => $path) { |
39 | 39 | $loader->setPsr4($namespace, $path); |
40 | 40 | } |
41 | 41 | |
42 | - $classMap = require __DIR__ . '/autoload_classmap.php'; |
|
42 | + $classMap = require __DIR__.'/autoload_classmap.php'; |
|
43 | 43 | if ($classMap) { |
44 | 44 | $loader->addClassMap($classMap); |
45 | 45 | } |
@@ -6,6 +6,6 @@ |
||
6 | 6 | $baseDir = dirname($vendorDir); |
7 | 7 | |
8 | 8 | return array( |
9 | - 'Pagantis\\OrdersApiClient\\' => array($vendorDir . '/pagantis/orders-api-client/src'), |
|
10 | - 'Pagantis\\ModuleUtils\\' => array($vendorDir . '/pagantis/module-utils/src'), |
|
9 | + 'Pagantis\\OrdersApiClient\\' => array($vendorDir.'/pagantis/orders-api-client/src'), |
|
10 | + 'Pagantis\\ModuleUtils\\' => array($vendorDir.'/pagantis/module-utils/src'), |
|
11 | 11 | ); |
@@ -6,5 +6,5 @@ |
||
6 | 6 | $baseDir = dirname($vendorDir); |
7 | 7 | |
8 | 8 | return array( |
9 | - 'Httpful' => array($vendorDir . '/nategood/httpful/src'), |
|
9 | + 'Httpful' => array($vendorDir.'/nategood/httpful/src'), |
|
10 | 10 | ); |
@@ -6,42 +6,42 @@ |
||
6 | 6 | |
7 | 7 | class ComposerStaticInite9b98626d34214d615c6aa9a49f5e66e |
8 | 8 | { |
9 | - public static $prefixLengthsPsr4 = array ( |
|
9 | + public static $prefixLengthsPsr4 = array( |
|
10 | 10 | 'P' => |
11 | - array ( |
|
11 | + array( |
|
12 | 12 | 'Pagantis\\OrdersApiClient\\' => 25, |
13 | 13 | 'Pagantis\\ModuleUtils\\' => 21, |
14 | 14 | ), |
15 | 15 | ); |
16 | 16 | |
17 | - public static $prefixDirsPsr4 = array ( |
|
17 | + public static $prefixDirsPsr4 = array( |
|
18 | 18 | 'Pagantis\\OrdersApiClient\\' => |
19 | - array ( |
|
20 | - 0 => __DIR__ . '/..' . '/pagantis/orders-api-client/src', |
|
19 | + array( |
|
20 | + 0 => __DIR__.'/..'.'/pagantis/orders-api-client/src', |
|
21 | 21 | ), |
22 | 22 | 'Pagantis\\ModuleUtils\\' => |
23 | - array ( |
|
24 | - 0 => __DIR__ . '/..' . '/pagantis/module-utils/src', |
|
23 | + array( |
|
24 | + 0 => __DIR__.'/..'.'/pagantis/module-utils/src', |
|
25 | 25 | ), |
26 | 26 | ); |
27 | 27 | |
28 | - public static $prefixesPsr0 = array ( |
|
28 | + public static $prefixesPsr0 = array( |
|
29 | 29 | 'H' => |
30 | - array ( |
|
30 | + array( |
|
31 | 31 | 'Httpful' => |
32 | - array ( |
|
33 | - 0 => __DIR__ . '/..' . '/nategood/httpful/src', |
|
32 | + array( |
|
33 | + 0 => __DIR__.'/..'.'/nategood/httpful/src', |
|
34 | 34 | ), |
35 | 35 | ), |
36 | 36 | ); |
37 | 37 | |
38 | - public static $classMap = array ( |
|
39 | - 'Nayjest\\StrCaseConverter\\Str' => __DIR__ . '/..' . '/nayjest/str-case-converter/src/Str.php', |
|
38 | + public static $classMap = array( |
|
39 | + 'Nayjest\\StrCaseConverter\\Str' => __DIR__.'/..'.'/nayjest/str-case-converter/src/Str.php', |
|
40 | 40 | ); |
41 | 41 | |
42 | 42 | public static function getInitializer(ClassLoader $loader) |
43 | 43 | { |
44 | - return \Closure::bind(function () use ($loader) { |
|
44 | + return \Closure::bind(function() use ($loader) { |
|
45 | 45 | $loader->prefixLengthsPsr4 = ComposerStaticInite9b98626d34214d615c6aa9a49f5e66e::$prefixLengthsPsr4; |
46 | 46 | $loader->prefixDirsPsr4 = ComposerStaticInite9b98626d34214d615c6aa9a49f5e66e::$prefixDirsPsr4; |
47 | 47 | $loader->prefixesPsr0 = ComposerStaticInite9b98626d34214d615c6aa9a49f5e66e::$prefixesPsr0; |
@@ -6,5 +6,5 @@ |
||
6 | 6 | $baseDir = dirname($vendorDir); |
7 | 7 | |
8 | 8 | return array( |
9 | - 'Nayjest\\StrCaseConverter\\Str' => $vendorDir . '/nayjest/str-case-converter/src/Str.php', |
|
9 | + 'Nayjest\\StrCaseConverter\\Str' => $vendorDir.'/nayjest/str-case-converter/src/Str.php', |
|
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 | } |