@@ -53,7 +53,7 @@ |
||
53 | 53 | { |
54 | 54 | $giftCardPayments = $this->giftCardReader->getGiftCardPaymentsForOrder($idSalesOrder); |
55 | 55 | |
56 | - $this->handleDatabaseTransaction(function () use ($giftCardPayments) { |
|
56 | + $this->handleDatabaseTransaction(function() use ($giftCardPayments) { |
|
57 | 57 | $this->replaceGiftCardsTransaction($giftCardPayments); |
58 | 58 | }); |
59 | 59 | } |
@@ -181,7 +181,7 @@ |
||
181 | 181 | public function configureOptions(OptionsResolver $resolver) |
182 | 182 | { |
183 | 183 | $resolver->setDefaults([ |
184 | - 'validation_groups' => function (FormInterface $form) { |
|
184 | + 'validation_groups' => function(FormInterface $form) { |
|
185 | 185 | return [ |
186 | 186 | Constraint::DEFAULT_GROUP, |
187 | 187 | $form->get(static::PAYMENT_SELECTION)->getData(), |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | ->filterBySku($sku) |
113 | 113 | ->endUse() |
114 | 114 | ->useStockQuery() |
115 | - ->filterByName($type) |
|
115 | + ->filterByName($type) |
|
116 | 116 | ->endUse(); |
117 | 117 | |
118 | 118 | return $query; |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | $query = $this->queryAllStockProducts(); |
132 | 132 | $query |
133 | 133 | ->useSpyProductQuery() |
134 | - ->filterBySku($sku) |
|
134 | + ->filterBySku($sku) |
|
135 | 135 | ->endUse() |
136 | 136 | ->useStockQuery() |
137 | 137 | ->filterByName($types, Criteria::IN) |
@@ -248,12 +248,12 @@ discard block |
||
248 | 248 | public function queryStockByIdProductAndTypes($idProduct, array $types) |
249 | 249 | { |
250 | 250 | return $this->queryStockByProducts($idProduct) |
251 | - ->useStockQuery() |
|
252 | - ->withColumn(SpyStockTableMap::COL_NAME, 'stockType') |
|
253 | - ->filterByName($types, Criteria::IN) |
|
254 | - ->endUse() |
|
255 | - ->useSpyProductQuery() |
|
256 | - ->withColumn(SpyProductTableMap::COL_SKU, 'sku') |
|
257 | - ->endUse(); |
|
251 | + ->useStockQuery() |
|
252 | + ->withColumn(SpyStockTableMap::COL_NAME, 'stockType') |
|
253 | + ->filterByName($types, Criteria::IN) |
|
254 | + ->endUse() |
|
255 | + ->useSpyProductQuery() |
|
256 | + ->withColumn(SpyProductTableMap::COL_SKU, 'sku') |
|
257 | + ->endUse(); |
|
258 | 258 | } |
259 | 259 | } |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | */ |
66 | 66 | public function create(CompanyUnitAddressTransfer $companyUnitAddressTransfer): CompanyUnitAddressResponseTransfer |
67 | 67 | { |
68 | - return $this->getTransactionHandler()->handleTransaction(function () use ($companyUnitAddressTransfer) { |
|
68 | + return $this->getTransactionHandler()->handleTransaction(function() use ($companyUnitAddressTransfer) { |
|
69 | 69 | return $this->executeSaveCompanyUnitAddressTransaction($companyUnitAddressTransfer); |
70 | 70 | }); |
71 | 71 | } |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | */ |
78 | 78 | public function update(CompanyUnitAddressTransfer $companyUnitAddressTransfer): CompanyUnitAddressResponseTransfer |
79 | 79 | { |
80 | - return $this->getTransactionHandler()->handleTransaction(function () use ($companyUnitAddressTransfer) { |
|
80 | + return $this->getTransactionHandler()->handleTransaction(function() use ($companyUnitAddressTransfer) { |
|
81 | 81 | return $this->executeSaveCompanyUnitAddressTransaction($companyUnitAddressTransfer); |
82 | 82 | }); |
83 | 83 | } |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | */ |
90 | 90 | public function delete(CompanyUnitAddressTransfer $companyUnitAddressTransfer): void |
91 | 91 | { |
92 | - $this->getTransactionHandler()->handleTransaction(function () use ($companyUnitAddressTransfer) { |
|
92 | + $this->getTransactionHandler()->handleTransaction(function() use ($companyUnitAddressTransfer) { |
|
93 | 93 | $this->executeDeleteCompanyUnitAddressTransaction($companyUnitAddressTransfer); |
94 | 94 | }); |
95 | 95 | } |
@@ -51,7 +51,7 @@ |
||
51 | 51 | $reflection = new ReflectionClass(SpyUrlTableMap::class); |
52 | 52 | $constants = $reflection->getConstants(); |
53 | 53 | |
54 | - return array_filter($constants, function ($constant) { |
|
54 | + return array_filter($constants, function($constant) { |
|
55 | 55 | return strpos($constant, 'fk_resource'); |
56 | 56 | }); |
57 | 57 | } |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | ->setIsSuccessful(true); |
71 | 71 | |
72 | 72 | try { |
73 | - $companyResponseTransfer = $this->getTransactionHandler()->handleTransaction(function () use ($companyResponseTransfer) { |
|
73 | + $companyResponseTransfer = $this->getTransactionHandler()->handleTransaction(function() use ($companyResponseTransfer) { |
|
74 | 74 | $companyResponseTransfer = $this->executeSaveCompanyTransaction($companyResponseTransfer); |
75 | 75 | $companyResponseTransfer = $this->executePostCreatePlugins($companyResponseTransfer); |
76 | 76 | |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | ->setCompanyTransfer($companyTransfer) |
99 | 99 | ->setIsSuccessful(true); |
100 | 100 | |
101 | - return $this->getTransactionHandler()->handleTransaction(function () use ($companyResponseTransfer) { |
|
101 | + return $this->getTransactionHandler()->handleTransaction(function() use ($companyResponseTransfer) { |
|
102 | 102 | return $this->executeSaveCompanyTransaction($companyResponseTransfer); |
103 | 103 | }); |
104 | 104 | } |
@@ -55,7 +55,7 @@ |
||
55 | 55 | */ |
56 | 56 | protected function getIdStores(ArrayObject $relatedStores): array |
57 | 57 | { |
58 | - return array_map(function (StoreTransfer $storeTransfer) { |
|
58 | + return array_map(function(StoreTransfer $storeTransfer) { |
|
59 | 59 | return $storeTransfer->getIdStore(); |
60 | 60 | }, $relatedStores->getArrayCopy()); |
61 | 61 | } |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | */ |
70 | 70 | public function create(CompanyRoleTransfer $companyRoleTransfer): CompanyRoleResponseTransfer |
71 | 71 | { |
72 | - return $this->getTransactionHandler()->handleTransaction(function () use ($companyRoleTransfer) { |
|
72 | + return $this->getTransactionHandler()->handleTransaction(function() use ($companyRoleTransfer) { |
|
73 | 73 | return $this->executeCompanyRoleSaveTransaction($companyRoleTransfer); |
74 | 74 | }); |
75 | 75 | } |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | */ |
109 | 109 | public function update(CompanyRoleTransfer $companyRoleTransfer): void |
110 | 110 | { |
111 | - $this->getTransactionHandler()->handleTransaction(function () use ($companyRoleTransfer) { |
|
111 | + $this->getTransactionHandler()->handleTransaction(function() use ($companyRoleTransfer) { |
|
112 | 112 | $this->executeCompanyRoleSaveTransaction($companyRoleTransfer); |
113 | 113 | }); |
114 | 114 | } |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | ->setCompanyRoleTransfer($companyRoleTransfer) |
125 | 125 | ->setIsSuccessful(true); |
126 | 126 | |
127 | - return $this->getTransactionHandler()->handleTransaction(function () use ($companyRoleResponseTransfer) { |
|
127 | + return $this->getTransactionHandler()->handleTransaction(function() use ($companyRoleResponseTransfer) { |
|
128 | 128 | return $this->executeDeleteTransaction($companyRoleResponseTransfer); |
129 | 129 | }); |
130 | 130 | } |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | */ |
137 | 137 | public function saveCompanyUser(CompanyUserTransfer $companyUserTransfer): void |
138 | 138 | { |
139 | - $this->getTransactionHandler()->handleTransaction(function () use ($companyUserTransfer) { |
|
139 | + $this->getTransactionHandler()->handleTransaction(function() use ($companyUserTransfer) { |
|
140 | 140 | $this->entityManager->saveCompanyUser($companyUserTransfer); |
141 | 141 | }); |
142 | 142 | } |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | { |
78 | 78 | $builder->get(CompanyUnitAddressTransfer::LABEL_COLLECTION)->addModelTransformer( |
79 | 79 | new CallbackTransformer( |
80 | - function ($labels) { |
|
80 | + function($labels) { |
|
81 | 81 | if (empty($labels)) { |
82 | 82 | return $labels; |
83 | 83 | } |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | |
89 | 89 | return $result; |
90 | 90 | }, |
91 | - function ($data) { |
|
91 | + function($data) { |
|
92 | 92 | $labels = []; |
93 | 93 | foreach ($data as $id) { |
94 | 94 | $labels[] = (new SpyCompanyUnitAddressLabelEntityTransfer()) |