@@ -61,7 +61,7 @@ |
||
61 | 61 | private static function _autoload($base, $classname) |
62 | 62 | { |
63 | 63 | $parts = explode(self::NS_GLUE, $classname); |
64 | - $path = $base . self::DIR_GLUE . implode(self::DIR_GLUE, $parts) . '.php'; |
|
64 | + $path = $base.self::DIR_GLUE.implode(self::DIR_GLUE, $parts).'.php'; |
|
65 | 65 | |
66 | 66 | if (file_exists($path)) { |
67 | 67 | require_once($path); |
@@ -87,8 +87,9 @@ |
||
87 | 87 | |
88 | 88 | foreach ($handlers as $mime => $handler) { |
89 | 89 | // Don't overwrite if the handler has already been registered |
90 | - if (Httpful::hasParserRegistered($mime)) |
|
91 | - continue; |
|
90 | + if (Httpful::hasParserRegistered($mime)) { |
|
91 | + continue; |
|
92 | + } |
|
92 | 93 | Httpful::register($mime, $handler); |
93 | 94 | } |
94 | 95 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -require(__DIR__ . '/../bootstrap.php'); |
|
2 | +require(__DIR__.'/../bootstrap.php'); |
|
3 | 3 | |
4 | 4 | // We can override the default parser configuration options be registering |
5 | 5 | // a parser with different configuration options for a particular mime type |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | { |
36 | 36 | $serialized = ''; |
37 | 37 | foreach ($payload as $line) { |
38 | - $serialized .= '"' . implode('","', $line) . '"' . "\n"; |
|
38 | + $serialized .= '"'.implode('","', $line).'"'."\n"; |
|
39 | 39 | } |
40 | 40 | return $serialized; |
41 | 41 | } |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -require(__DIR__ . '/../bootstrap.php'); |
|
3 | +require(__DIR__.'/../bootstrap.php'); |
|
4 | 4 | |
5 | 5 | use \Httpful\Request; |
6 | 6 |
@@ -2,11 +2,11 @@ |
||
2 | 2 | /** |
3 | 3 | * Grab some The Dead Weather albums from Freebase |
4 | 4 | */ |
5 | -require(__DIR__ . '/../bootstrap.php'); |
|
5 | +require(__DIR__.'/../bootstrap.php'); |
|
6 | 6 | |
7 | 7 | $uri = "https://www.googleapis.com/freebase/v1/mqlread?query=%7B%22type%22:%22/music/artist%22%2C%22name%22:%22The%20Dead%20Weather%22%2C%22album%22:%5B%5D%7D"; |
8 | 8 | $response = \Httpful\Request::get($uri) |
9 | 9 | ->expectsJson() |
10 | 10 | ->sendIt(); |
11 | 11 | |
12 | -echo 'The Dead Weather has ' . count($response->body->result->album) . " albums.\n"; |
|
13 | 12 | \ No newline at end of file |
13 | +echo 'The Dead Weather has '.count($response->body->result->album)." albums.\n"; |
|
14 | 14 | \ No newline at end of file |
@@ -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 | ); |