@@ -164,7 +164,7 @@ |
||
| 164 | 164 | public function getMatchers() |
| 165 | 165 | { |
| 166 | 166 | return [ |
| 167 | - 'containText' => function ($subject, $text) { |
|
| 167 | + 'containText' => function($subject, $text) { |
|
| 168 | 168 | return false !== strpos($subject, $text); |
| 169 | 169 | }, |
| 170 | 170 | ]; |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | public function configureOptions(OptionsResolver $resolver) |
| 43 | 43 | { |
| 44 | - $choices = function (Options $options) { |
|
| 44 | + $choices = function(Options $options) { |
|
| 45 | 45 | if (null === $options['country']) { |
| 46 | 46 | $choices = $this->provinceRepository->findAll(); |
| 47 | 47 | } else { |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | */ |
| 55 | 55 | public function configureOptions(OptionsResolver $resolver) |
| 56 | 56 | { |
| 57 | - $choiceList = function (Options $options) { |
|
| 57 | + $choiceList = function(Options $options) { |
|
| 58 | 58 | if (null === $options['enabled']) { |
| 59 | 59 | $choices = $this->localeRepository->findAll(); |
| 60 | 60 | } else { |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | { |
| 21 | 21 | function let() |
| 22 | 22 | { |
| 23 | - $this->beConstructedWith('message', 'step_name', function () {}); |
|
| 23 | + $this->beConstructedWith('message', 'step_name', function() {}); |
|
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | function it_is_initializable() |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | |
| 48 | 48 | function its_validation_is_mutable() |
| 49 | 49 | { |
| 50 | - $closure = function () {}; |
|
| 50 | + $closure = function() {}; |
|
| 51 | 51 | |
| 52 | 52 | $this->setValidation($closure)->shouldReturn($this); |
| 53 | 53 | $this->getValidation()->shouldReturn($closure); |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | function it_calls_validation_closure(ProcessContextInterface $processContext) |
| 57 | 57 | { |
| 58 | - $this->setValidation(function () { |
|
| 58 | + $this->setValidation(function() { |
|
| 59 | 59 | return true; |
| 60 | 60 | }); |
| 61 | 61 | |
@@ -170,10 +170,10 @@ discard block |
||
| 170 | 170 | ->arrayNode('roles_hierarchy') |
| 171 | 171 | ->useAttributeAsKey('id') |
| 172 | 172 | ->prototype('array') |
| 173 | - ->beforeNormalization()->ifString()->then(function ($v) { return ['value' => $v]; })->end() |
|
| 173 | + ->beforeNormalization()->ifString()->then(function($v) { return ['value' => $v]; })->end() |
|
| 174 | 174 | ->beforeNormalization() |
| 175 | - ->ifTrue(function ($v) { return is_array($v) && isset($v['value']); }) |
|
| 176 | - ->then(function ($v) { return preg_split('/\s*,\s*/', $v['value']); }) |
|
| 175 | + ->ifTrue(function($v) { return is_array($v) && isset($v['value']); }) |
|
| 176 | + ->then(function($v) { return preg_split('/\s*,\s*/', $v['value']); }) |
|
| 177 | 177 | ->end() |
| 178 | 178 | ->prototype('scalar')->end() |
| 179 | 179 | ->end() |
@@ -198,10 +198,10 @@ discard block |
||
| 198 | 198 | ->useAttributeAsKey('id') |
| 199 | 199 | ->prototype('array') |
| 200 | 200 | ->performNoDeepMerging() |
| 201 | - ->beforeNormalization()->ifString()->then(function ($v) { return ['value' => $v]; })->end() |
|
| 201 | + ->beforeNormalization()->ifString()->then(function($v) { return ['value' => $v]; })->end() |
|
| 202 | 202 | ->beforeNormalization() |
| 203 | - ->ifTrue(function ($v) { return is_array($v) && isset($v['value']); }) |
|
| 204 | - ->then(function ($v) { return preg_split('/\s*,\s*/', $v['value']); }) |
|
| 203 | + ->ifTrue(function($v) { return is_array($v) && isset($v['value']); }) |
|
| 204 | + ->then(function($v) { return preg_split('/\s*,\s*/', $v['value']); }) |
|
| 205 | 205 | ->end() |
| 206 | 206 | ->prototype('scalar')->end() |
| 207 | 207 | ->end() |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | $entityManager = $this->getEntityManager(); |
| 88 | 88 | $entityManager->getFilters()->disable('softdeleteable'); |
| 89 | 89 | |
| 90 | - $resource = $this->waitFor(function () use ($type, $property, $value) { |
|
| 90 | + $resource = $this->waitFor(function() use ($type, $property, $value) { |
|
| 91 | 91 | return $this->getRepository($type)->findOneBy([$property => $value]); |
| 92 | 92 | }); |
| 93 | 93 | |
@@ -662,7 +662,7 @@ discard block |
||
| 662 | 662 | */ |
| 663 | 663 | protected function waitForModalToAppear($modalContainer) |
| 664 | 664 | { |
| 665 | - $this->waitFor(function () use ($modalContainer) { |
|
| 665 | + $this->waitFor(function() use ($modalContainer) { |
|
| 666 | 666 | return false !== strpos($modalContainer->getAttribute('class'), 'in'); |
| 667 | 667 | }); |
| 668 | 668 | } |
@@ -672,7 +672,7 @@ discard block |
||
| 672 | 672 | */ |
| 673 | 673 | protected function waitForModalToDisappear($modalContainer) |
| 674 | 674 | { |
| 675 | - $this->waitFor(function () use ($modalContainer) { |
|
| 675 | + $this->waitFor(function() use ($modalContainer) { |
|
| 676 | 676 | return false === strpos($modalContainer->getAttribute('class'), 'in'); |
| 677 | 677 | }); |
| 678 | 678 | } |
@@ -1241,7 +1241,7 @@ |
||
| 1241 | 1241 | */ |
| 1242 | 1242 | private function getViewComparingCallback(View $expectedView) |
| 1243 | 1243 | { |
| 1244 | - return function ($value) use ($expectedView) { |
|
| 1244 | + return function($value) use ($expectedView) { |
|
| 1245 | 1245 | if (!$value instanceof View) { |
| 1246 | 1246 | return false; |
| 1247 | 1247 | } |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | */ |
| 54 | 54 | public function getConfigurations() |
| 55 | 55 | { |
| 56 | - return $this->processFileResources(function ($file) { |
|
| 56 | + return $this->processFileResources(function($file) { |
|
| 57 | 57 | return $this->loader->load($file); |
| 58 | 58 | }); |
| 59 | 59 | } |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | */ |
| 64 | 64 | public function getResources() |
| 65 | 65 | { |
| 66 | - return $this->processFileResources(function ($file) { |
|
| 66 | + return $this->processFileResources(function($file) { |
|
| 67 | 67 | return new FileResource($file); |
| 68 | 68 | }); |
| 69 | 69 | } |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | $email = $this->getHelper('dialog')->askAndValidate( |
| 89 | 89 | $output, |
| 90 | 90 | 'Please enter an email:', |
| 91 | - function ($username) { |
|
| 91 | + function($username) { |
|
| 92 | 92 | if (empty($username)) { |
| 93 | 93 | throw new \Exception('Email can not be empty'); |
| 94 | 94 | } |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | $password = $this->getHelper('dialog')->askHiddenResponseAndValidate( |
| 105 | 105 | $output, |
| 106 | 106 | 'Please choose a password:', |
| 107 | - function ($password) { |
|
| 107 | + function($password) { |
|
| 108 | 108 | if (empty($password)) { |
| 109 | 109 | throw new \Exception('Password can not be empty'); |
| 110 | 110 | } |