| @@ -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 | } | 
| @@ -151,7 +151,7 @@ | ||
| 151 | 151 | public function getTaxons($taxonomy = null) | 
| 152 | 152 |      { | 
| 153 | 153 |          if (null !== $taxonomy) { | 
| 154 | -            return $this->taxons->filter(function (BaseTaxonInterface $taxon) use ($taxonomy) { | |
| 154 | +            return $this->taxons->filter(function(BaseTaxonInterface $taxon) use ($taxonomy) { | |
| 155 | 155 | return $taxonomy === strtolower($taxon->getTaxonomy()->getName()); | 
| 156 | 156 | }); | 
| 157 | 157 | } | 
| @@ -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 | ); | 
| @@ -48,10 +48,10 @@ | ||
| 48 | 48 | $builder | 
| 49 | 49 | ->addViewTransformer($transformer) | 
| 50 | 50 |              ->setAttribute('data_class', $options['data_class']) | 
| 51 | -            ->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) use ($transformer) { | |
| 51 | +            ->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) use ($transformer) { | |
| 52 | 52 | $event->setData($transformer->reverseTransform($event->getData())); | 
| 53 | 53 | }) | 
| 54 | -            ->addEventListener(FormEvents::SUBMIT, function (FormEvent $event) use ($transformer) { | |
| 54 | +            ->addEventListener(FormEvents::SUBMIT, function(FormEvent $event) use ($transformer) { | |
| 55 | 55 | $event->setData($transformer->reverseTransform($event->getData())); | 
| 56 | 56 | }) | 
| 57 | 57 | ; | 
| @@ -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 | } |