@@ -243,7 +243,7 @@ |
||
| 243 | 243 | |
| 244 | 244 | /** |
| 245 | 245 | * @param string $orderId |
| 246 | - * @return Payment|null |
|
| 246 | + * @return null|HttpResponse |
|
| 247 | 247 | */ |
| 248 | 248 | public function capturePayment(string $orderId): ?HttpResponse |
| 249 | 249 | { |
@@ -206,7 +206,7 @@ |
||
| 206 | 206 | ->setNote($note) |
| 207 | 207 | ->setReceiver($receiverEmail) |
| 208 | 208 | ->setSenderItemId($itemId) |
| 209 | - ->setAmount(new Currency(json_encode((object)[ |
|
| 209 | + ->setAmount(new Currency(json_encode((object) [ |
|
| 210 | 210 | 'value' => $amount, |
| 211 | 211 | 'currency' => $currency, |
| 212 | 212 | ]))); |
@@ -5,9 +5,9 @@ |
||
| 5 | 5 | use Symfony\Component\ErrorHandler\Debug; |
| 6 | 6 | use Symfony\Component\HttpFoundation\Request; |
| 7 | 7 | |
| 8 | -require dirname(__DIR__).'/vendor/autoload.php'; |
|
| 8 | +require dirname(__DIR__) . '/vendor/autoload.php'; |
|
| 9 | 9 | |
| 10 | -(new Dotenv())->bootEnv(dirname(__DIR__).'/.env'); |
|
| 10 | +(new Dotenv())->bootEnv(dirname(__DIR__) . '/.env'); |
|
| 11 | 11 | |
| 12 | 12 | if ($_SERVER['APP_DEBUG']) { |
| 13 | 13 | umask(0000); |
@@ -14,24 +14,24 @@ |
||
| 14 | 14 | protected function configureContainer(ContainerConfigurator $container): void |
| 15 | 15 | { |
| 16 | 16 | $container->import('../config/{packages}/*.yaml'); |
| 17 | - $container->import('../config/{packages}/'.$this->environment.'/*.yaml'); |
|
| 17 | + $container->import('../config/{packages}/' . $this->environment . '/*.yaml'); |
|
| 18 | 18 | |
| 19 | - if (is_file(\dirname(__DIR__).'/config/services.yaml')) { |
|
| 19 | + if (is_file(\dirname(__DIR__) . '/config/services.yaml')) { |
|
| 20 | 20 | $container->import('../config/{services}.yaml'); |
| 21 | - $container->import('../config/{services}_'.$this->environment.'.yaml'); |
|
| 22 | - } elseif (is_file($path = \dirname(__DIR__).'/config/services.php')) { |
|
| 21 | + $container->import('../config/{services}_' . $this->environment . '.yaml'); |
|
| 22 | + } elseif (is_file($path = \dirname(__DIR__) . '/config/services.php')) { |
|
| 23 | 23 | (require $path)($container->withPath($path), $this); |
| 24 | 24 | } |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | protected function configureRoutes(RoutingConfigurator $routes): void |
| 28 | 28 | { |
| 29 | - $routes->import('../config/{routes}/'.$this->environment.'/*.yaml'); |
|
| 29 | + $routes->import('../config/{routes}/' . $this->environment . '/*.yaml'); |
|
| 30 | 30 | $routes->import('../config/{routes}/*.yaml'); |
| 31 | 31 | |
| 32 | - if (is_file(\dirname(__DIR__).'/config/routes.yaml')) { |
|
| 32 | + if (is_file(\dirname(__DIR__) . '/config/routes.yaml')) { |
|
| 33 | 33 | $routes->import('../config/{routes}.yaml'); |
| 34 | - } elseif (is_file($path = \dirname(__DIR__).'/config/routes.php')) { |
|
| 34 | + } elseif (is_file($path = \dirname(__DIR__) . '/config/routes.php')) { |
|
| 35 | 35 | (require $path)($routes->withPath($path), $this); |
| 36 | 36 | } |
| 37 | 37 | } |