Completed
Push — master ( 00da88...18ec14 )
by Kamil
22:59
created
Sylius/Bundle/CoreBundle/Form/Type/Shipping/ShippingMethodChoiceType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     {
33 33
         parent::configureOptions($resolver);
34 34
 
35
-        $choiceList = function (Options $options) {
35
+        $choiceList = function(Options $options) {
36 36
             if (isset($options['subject'])) {
37 37
                 $methods = $this->resolver->getSupportedMethods($options['subject'], $options['criteria']);
38 38
             } else {
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
             if ($options['channel']) {
43 43
                 $filteredMethods = array();
44
-                foreach($methods as $method) {
44
+                foreach ($methods as $method) {
45 45
                     if ($options['channel']->hasShippingMethod($method)) {
46 46
                         $filteredMethods[] = $method;
47 47
                     }
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Form/Type/OrderItemType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
         parent::buildForm($builder, $options);
34 34
 
35 35
         $builder
36
-            ->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) use ($options) {
36
+            ->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) use ($options) {
37 37
                 $data = $event->getData();
38 38
                 if (isset($data['variant'])) {
39 39
                     $event->getForm()->add('variant', 'entity_hidden', array(
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Form/Type/LocaleType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
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',
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Form/Type/DataFetcher/SalesTotalType.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,8 +47,8 @@
 block discarded – undo
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';
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Form/Type/DataFetcher/UserRegistrationType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,12 +30,12 @@
 block discarded – undo
30 30
         $builder
31 31
             ->add('start', 'date', array(
32 32
                 'label' => 'sylius.form.report.user_registration.start',
33
-                'years' => range(date('Y')-100, date('Y')),
33
+                'years' => range(date('Y') - 100, date('Y')),
34 34
                 'data'  => new \DateTime(),
35 35
             ))
36 36
             ->add('end', 'date', array(
37 37
                 'label' => 'sylius.form.report.user_registration.end',
38
-                'years' => range(date('Y')-100, date('Y')),
38
+                'years' => range(date('Y') - 100, date('Y')),
39 39
                 'data'  => new \DateTime(),
40 40
             ))
41 41
             ->add('period', 'choice', array(
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Form/Type/Rule/CustomerGroupType.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/CoreBundle/Form/Type/Payment/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.
src/Sylius/Bundle/CoreBundle/Form/Type/CartType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
                 'by_reference' => false,
52 52
                 'label'        => 'sylius.form.cart.coupon',
53 53
             ))
54
-            ->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) {
54
+            ->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) {
55 55
                 $data = $event->getData();
56 56
 
57 57
                 if (!$data->getPromotionCoupons()->isEmpty()) {
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Form/Type/Checkout/AddressingStepType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     public function buildForm(FormBuilderInterface $builder, array $options)
33 33
     {
34 34
         $builder
35
-            ->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) {
35
+            ->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) {
36 36
                 $data = $event->getData();
37 37
 
38 38
                 if (!array_key_exists('differentBillingAddress', $data) || false === $data['differentBillingAddress']) {
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
                     $event->setData($data);
42 42
                 }
43 43
             })
44
-            ->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) use ($options) {
44
+            ->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) use ($options) {
45 45
                 /* @var CustomerInterface $customer */
46 46
                 $customer = $options['customer'];
47 47
                 // if customer does not have user, it is not registered, so we do not preset data
Please login to merge, or discard this patch.