@@ -22,7 +22,7 @@ |
||
| 22 | 22 | */ |
| 23 | 23 | public function provideBusinessLayerDependencies(Container $container) |
| 24 | 24 | { |
| 25 | - $container[self::SALES_QUERY_CONTAINER] = function (Container $container) { |
|
| 25 | + $container[self::SALES_QUERY_CONTAINER] = function(Container $container) { |
|
| 26 | 26 | return $container->getLocator()->sales()->queryContainer(); |
| 27 | 27 | }; |
| 28 | 28 | |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | */ |
| 27 | 27 | public function register(Application $app) |
| 28 | 28 | { |
| 29 | - $app['sub_request'] = $app->share(function () use ($app) { |
|
| 29 | + $app['sub_request'] = $app->share(function() use ($app) { |
|
| 30 | 30 | return new SubRequestHandler($app); |
| 31 | 31 | }); |
| 32 | 32 | } |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | $aclFacade = $this->getFacade(); |
| 39 | 39 | $config = $this->getFactory()->getConfig(); |
| 40 | 40 | |
| 41 | - $app->before(function (Request $request) use ($app, $aclFacade, $config) { |
|
| 41 | + $app->before(function(Request $request) use ($app, $aclFacade, $config) { |
|
| 42 | 42 | $bundle = $request->attributes->get('module'); |
| 43 | 43 | $controller = $request->attributes->get('controller'); |
| 44 | 44 | $action = $request->attributes->get('action'); |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | |
| 55 | 55 | Example: |
| 56 | 56 | - code:npm --build-all will build the client resources for the core, the project zed and the project yves code |
| 57 | -EOM |
|
| 57 | +eom |
|
| 58 | 58 | ); |
| 59 | 59 | |
| 60 | 60 | $this->addOption( |
@@ -120,7 +120,7 @@ |
||
| 120 | 120 | $this->info('Run command: ' . $command); |
| 121 | 121 | $process = new Process($command, APPLICATION_ROOT_DIR); |
| 122 | 122 | $process->setTimeout(null); |
| 123 | - $process->run(function ($type, $buffer) { |
|
| 123 | + $process->run(function($type, $buffer) { |
|
| 124 | 124 | echo $buffer; |
| 125 | 125 | }); |
| 126 | 126 | |
@@ -316,7 +316,7 @@ |
||
| 316 | 316 | * |
| 317 | 317 | * @return string |
| 318 | 318 | */ |
| 319 | - $quoteFunction = function ($value) { |
|
| 319 | + $quoteFunction = function($value) { |
|
| 320 | 320 | return "'$value'"; |
| 321 | 321 | }; |
| 322 | 322 | |
@@ -33,8 +33,8 @@ |
||
| 33 | 33 | public function saveOrderPayment(QuoteTransfer $quoteTransfer, CheckoutResponseTransfer $checkoutResponseTransfer) |
| 34 | 34 | { |
| 35 | 35 | $this->getFactory() |
| 36 | - ->createOrderSaver($quoteTransfer, $checkoutResponseTransfer) |
|
| 37 | - ->saveOrderPayment(); |
|
| 36 | + ->createOrderSaver($quoteTransfer, $checkoutResponseTransfer) |
|
| 37 | + ->saveOrderPayment(); |
|
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | /** |
@@ -106,7 +106,7 @@ |
||
| 106 | 106 | |
| 107 | 107 | $streamedResponse = new StreamedResponse(); |
| 108 | 108 | |
| 109 | - $streamedResponse->setCallback(function () use ($generatedVouchers) { |
|
| 109 | + $streamedResponse->setCallback(function() use ($generatedVouchers) { |
|
| 110 | 110 | $csvHandle = fopen('php://output', 'w+'); |
| 111 | 111 | fputcsv($csvHandle, ['Voucher Code']); |
| 112 | 112 | |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | return array_uintersect( |
| 46 | 46 | $lefCollectedItems, |
| 47 | 47 | $rightCollectedItems, |
| 48 | - function (DiscountableItemTransfer $collected, DiscountableItemTransfer $toCollect) { |
|
| 48 | + function(DiscountableItemTransfer $collected, DiscountableItemTransfer $toCollect) { |
|
| 49 | 49 | return strcmp(spl_object_hash($collected->getOriginalItemCalculatedDiscounts()), spl_object_hash($toCollect->getOriginalItemCalculatedDiscounts())); |
| 50 | 50 | } |
| 51 | 51 | ); |
@@ -158,10 +158,10 @@ |
||
| 158 | 158 | protected function addBoolModelTransformer(FormBuilderInterface $builder, $fieldName) |
| 159 | 159 | { |
| 160 | 160 | $builder->get($fieldName)->addModelTransformer(new CallbackTransformer( |
| 161 | - function ($originalValue) { |
|
| 161 | + function($originalValue) { |
|
| 162 | 162 | return $originalValue ? 'yes' : 'no'; |
| 163 | 163 | }, |
| 164 | - function ($submittedValue) { |
|
| 164 | + function($submittedValue) { |
|
| 165 | 165 | return $submittedValue === 'yes' ? true : false; |
| 166 | 166 | } |
| 167 | 167 | )); |