Completed
Pull Request — master (#17)
by Kamil
26:17
created
src/Sylius/Bundle/PaymentBundle/Form/Type/PaymentMethodChoiceType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,13 +31,13 @@
 block discarded – undo
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
         };
Please login to merge, or discard this patch.
Sylius/Bundle/CoreBundle/Form/Type/Action/AddProductConfigurationType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
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(
Please login to merge, or discard this patch.
Bundle/CoreBundle/Form/Type/Rule/ContainsProductConfigurationType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
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(
Please login to merge, or discard this patch.
src/Sylius/Bundle/ShippingBundle/Form/Type/ShippingMethodChoiceType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
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 {
Please login to merge, or discard this patch.
src/Sylius/Bundle/ResourceBundle/Form/Type/ResourceChoiceType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
             ->setDefaults(array(
62 62
                 'class' => null,
63 63
             ))
64
-            ->setNormalizer('class', function () {
64
+            ->setNormalizer('class', function() {
65 65
                 return $this->className;
66 66
             })
67 67
         ;
Please login to merge, or discard this patch.
src/Sylius/Component/Order/Model/OrderItemUnit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -281,7 +281,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Sylius/Bundle/AddressingBundle/Form/Type/ProvinceChoiceType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
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 {
Please login to merge, or discard this patch.
Bundle/ArchetypeBundle/Form/EventListener/ParentArchetypeListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
         );
63 63
 
64 64
         if (null != $currentArchetype->getId()) {
65
-            $parentOptions['query_builder'] = function (RepositoryInterface $repository) use ($currentArchetype) {
65
+            $parentOptions['query_builder'] = function(RepositoryInterface $repository) use ($currentArchetype) {
66 66
                 return $repository
67 67
                     ->createQueryBuilder('o')
68 68
                     ->where('o.id != :id')
Please login to merge, or discard this patch.
src/Sylius/Bundle/AddressingBundle/Form/Type/CountryChoiceType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
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 {
Please login to merge, or discard this patch.