| @@ -16,7 +16,7 @@ | ||
| 16 | 16 | use Symfony\Component\Form\Exception\UnexpectedTypeException; | 
| 17 | 17 | |
| 18 | 18 | // Since the root namespace "spec" is not in our autoload | 
| 19 | -require_once __DIR__ . DIRECTORY_SEPARATOR . 'FakeEntity.php'; | |
| 19 | +require_once __DIR__.DIRECTORY_SEPARATOR.'FakeEntity.php'; | |
| 20 | 20 | |
| 21 | 21 | class ObjectSelectionToIdentifierCollectionTransformerSpec extends ObjectBehavior | 
| 22 | 22 |  { | 
| @@ -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 | )); | 
| @@ -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 { | 
| @@ -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 { | 
| @@ -31,13 +31,13 @@ | ||
| 31 | 31 |      { | 
| 32 | 32 | parent::configureOptions($resolver); | 
| 33 | 33 | |
| 34 | -        $queryBuilder = function (Options $options) { | |
| 34 | +        $queryBuilder = function(Options $options) { | |
| 35 | 35 | $repositoryOptions = array( | 
| 36 | 36 | 'disabled' => $options['disabled'], | 
| 37 | 37 | 'channel' => $options['channel'], | 
| 38 | 38 | ); | 
| 39 | 39 | |
| 40 | -            return function (PaymentMethodRepositoryInterface $repository) use ($repositoryOptions) { | |
| 40 | +            return function(PaymentMethodRepositoryInterface $repository) use ($repositoryOptions) { | |
| 41 | 41 | return $repository->getQueryBuidlerForChoiceType($repositoryOptions); | 
| 42 | 42 | }; | 
| 43 | 43 | }; | 
| @@ -45,7 +45,7 @@ | ||
| 45 | 45 | 'label' => 'sylius.form.action.customer_group', | 
| 46 | 46 | 'property' => 'name', | 
| 47 | 47 | 'class' => $this->groupRepository->getClassName(), | 
| 48 | -                'query_builder' => function () { | |
| 48 | +                'query_builder' => function() { | |
| 49 | 49 | return $this->groupRepository->getFormQueryBuilder(); | 
| 50 | 50 | }, | 
| 51 | 51 | 'constraints' => array( | 
| @@ -48,7 +48,7 @@ | ||
| 48 | 48 |      { | 
| 49 | 49 | $builder->addEventListener( | 
| 50 | 50 | FormEvents::PRE_SET_DATA, | 
| 51 | -            function (FormEvent $event) { | |
| 51 | +            function(FormEvent $event) { | |
| 52 | 52 | // Adding dynamically created code field | 
| 53 | 53 | $nameOptions = array( | 
| 54 | 54 | 'label' => 'sylius.form.locale.name', | 
| @@ -47,8 +47,8 @@ | ||
| 47 | 47 | } | 
| 48 | 48 | |
| 49 | 49 | /** | 
| 50 | -    * {@inheritdoc} | |
| 51 | - */ | |
| 50 | +     * {@inheritdoc} | |
| 51 | + */ | |
| 52 | 52 | public function getName() | 
| 53 | 53 |      { | 
| 54 | 54 | return 'sylius_data_fetcher_sales_total'; | 
| @@ -45,7 +45,7 @@ | ||
| 45 | 45 | 'label' => 'sylius.form.action.customer_group', | 
| 46 | 46 | 'property' => 'name', | 
| 47 | 47 | 'class' => $this->groupRepository->getClassName(), | 
| 48 | -                'query_builder' => function () { | |
| 48 | +                'query_builder' => function() { | |
| 49 | 49 | return $this->groupRepository->getFormQueryBuilder(); | 
| 50 | 50 | }, | 
| 51 | 51 | 'constraints' => array( |