@@ -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 | } |
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | $this->assertEquals($jsonExceptionResponse->getResult(), MerchantOrderNotFoundException::ERROR_MESSAGE); |
| 91 | 91 | } |
| 92 | 92 | |
| 93 | - /** |
|
| 93 | + /** |
|
| 94 | 94 | * testSetExceptionWithMerchantConfigurationNotFoundException |
| 95 | 95 | */ |
| 96 | 96 | public function testSetExceptionWithMerchantConfigurationNotFoundException() |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | { |
| 70 | 70 | header("HTTP/1.1 ".$this->getStatusCode(), true, $this->getStatusCode()); |
| 71 | 71 | header('Content-Type: application/json', true); |
| 72 | - header('Content-Length: ' . strlen($this->toJson())); |
|
| 72 | + header('Content-Length: '.strlen($this->toJson())); |
|
| 73 | 73 | echo ($this->toJson()); |
| 74 | 74 | exit(); |
| 75 | 75 | } |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | $query = http_build_query(array_filter($array)); |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | - return empty($query) ? '' : '?' . $query; |
|
| 82 | + return empty($query) ? '' : '?'.$query; |
|
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | /** |
@@ -47,7 +47,6 @@ |
||
| 47 | 47 | * @param $assistedSale |
| 48 | 48 | * |
| 49 | 49 | * @return $this |
| 50 | - |
|
| 51 | 50 | */ |
| 52 | 51 | public function setAssistedSale($assistedSale) |
| 53 | 52 | { |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | /** |
| 31 | 31 | * @var array $allowedCountries |
| 32 | 32 | */ |
| 33 | - private $allowedCountries = array('IT','ES','PT','FR'); |
|
| 33 | + private $allowedCountries = array('IT', 'ES', 'PT', 'FR'); |
|
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * Configuration constructor. |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | } |
| 68 | 68 | parent::__construct($statusPhrase, $statusCode); |
| 69 | 69 | |
| 70 | - $header = sprintf('HTTP/1.1 %d %s', $statusCode, $statusPhrase); |
|
| 70 | + $header = sprintf('HTTP/1.1 %d %s', $statusCode, $statusPhrase); |
|
| 71 | 71 | |
| 72 | 72 | $this->addHeader($header); |
| 73 | 73 | $this->addHeaders($headers); |