@@ -203,8 +203,8 @@ |
||
| 203 | 203 | public function queryDiscountName($discountName) |
| 204 | 204 | { |
| 205 | 205 | return $this->getFactory() |
| 206 | - ->createDiscountQuery() |
|
| 207 | - ->filterByDisplayName($discountName); |
|
| 206 | + ->createDiscountQuery() |
|
| 207 | + ->filterByDisplayName($discountName); |
|
| 208 | 208 | } |
| 209 | 209 | |
| 210 | 210 | /** |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | protected function getUnresolvableCollection() |
| 38 | 38 | { |
| 39 | 39 | if (self::$unresolvableCollection === null) { |
| 40 | - $callback = function () { |
|
| 40 | + $callback = function() { |
|
| 41 | 41 | return $this->getData(); |
| 42 | 42 | }; |
| 43 | 43 | |
@@ -76,11 +76,11 @@ |
||
| 76 | 76 | public function buildForm(FormBuilderInterface $builder, array $options) |
| 77 | 77 | { |
| 78 | 78 | $this->addCardType($builder) |
| 79 | - ->addCardNumber($builder) |
|
| 80 | - ->addNameOnCard($builder) |
|
| 81 | - ->addCardExpiresMonth($builder, $options) |
|
| 82 | - ->addCardExpiresYear($builder, $options) |
|
| 83 | - ->addCardSecurityCode($builder); |
|
| 79 | + ->addCardNumber($builder) |
|
| 80 | + ->addNameOnCard($builder) |
|
| 81 | + ->addCardExpiresMonth($builder, $options) |
|
| 82 | + ->addCardExpiresYear($builder, $options) |
|
| 83 | + ->addCardSecurityCode($builder); |
|
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | /** |
@@ -149,9 +149,9 @@ discard block |
||
| 149 | 149 | |
| 150 | 150 | case $this->isValue($token): |
| 151 | 151 | $value = $this->clearQuotes($token); |
| 152 | - $clauseTransfer->setValue($value); |
|
| 152 | + $clauseTransfer->setValue($value); |
|
| 153 | 153 | |
| 154 | - $this->clauseValidator->validateClause($clauseTransfer); |
|
| 154 | + $this->clauseValidator->validateClause($clauseTransfer); |
|
| 155 | 155 | |
| 156 | 156 | if ($leftNode === null) { |
| 157 | 157 | $leftNode = $this->specificationProvider->getSpecificationContext($clauseTransfer); |
@@ -308,8 +308,8 @@ discard block |
||
| 308 | 308 | */ |
| 309 | 309 | protected function isValue($token) |
| 310 | 310 | { |
| 311 | - $first = substr($token, 0, 1); |
|
| 312 | - $last = substr($token, -1); |
|
| 311 | + $first = substr($token, 0, 1); |
|
| 312 | + $last = substr($token, -1); |
|
| 313 | 313 | |
| 314 | 314 | if ($first === '"' && $last === '"') { |
| 315 | 315 | return true; |
@@ -319,7 +319,7 @@ discard block |
||
| 319 | 319 | return true; |
| 320 | 320 | } |
| 321 | 321 | |
| 322 | - return false; |
|
| 322 | + return false; |
|
| 323 | 323 | } |
| 324 | 324 | |
| 325 | 325 | } |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | { |
| 25 | 25 | $container = parent::provideBusinessLayerDependencies($container); |
| 26 | 26 | |
| 27 | - $container[static::INSTALLER_PLUGINS] = function (Container $container) { |
|
| 27 | + $container[static::INSTALLER_PLUGINS] = function(Container $container) { |
|
| 28 | 28 | return $this->getInstallerPlugins(); |
| 29 | 29 | }; |
| 30 | 30 | |
@@ -23,11 +23,11 @@ |
||
| 23 | 23 | */ |
| 24 | 24 | public function provideDependencies(Container $container) |
| 25 | 25 | { |
| 26 | - $container[self::CLIENT_RATEPAY] = function (Container $container) { |
|
| 26 | + $container[self::CLIENT_RATEPAY] = function(Container $container) { |
|
| 27 | 27 | return $container->getLocator()->ratepay()->client(); |
| 28 | 28 | }; |
| 29 | 29 | |
| 30 | - $container[self::CLIENT_SESSION] = function (Container $container) { |
|
| 30 | + $container[self::CLIENT_SESSION] = function(Container $container) { |
|
| 31 | 31 | return $container->getLocator()->session()->client(); |
| 32 | 32 | }; |
| 33 | 33 | |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | { |
| 66 | 66 | return new Callback([ |
| 67 | 67 | 'methods' => [ |
| 68 | - function ($date, ExecutionContextInterface $context) { |
|
| 68 | + function($date, ExecutionContextInterface $context) { |
|
| 69 | 69 | if (strtotime($date) > strtotime(self::MIN_BIRTHDAY_DATE_STRING)) { |
| 70 | 70 | $context->addViolation('checkout.step.payment.must_be_older_than_18_years'); |
| 71 | 71 | } |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | return [ |
| 43 | - 'form' => $taxSetForm->createView(), |
|
| 43 | + 'form' => $taxSetForm->createView(), |
|
| 44 | 44 | ]; |
| 45 | 45 | } |
| 46 | 46 | |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | */ |
| 23 | 23 | public function register(Application $app) |
| 24 | 24 | { |
| 25 | - $app['flash_messenger'] = function ($app) { |
|
| 25 | + $app['flash_messenger'] = function($app) { |
|
| 26 | 26 | return $this->createFlashMessenger($app); |
| 27 | 27 | }; |
| 28 | 28 | } |