@@ -220,8 +220,8 @@ |
||
220 | 220 | return new Callback([ |
221 | 221 | 'callback' => function (string $totalsMode, ExecutionContextInterface $context) { |
222 | 222 | $connectionFormat = $context->getRoot() |
223 | - ->get(PunchoutCatalogConnectionTransfer::FORMAT) |
|
224 | - ->getData(); |
|
223 | + ->get(PunchoutCatalogConnectionTransfer::FORMAT) |
|
224 | + ->getData(); |
|
225 | 225 | |
226 | 226 | $allowedConnectionFormats = static::ALLOWED_CONNECTION_FORMATS_FOR_TOTALS_MODES[$totalsMode] ?? []; |
227 | 227 |
@@ -199,12 +199,12 @@ discard block |
||
199 | 199 | protected function createMaxDescriptionLengthViewTransformer(): CallbackTransformer |
200 | 200 | { |
201 | 201 | return new CallbackTransformer( |
202 | - function (string $maxDescriptionLength) { |
|
202 | + function(string $maxDescriptionLength) { |
|
203 | 203 | return $maxDescriptionLength; |
204 | 204 | }, |
205 | - function (string $maxDescriptionLength) { |
|
205 | + function(string $maxDescriptionLength) { |
|
206 | 206 | if (!$maxDescriptionLength) { |
207 | - return (string)static::MAX_DESCRIPTION_LENGTH; |
|
207 | + return (string) static::MAX_DESCRIPTION_LENGTH; |
|
208 | 208 | } |
209 | 209 | |
210 | 210 | return $maxDescriptionLength; |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | protected function createTotalsModeValidationConstraint(): Constraint |
219 | 219 | { |
220 | 220 | return new Callback([ |
221 | - 'callback' => function (string $totalsMode, ExecutionContextInterface $context) { |
|
221 | + 'callback' => function(string $totalsMode, ExecutionContextInterface $context) { |
|
222 | 222 | $connectionFormat = $context->getRoot() |
223 | 223 | ->get(PunchoutCatalogConnectionTransfer::FORMAT) |
224 | 224 | ->getData(); |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | protected function createLoginModeDependentFieldsModelTransformer(): CallbackTransformer |
95 | 95 | { |
96 | 96 | return new CallbackTransformer( |
97 | - function (?PunchoutCatalogConnectionSetupTransfer $punchoutCatalogConnectionSetupTransfer = null) { |
|
97 | + function(?PunchoutCatalogConnectionSetupTransfer $punchoutCatalogConnectionSetupTransfer = null) { |
|
98 | 98 | if (!$punchoutCatalogConnectionSetupTransfer) { |
99 | 99 | return null; |
100 | 100 | } |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | |
110 | 110 | return $punchoutCatalogConnectionSetupTransfer; |
111 | 111 | }, |
112 | - function (PunchoutCatalogConnectionSetupTransfer $punchoutCatalogConnectionSetupTransfer) { |
|
112 | + function(PunchoutCatalogConnectionSetupTransfer $punchoutCatalogConnectionSetupTransfer) { |
|
113 | 113 | return $punchoutCatalogConnectionSetupTransfer; |
114 | 114 | } |
115 | 115 | ); |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | */ |
172 | 172 | protected function createCompanyBusinessUnitFormEventListener(): Closure |
173 | 173 | { |
174 | - return function (FormEvent $event) { |
|
174 | + return function(FormEvent $event) { |
|
175 | 175 | $form = $event->getForm(); |
176 | 176 | |
177 | 177 | $parentCompanyBusinessUnitId = $form |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | */ |
209 | 209 | protected function createCompanyUserFormEventListener(): Closure |
210 | 210 | { |
211 | - return function (FormEvent $event) { |
|
211 | + return function(FormEvent $event) { |
|
212 | 212 | $form = $event->getForm(); |
213 | 213 | |
214 | 214 | $parentCompanyBusinessUnitId = $form |
@@ -50,7 +50,7 @@ |
||
50 | 50 | 'constraints' => [ |
51 | 51 | new NotBlank(), |
52 | 52 | ], |
53 | - 'property_path' => PunchoutCatalogConnectionTransfer::CART . '.' . PunchoutCatalogConnectionCartTransfer::BUNDLE_MODE, |
|
53 | + 'property_path' => PunchoutCatalogConnectionTransfer::CART.'.'.PunchoutCatalogConnectionCartTransfer::BUNDLE_MODE, |
|
54 | 54 | ]); |
55 | 55 | |
56 | 56 | return $this; |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | protected function addConnectionFormatDynamicSubFormListener(FormBuilderInterface $builder): void |
209 | 209 | { |
210 | 210 | $connectionFormatSubFormTypes = static::OPTION_CONNECTION_FORMAT_SUB_FORM_TYPES; |
211 | - $formModificationCallback = function (FormEvent $event) use ($connectionFormatSubFormTypes) { |
|
211 | + $formModificationCallback = function(FormEvent $event) use ($connectionFormatSubFormTypes) { |
|
212 | 212 | $format = $event->getData()[PunchoutCatalogConnectionTransfer::FORMAT] ?? null; |
213 | 213 | |
214 | 214 | if (!$format) { |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | protected function addConnectionTypeDynamicSubFormListener(FormBuilderInterface $builder): void |
235 | 235 | { |
236 | 236 | $connectionTypeSubFormTypes = static::OPTION_CONNECTION_TYPE_SUB_FORM_TYPES; |
237 | - $formModificationCallback = function (FormEvent $event) use ($connectionTypeSubFormTypes) { |
|
237 | + $formModificationCallback = function(FormEvent $event) use ($connectionTypeSubFormTypes) { |
|
238 | 238 | $type = $event->getData()[PunchoutCatalogConnectionTransfer::TYPE] ?? null; |
239 | 239 | |
240 | 240 | if (!$type) { |
@@ -153,12 +153,12 @@ |
||
153 | 153 | */ |
154 | 154 | protected function prepareQuery(PgwPunchoutCatalogConnectionQuery $connectionPropelQuery): PgwPunchoutCatalogConnectionQuery |
155 | 155 | { |
156 | - $connectionPropelQuery |
|
156 | + $connectionPropelQuery |
|
157 | 157 | ->joinWithCompanyBusinessUnit() |
158 | 158 | ->useCompanyBusinessUnitQuery() |
159 | - ->withColumn(SpyCompanyBusinessUnitTableMap::COL_NAME, static::COL_BUSINESS_UNIT) |
|
160 | - ->joinCompany() |
|
161 | - ->useCompanyQuery() |
|
159 | + ->withColumn(SpyCompanyBusinessUnitTableMap::COL_NAME, static::COL_BUSINESS_UNIT) |
|
160 | + ->joinCompany() |
|
161 | + ->useCompanyQuery() |
|
162 | 162 | ->withColumn(SpyCompanyTableMap::COL_NAME, static::COL_COMPANY) |
163 | 163 | ->endUse() |
164 | 164 | ->endUse(); |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | */ |
60 | 60 | public function createConnection(PunchoutCatalogConnectionTransfer $punchoutCatalogConnectionTransfer): PunchoutCatalogResponseTransfer |
61 | 61 | { |
62 | - return $this->getTransactionHandler()->handleTransaction(function () use ($punchoutCatalogConnectionTransfer) { |
|
62 | + return $this->getTransactionHandler()->handleTransaction(function() use ($punchoutCatalogConnectionTransfer) { |
|
63 | 63 | return $this->executeCreateConnectionTransaction($punchoutCatalogConnectionTransfer); |
64 | 64 | }); |
65 | 65 | } |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | */ |
100 | 100 | public function updateConnection(PunchoutCatalogConnectionTransfer $punchoutCatalogConnectionTransfer): PunchoutCatalogResponseTransfer |
101 | 101 | { |
102 | - return $this->getTransactionHandler()->handleTransaction(function () use ($punchoutCatalogConnectionTransfer) { |
|
102 | + return $this->getTransactionHandler()->handleTransaction(function() use ($punchoutCatalogConnectionTransfer) { |
|
103 | 103 | return $this->executeUpdateConnectionTransaction($punchoutCatalogConnectionTransfer); |
104 | 104 | }); |
105 | 105 | } |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | |
147 | 147 | $this->vaultFacade->store( |
148 | 148 | static::PASSWORD_VAULT_DATA_TYPE, |
149 | - (string)$punchoutCatalogConnectionTransfer->getIdPunchoutCatalogConnection(), |
|
149 | + (string) $punchoutCatalogConnectionTransfer->getIdPunchoutCatalogConnection(), |
|
150 | 150 | $punchoutCatalogConnectionTransfer->getPassword() |
151 | 151 | ); |
152 | 152 | } |
@@ -60,7 +60,7 @@ |
||
60 | 60 | |
61 | 61 | $password = $this->vaultFacade->retrieve( |
62 | 62 | static::CATALOG_CONNECTION_PASSWORD_VAULT_DATA_TYPE, |
63 | - (string)$punchoutCatalogConnectionTransfer->getIdPunchoutCatalogConnection() |
|
63 | + (string) $punchoutCatalogConnectionTransfer->getIdPunchoutCatalogConnection() |
|
64 | 64 | ); |
65 | 65 | |
66 | 66 | return $punchoutCatalogConnectionTransfer->setPassword($password); |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | */ |
106 | 106 | protected function addUtilDateTimeService(Container $container): Container |
107 | 107 | { |
108 | - $container->set(static::SERVICE_UTIL_DATE_TIME, function (Container $container) { |
|
108 | + $container->set(static::SERVICE_UTIL_DATE_TIME, function(Container $container) { |
|
109 | 109 | return new PunchoutCatalogsToUtilDateTimeServiceBridge( |
110 | 110 | $container->getLocator()->utilDateTime()->service() |
111 | 111 | ); |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | */ |
122 | 122 | protected function addPunchoutCatalogConnectionPropelQuery(Container $container): Container |
123 | 123 | { |
124 | - $container->set(static::PROPEL_QUERY_PUNCHOUT_CATALOG_CONNECTION, function () { |
|
124 | + $container->set(static::PROPEL_QUERY_PUNCHOUT_CATALOG_CONNECTION, function() { |
|
125 | 125 | return PgwPunchoutCatalogConnectionQuery::create(); |
126 | 126 | }); |
127 | 127 | |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | */ |
136 | 136 | protected function addPunchoutCatalogConnectionSetupPropelQuery(Container $container): Container |
137 | 137 | { |
138 | - $container->set(static::PROPEL_QUERY_PUNCHOUT_CATALOG_CONNECTION_SETUP, function () { |
|
138 | + $container->set(static::PROPEL_QUERY_PUNCHOUT_CATALOG_CONNECTION_SETUP, function() { |
|
139 | 139 | return PgwPunchoutCatalogConnectionSetupQuery::create(); |
140 | 140 | }); |
141 | 141 | |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | */ |
150 | 150 | protected function addPunchoutCatalogConnectionCartPropelQuery(Container $container): Container |
151 | 151 | { |
152 | - $container->set(static::PROPEL_QUERY_PUNCHOUT_CATALOG_CONNECTION_CART, function () { |
|
152 | + $container->set(static::PROPEL_QUERY_PUNCHOUT_CATALOG_CONNECTION_CART, function() { |
|
153 | 153 | return PgwPunchoutCatalogConnectionCartQuery::create(); |
154 | 154 | }); |
155 | 155 | |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | */ |
164 | 164 | protected function addPunchoutCatalogTransactionPropelQuery(Container $container): Container |
165 | 165 | { |
166 | - $container->set(static::PROPEL_QUERY_PUNCHOUT_CATALOG_TRANSACTION, function () { |
|
166 | + $container->set(static::PROPEL_QUERY_PUNCHOUT_CATALOG_TRANSACTION, function() { |
|
167 | 167 | return PgwPunchoutCatalogTransactionQuery::create(); |
168 | 168 | }); |
169 | 169 | |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | */ |
178 | 178 | protected function addCompanyBusinessUnitFacade(Container $container): Container |
179 | 179 | { |
180 | - $container->set(static::FACADE_COMPANY_BUSINESS_UNIT, function (Container $container) { |
|
180 | + $container->set(static::FACADE_COMPANY_BUSINESS_UNIT, function(Container $container) { |
|
181 | 181 | return new PunchoutCatalogsToCompanyBusinessUnitFacadeBridge( |
182 | 182 | $container->getLocator()->companyBusinessUnit()->facade() |
183 | 183 | ); |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | */ |
194 | 194 | protected function addCompanyUserFacade(Container $container): Container |
195 | 195 | { |
196 | - $container->set(static::FACADE_COMPANY_USER, function (Container $container) { |
|
196 | + $container->set(static::FACADE_COMPANY_USER, function(Container $container) { |
|
197 | 197 | return new PunchoutCatalogsToCompanyUserFacadeBridge( |
198 | 198 | $container->getLocator()->companyUser()->facade() |
199 | 199 | ); |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | */ |
210 | 210 | protected function addVaultFacade(Container $container): Container |
211 | 211 | { |
212 | - $container->set(static::FACADE_VAULT, function (Container $container) { |
|
212 | + $container->set(static::FACADE_VAULT, function(Container $container) { |
|
213 | 213 | return new PunchoutCatalogsToVaultFacadeBridge( |
214 | 214 | $container->getLocator()->vault()->facade() |
215 | 215 | ); |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | */ |
226 | 226 | protected function addPunchoutCatalogFacade(Container $container): Container |
227 | 227 | { |
228 | - $container->set(static::FACADE_PUNCHOUT_CATALOG, function (Container $container) { |
|
228 | + $container->set(static::FACADE_PUNCHOUT_CATALOG, function(Container $container) { |
|
229 | 229 | return new PunchoutCatalogsToPunchoutCatalogBridge( |
230 | 230 | $container->getLocator()->punchoutCatalog()->facade() |
231 | 231 | ); |
@@ -241,7 +241,7 @@ discard block |
||
241 | 241 | */ |
242 | 242 | protected function addPunchoutCatalogConnectionFormatPlugins(Container $container): Container |
243 | 243 | { |
244 | - $container->set(static::PLUGINS_PUNCHOUT_CATALOG_CONNECTION_FORMAT, function (Container $container) { |
|
244 | + $container->set(static::PLUGINS_PUNCHOUT_CATALOG_CONNECTION_FORMAT, function(Container $container) { |
|
245 | 245 | return $this->getPunchoutCatalogConnectionFormatPlugins(); |
246 | 246 | }); |
247 | 247 | |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | */ |
256 | 256 | protected function addPunchoutCatalogConnectionTypePlugins(Container $container): Container |
257 | 257 | { |
258 | - $container->set(static::PLUGINS_PUNCHOUT_CATALOG_CONNECTION_TYPE, function (Container $container) { |
|
258 | + $container->set(static::PLUGINS_PUNCHOUT_CATALOG_CONNECTION_TYPE, function(Container $container) { |
|
259 | 259 | return $this->getPunchoutCatalogConnectionTypePlugins(); |
260 | 260 | }); |
261 | 261 | |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | */ |
270 | 270 | protected function addPunchoutCatalogSetupRequestFormExtensionPlugins(Container $container): Container |
271 | 271 | { |
272 | - $container->set(static::PLUGINS_PUNCHOUT_CATALOG_SETUP_REQUEST_FORM_EXTENSION, function (Container $container) { |
|
272 | + $container->set(static::PLUGINS_PUNCHOUT_CATALOG_SETUP_REQUEST_FORM_EXTENSION, function(Container $container) { |
|
273 | 273 | return $this->getPunchoutCatalogSetupRequestFormExtensionPlugins(); |
274 | 274 | }); |
275 | 275 | |
@@ -307,7 +307,7 @@ discard block |
||
307 | 307 | */ |
308 | 308 | protected function addCompanyBusinessUnitPropelQuery(Container $container): Container |
309 | 309 | { |
310 | - $container->set(static::PROPEL_QUERY_COMPANY_BUSINESS_UNIT, $container->factory(function (Container $container) { |
|
310 | + $container->set(static::PROPEL_QUERY_COMPANY_BUSINESS_UNIT, $container->factory(function(Container $container) { |
|
311 | 311 | return SpyCompanyBusinessUnitQuery::create(); |
312 | 312 | })); |
313 | 313 | |
@@ -321,7 +321,7 @@ discard block |
||
321 | 321 | */ |
322 | 322 | protected function addCompanyUserPropelQuery(Container $container): Container |
323 | 323 | { |
324 | - $container->set(static::PROPEL_QUERY_COMPANY_USER, $container->factory(function (Container $container) { |
|
324 | + $container->set(static::PROPEL_QUERY_COMPANY_USER, $container->factory(function(Container $container) { |
|
325 | 325 | return SpyCompanyUserQuery::create(); |
326 | 326 | })); |
327 | 327 |