@@ -281,7 +281,7 @@ |
||
| 281 | 281 | return $this->adjustments; |
| 282 | 282 | } |
| 283 | 283 | |
| 284 | - return $this->adjustments->filter(function (AdjustmentInterface $adjustment) use ($type) { |
|
| 284 | + return $this->adjustments->filter(function(AdjustmentInterface $adjustment) use ($type) { |
|
| 285 | 285 | return $type === $adjustment->getType(); |
| 286 | 286 | }); |
| 287 | 287 | } |
@@ -86,7 +86,7 @@ |
||
| 86 | 86 | */ |
| 87 | 87 | public function remove(ResourceInterface $resource) |
| 88 | 88 | { |
| 89 | - $newResources = array_filter($this->findAll(), function ($object) use ($resource) { |
|
| 89 | + $newResources = array_filter($this->findAll(), function($object) use ($resource) { |
|
| 90 | 90 | return $object !== $resource; |
| 91 | 91 | }); |
| 92 | 92 | |
@@ -481,7 +481,7 @@ |
||
| 481 | 481 | return null; |
| 482 | 482 | } |
| 483 | 483 | |
| 484 | - $filtered = $this->oauthAccounts->filter(function (UserOAuthInterface $oauth) use ($provider) { |
|
| 484 | + $filtered = $this->oauthAccounts->filter(function(UserOAuthInterface $oauth) use ($provider) { |
|
| 485 | 485 | return $provider === $oauth->getProvider(); |
| 486 | 486 | }); |
| 487 | 487 | |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | public function getMatchers() |
| 66 | 66 | { |
| 67 | 67 | return array( |
| 68 | - 'haveLength' => function ($subject, $key) { |
|
| 68 | + 'haveLength' => function($subject, $key) { |
|
| 69 | 69 | return $key === strlen($subject); |
| 70 | 70 | }, |
| 71 | 71 | ); |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | */ |
| 40 | 40 | public function configureOptions(OptionsResolver $resolver) |
| 41 | 41 | { |
| 42 | - $format = function (Options $options, $value) { |
|
| 42 | + $format = function(Options $options, $value) { |
|
| 43 | 43 | if ($options['widget'] === 'single_text') { |
| 44 | 44 | $formatter = new \IntlDateFormatter( |
| 45 | 45 | \Locale::getDefault(), |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | $data = $table->getRowsHash(); |
| 78 | 78 | $type = str_replace(' ', '_', trim($type)); |
| 79 | 79 | |
| 80 | - $object = $this->waitFor(function () use ($type, $data) { |
|
| 80 | + $object = $this->waitFor(function() use ($type, $data) { |
|
| 81 | 81 | try { |
| 82 | 82 | return $this->findOneByName($type, $data['name']); |
| 83 | 83 | } catch (\InvalidArgumentException $exception) { |
@@ -86,7 +86,7 @@ |
||
| 86 | 86 | |
| 87 | 87 | $resolver |
| 88 | 88 | ->setDefaults(array( |
| 89 | - 'validation_groups' => function (Options $options) { |
|
| 89 | + 'validation_groups' => function(Options $options) { |
|
| 90 | 90 | if ($options['shippable']) { |
| 91 | 91 | $this->validationGroups[] = 'shippable'; |
| 92 | 92 | } |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | parent::configureOptions($resolver); |
| 28 | 28 | |
| 29 | 29 | $resolver->setDefaults(array( |
| 30 | - 'query_builder' => function (EntityRepository $repository) { |
|
| 30 | + 'query_builder' => function(EntityRepository $repository) { |
|
| 31 | 31 | return $repository->createQueryBuilder('o')->orderBy('o.left', 'asc'); |
| 32 | 32 | }, |
| 33 | 33 | )); |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | ->getQuery() |
| 70 | 70 | ; |
| 71 | 71 | |
| 72 | - $result = $this->waitFor(function () use ($query) { |
|
| 72 | + $result = $this->waitFor(function() use ($query) { |
|
| 73 | 73 | return $query->getResult(); |
| 74 | 74 | }); |
| 75 | 75 | |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | ; |
| 99 | 99 | |
| 100 | 100 | try { |
| 101 | - $this->waitFor(function () use ($query) { |
|
| 101 | + $this->waitFor(function() use ($query) { |
|
| 102 | 102 | return 0 === count($query->getResult()) ? true : false; |
| 103 | 103 | }); |
| 104 | 104 | } catch (\RuntimeException $exception) { |