@@ -49,7 +49,7 @@ |
||
49 | 49 | ->add(static::FIELD_MESSAGE, TextType::class, [ |
50 | 50 | 'required' => false, |
51 | 51 | 'constraints' => [ |
52 | - new Callback(function ($value, ExecutionContextInterface $context) { |
|
52 | + new Callback(function($value, ExecutionContextInterface $context) { |
|
53 | 53 | /** @var \Symfony\Component\Form\Form $form */ |
54 | 54 | $form = $context->getObject(); |
55 | 55 | $parentThresholdGroupForm = $form->getParent()->getParent(); |
@@ -45,7 +45,7 @@ |
||
45 | 45 | $builder->add(static::FIELD_MESSAGE, TextType::class, [ |
46 | 46 | 'required' => false, |
47 | 47 | 'constraints' => [ |
48 | - new Callback(function ($value, ExecutionContextInterface $context) { |
|
48 | + new Callback(function($value, ExecutionContextInterface $context) { |
|
49 | 49 | /** @var \Symfony\Component\Form\Form $form */ |
50 | 50 | $form = $context->getObject(); |
51 | 51 | $parentThresholdGroupForm = $form->getParent()->getParent(); |
@@ -41,7 +41,7 @@ |
||
41 | 41 | */ |
42 | 42 | public function getProductsByQuickOrder(QuickOrderTransfer $quickOrderTransfer): array |
43 | 43 | { |
44 | - $skus = array_map(function (QuickOrderItemTransfer $quickOrderItemTransfer) { |
|
44 | + $skus = array_map(function(QuickOrderItemTransfer $quickOrderItemTransfer) { |
|
45 | 45 | return $quickOrderItemTransfer->getSku(); |
46 | 46 | }, $quickOrderTransfer->getItems()->getArrayCopy()); |
47 | 47 |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | $companyRoleCollectionConstraints = []; |
102 | 102 | |
103 | 103 | $companyRoleCollectionConstraints[] = new Callback([ |
104 | - 'callback' => function (CompanyRoleCollectionTransfer $companyRoleCollectionTransfer, ExecutionContextInterface $context) { |
|
104 | + 'callback' => function(CompanyRoleCollectionTransfer $companyRoleCollectionTransfer, ExecutionContextInterface $context) { |
|
105 | 105 | if (!$companyRoleCollectionTransfer->getRoles()->count()) { |
106 | 106 | $context->addViolation('At least one role must be assigned to a user.'); |
107 | 107 | } |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | */ |
117 | 117 | protected function getInputDataCallbackRoleCollectionTransformer(): Closure |
118 | 118 | { |
119 | - return function ($roleCollection = []): array { |
|
119 | + return function($roleCollection = []): array { |
|
120 | 120 | $roles = []; |
121 | 121 | |
122 | 122 | if (empty($roleCollection[CompanyRoleCollectionTransfer::ROLES])) { |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | */ |
137 | 137 | protected function getOutputDataCallbackRoleCollectionTransformer(): Closure |
138 | 138 | { |
139 | - return function ($submittedRoleCollection = []): CompanyRoleCollectionTransfer { |
|
139 | + return function($submittedRoleCollection = []): CompanyRoleCollectionTransfer { |
|
140 | 140 | $companyRoleCollectionTransfer = new CompanyRoleCollectionTransfer(); |
141 | 141 | |
142 | 142 | foreach ($submittedRoleCollection as $role) { |
@@ -162,7 +162,7 @@ |
||
162 | 162 | ->method('runSnifferCommand') |
163 | 163 | ->with( |
164 | 164 | $expectedPathToRunCommandWith, |
165 | - $this->callback(function ($subject) use ($codingStandard) { |
|
165 | + $this->callback(function($subject) use ($codingStandard) { |
|
166 | 166 | return is_callable([$subject, 'getCodingStandard']) && $subject->getCodingStandard() === $codingStandard; |
167 | 167 | }) |
168 | 168 | ); |
@@ -64,7 +64,7 @@ |
||
64 | 64 | |
65 | 65 | $pathOption = isset($options['path']) ? $options['path'] : null; |
66 | 66 | $defaults = [ |
67 | - static::OPTION_IGNORE => $namespace || $pathOption ? null : 'vendor/', |
|
67 | + static::OPTION_IGNORE => $namespace || $pathOption ? null : 'vendor/', |
|
68 | 68 | ]; |
69 | 69 | $options += $defaults; |
70 | 70 |
@@ -269,7 +269,7 @@ |
||
269 | 269 | |
270 | 270 | $process = new Process(explode(' ', $command), $this->config->getPathToRoot()); |
271 | 271 | $process->setTimeout($this->config->getProcessTimeout()); |
272 | - $process->run(function ($type, $buffer) { |
|
272 | + $process->run(function($type, $buffer) { |
|
273 | 273 | echo $buffer; |
274 | 274 | }); |
275 | 275 |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | 'choice_value' => 'idTaxRate', |
86 | 86 | 'constraints' => [ |
87 | 87 | new Callback([ |
88 | - 'callback' => function (ArrayObject $taxRates, ExecutionContextInterface $context) { |
|
88 | + 'callback' => function(ArrayObject $taxRates, ExecutionContextInterface $context) { |
|
89 | 89 | if ($taxRates->count() <= 0) { |
90 | 90 | $context->addViolation('You should choose one or more tax rates'); |
91 | 91 | } |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | */ |
118 | 118 | protected function createTransformCallback(): Closure |
119 | 119 | { |
120 | - return function ($taxRates) { |
|
120 | + return function($taxRates) { |
|
121 | 121 | if ($taxRates) { |
122 | 122 | return (array)$taxRates; |
123 | 123 | } |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | */ |
130 | 130 | protected function createReverseTransformCallback(): Closure |
131 | 131 | { |
132 | - return function ($taxRates) { |
|
132 | + return function($taxRates) { |
|
133 | 133 | return new ArrayObject($taxRates); |
134 | 134 | }; |
135 | 135 | } |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | protected function createUniqueTaxSetNameConstraint(): Constraint |
161 | 161 | { |
162 | 162 | return new Callback([ |
163 | - 'callback' => function ($name, ExecutionContextInterface $context) { |
|
163 | + 'callback' => function($name, ExecutionContextInterface $context) { |
|
164 | 164 | if (empty($name)) { |
165 | 165 | return; |
166 | 166 | } |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | */ |
112 | 112 | public function provide(ContainerInterface $container): ContainerInterface |
113 | 113 | { |
114 | - $container->set(ApplicationTest::SERVICE, function () { |
|
114 | + $container->set(ApplicationTest::SERVICE, function() { |
|
115 | 115 | return [ApplicationTest::SERVICE_PROPERTY => true]; |
116 | 116 | }); |
117 | 117 | |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | public function boot(ContainerInterface $container): ContainerInterface |
151 | 151 | { |
152 | 152 | $this->runs++; |
153 | - $container->set(ApplicationTest::SERVICE, function () { |
|
153 | + $container->set(ApplicationTest::SERVICE, function() { |
|
154 | 154 | return [ApplicationTest::SERVICE_PROPERTY => true]; |
155 | 155 | }); |
156 | 156 |
@@ -69,7 +69,7 @@ |
||
69 | 69 | $quoteCollectionTransfer = $this->findExpiredGuestQuotes(); |
70 | 70 | |
71 | 71 | foreach ($quoteCollectionTransfer->getQuotes() as $quoteTransfer) { |
72 | - $this->getTransactionHandler()->handleTransaction(function () use ($quoteTransfer) { |
|
72 | + $this->getTransactionHandler()->handleTransaction(function() use ($quoteTransfer) { |
|
73 | 73 | $this->executeDeleteTransaction($quoteTransfer); |
74 | 74 | }); |
75 | 75 | } |