@@ -26,7 +26,7 @@ |
||
| 26 | 26 | */ |
| 27 | 27 | public function save(TransferInterface $responseTransfer, OrderTransfer $orderTransfer) |
| 28 | 28 | { |
| 29 | - $this->handleDatabaseTransaction(function () use ($responseTransfer, $orderTransfer) { |
|
| 29 | + $this->handleDatabaseTransaction(function() use ($responseTransfer, $orderTransfer) { |
|
| 30 | 30 | $this->saveComputopDetails($responseTransfer, $orderTransfer); |
| 31 | 31 | }); |
| 32 | 32 | |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | */ |
| 27 | 27 | public function save(TransferInterface $responseTransfer, OrderTransfer $orderTransfer) |
| 28 | 28 | { |
| 29 | - $this->handleDatabaseTransaction(function () use ($responseTransfer, $orderTransfer) { |
|
| 29 | + $this->handleDatabaseTransaction(function() use ($responseTransfer, $orderTransfer) { |
|
| 30 | 30 | $this->saveComputopDetails($responseTransfer, $orderTransfer); |
| 31 | 31 | }); |
| 32 | 32 | |
@@ -66,8 +66,8 @@ |
||
| 66 | 66 | */ |
| 67 | 67 | protected function getAvailablePaymentMethods(QuoteTransfer $quoteTransfer): array |
| 68 | 68 | { |
| 69 | - $method = static::CONFIG_METHOD_PART_GET_CRIF . |
|
| 70 | - ucfirst(strtolower($quoteTransfer->getComputopCrif()->getResult())) . |
|
| 69 | + $method = static::CONFIG_METHOD_PART_GET_CRIF. |
|
| 70 | + ucfirst(strtolower($quoteTransfer->getComputopCrif()->getResult())). |
|
| 71 | 71 | static::CONFIG_METHOD_PART_PAYMENT_METHODS; |
| 72 | 72 | |
| 73 | 73 | if (method_exists($this->config, $method)) { |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | */ |
| 27 | 27 | public function save(ComputopApiCrifResponseTransfer $responseTransfer, QuoteTransfer $quoteTransfer): void |
| 28 | 28 | { |
| 29 | - $this->getTransactionHandler()->handleTransaction(function () use ($responseTransfer) { |
|
| 29 | + $this->getTransactionHandler()->handleTransaction(function() use ($responseTransfer) { |
|
| 30 | 30 | $this->saveComputopDetails($responseTransfer); |
| 31 | 31 | }); |
| 32 | 32 | } |
@@ -17,6 +17,6 @@ |
||
| 17 | 17 | */ |
| 18 | 18 | public function isCrifEnabled(): bool |
| 19 | 19 | { |
| 20 | - return (bool)$this->get(ComputopConstants::CRIF_ENABLED); |
|
| 20 | + return (bool) $this->get(ComputopConstants::CRIF_ENABLED); |
|
| 21 | 21 | } |
| 22 | 22 | } |
@@ -17,6 +17,6 @@ |
||
| 17 | 17 | */ |
| 18 | 18 | public function isCrifEnabled(): bool |
| 19 | 19 | { |
| 20 | - return (bool)$this->get(ComputopConstants::CRIF_ENABLED); |
|
| 20 | + return (bool) $this->get(ComputopConstants::CRIF_ENABLED); |
|
| 21 | 21 | } |
| 22 | 22 | } |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | return 0; |
| 123 | 123 | } |
| 124 | 124 | |
| 125 | - $expense = (float)$financing[static::PLAN][static::PAY_RENT][static::ACCRUED_INTEREST]; |
|
| 125 | + $expense = (float) $financing[static::PLAN][static::PAY_RENT][static::ACCRUED_INTEREST]; |
|
| 126 | 126 | |
| 127 | 127 | return $this->moneyFacade->convertDecimalToInteger($expense); |
| 128 | 128 | } |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | return 0; |
| 163 | 163 | } |
| 164 | 164 | |
| 165 | - $paymentAmount = (float)$financing[static::PLAN][static::TOTAL]; |
|
| 165 | + $paymentAmount = (float) $financing[static::PLAN][static::TOTAL]; |
|
| 166 | 166 | |
| 167 | 167 | return $this->moneyFacade->convertDecimalToInteger($paymentAmount); |
| 168 | 168 | } |
@@ -31,29 +31,29 @@ |
||
| 31 | 31 | */ |
| 32 | 32 | public function provideDependencies(Container $container) |
| 33 | 33 | { |
| 34 | - $container[static::CLIENT_COMPUTOP] = function (Container $container) { |
|
| 34 | + $container[static::CLIENT_COMPUTOP] = function(Container $container) { |
|
| 35 | 35 | return $container->getLocator()->computop()->client(); |
| 36 | 36 | }; |
| 37 | 37 | |
| 38 | - $container[static::SERVICE_COMPUTOP_API] = function () use ($container) { |
|
| 38 | + $container[static::SERVICE_COMPUTOP_API] = function() use ($container) { |
|
| 39 | 39 | return $container->getLocator()->computopApi()->service(); |
| 40 | 40 | }; |
| 41 | 41 | |
| 42 | - $container[static::CLIENT_QUOTE] = function () use ($container) { |
|
| 42 | + $container[static::CLIENT_QUOTE] = function() use ($container) { |
|
| 43 | 43 | return new ComputopToQuoteClientBridge($container->getLocator()->quote()->client()); |
| 44 | 44 | }; |
| 45 | 45 | |
| 46 | - $container[static::CLIENT_CALCULATION] = function () use ($container) { |
|
| 46 | + $container[static::CLIENT_CALCULATION] = function() use ($container) { |
|
| 47 | 47 | return new ComputopToCalculationClientBridge($container->getLocator()->calculation()->client()); |
| 48 | 48 | }; |
| 49 | 49 | |
| 50 | - $container[static::PLUGIN_APPLICATION] = function () { |
|
| 50 | + $container[static::PLUGIN_APPLICATION] = function() { |
|
| 51 | 51 | $pimplePlugin = new Pimple(); |
| 52 | 52 | |
| 53 | 53 | return $pimplePlugin->getApplication(); |
| 54 | 54 | }; |
| 55 | 55 | |
| 56 | - $container[static::STORE] = function () { |
|
| 56 | + $container[static::STORE] = function() { |
|
| 57 | 57 | return new ComputopToStoreBridge(Store::getInstance()); |
| 58 | 58 | }; |
| 59 | 59 | |