@@ -37,7 +37,7 @@ |
||
37 | 37 | */ |
38 | 38 | public function boot(Application $app) |
39 | 39 | { |
40 | - $app->before(function (Request $request) { |
|
40 | + $app->before(function(Request $request) { |
|
41 | 41 | $this->assertMatchingHostName($request); |
42 | 42 | }, Application::EARLY_EVENT); |
43 | 43 | } |
@@ -91,7 +91,7 @@ |
||
91 | 91 | protected function createBirthdayConstraint() |
92 | 92 | { |
93 | 93 | return new Callback([ |
94 | - 'callback' => function ($date, ExecutionContextInterface $context) { |
|
94 | + 'callback' => function($date, ExecutionContextInterface $context) { |
|
95 | 95 | if (strtotime($date) > strtotime(static::MIN_BIRTHDAY_DATE_STRING)) { |
96 | 96 | $context->addViolation('Must be older than 18 years'); |
97 | 97 | } |
@@ -161,7 +161,7 @@ |
||
161 | 161 | $this->addPublishEvents(CategoryEvents::CATEGORY_TREE_PUBLISH, $categoryNodeEntity->getIdCategoryNode()); |
162 | 162 | } |
163 | 163 | |
164 | - $convertCallback = function ($value) { |
|
164 | + $convertCallback = function($value) { |
|
165 | 165 | return mb_strtolower(str_replace(' ', '-', $value)); |
166 | 166 | }; |
167 | 167 | $urlPathParts = array_map($convertCallback, $urlPathParts); |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | { |
77 | 77 | $builder->get(ProductConcreteTransfer::COMPANY_SUPPLIERS)->addModelTransformer( |
78 | 78 | new CallbackTransformer( |
79 | - function ($suppliers) { |
|
79 | + function($suppliers) { |
|
80 | 80 | if (empty($suppliers)) { |
81 | 81 | return $suppliers; |
82 | 82 | } |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | |
89 | 89 | return $result; |
90 | 90 | }, |
91 | - function ($data) { |
|
91 | + function($data) { |
|
92 | 92 | $suppliers = []; |
93 | 93 | foreach ($data as $id) { |
94 | 94 | $suppliers[] = (new SpyCompanyEntityTransfer()) |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | { |
78 | 78 | $builder->get(CompanyBusinessUnitTransfer::ADDRESS_COLLECTION)->addModelTransformer( |
79 | 79 | new CallbackTransformer( |
80 | - function ($addresses) { |
|
80 | + function($addresses) { |
|
81 | 81 | if (empty($addresses)) { |
82 | 82 | return $addresses; |
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 SpyCompanyUnitAddressEntityTransfer()) |
@@ -42,7 +42,7 @@ |
||
42 | 42 | */ |
43 | 43 | public function install(): void |
44 | 44 | { |
45 | - $this->getTransactionHandler()->handleTransaction(function () { |
|
45 | + $this->getTransactionHandler()->handleTransaction(function() { |
|
46 | 46 | $this->executeInstallTransaction(); |
47 | 47 | }); |
48 | 48 | } |
@@ -560,7 +560,7 @@ |
||
560 | 560 | |
561 | 561 | $useStatements = array_keys($useStatements); |
562 | 562 | sort($useStatements); |
563 | - $useStatements = array_reduce($useStatements, function ($prevUseStatement, $useStatement) { |
|
563 | + $useStatements = array_reduce($useStatements, function($prevUseStatement, $useStatement) { |
|
564 | 564 | return $prevUseStatement . PHP_EOL . 'use ' . $useStatement . ';'; |
565 | 565 | }, ''); |
566 | 566 |
@@ -42,7 +42,7 @@ |
||
42 | 42 | */ |
43 | 43 | public function install(): void |
44 | 44 | { |
45 | - $this->getTransactionHandler()->handleTransaction(function () { |
|
45 | + $this->getTransactionHandler()->handleTransaction(function() { |
|
46 | 46 | $this->executeInstallTransaction(); |
47 | 47 | }); |
48 | 48 | } |
@@ -405,12 +405,12 @@ |
||
405 | 405 | protected function createMoneyModelTransformer() |
406 | 406 | { |
407 | 407 | return new CallbackTransformer( |
408 | - function ($value) { |
|
408 | + function($value) { |
|
409 | 409 | if ($value !== null) { |
410 | 410 | return $value / 100; |
411 | 411 | } |
412 | 412 | }, |
413 | - function ($value) { |
|
413 | + function($value) { |
|
414 | 414 | if ($value !== null) { |
415 | 415 | return $value * 100; |
416 | 416 | } |