Completed
Push — master ( 0729b3...dbaae6 )
by Kamil
18:26
created
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.
src/Sylius/Bundle/AddressingBundle/Form/Type/CountryCodeChoiceType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     {
29 29
         parent::configureOptions($resolver);
30 30
 
31
-        $choices = function (Options $options) {
31
+        $choices = function(Options $options) {
32 32
             if (null === $options['enabled']) {
33 33
                 $countries = $this->countryRepository->findAll();
34 34
             } else {
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         $countryCodes = array();
61 61
 
62 62
         /* @var CountryInterface $country */
63
-        foreach ($countries as $country){
63
+        foreach ($countries as $country) {
64 64
             $countryCodes[$country->getCode()] = Intl::getRegionBundle()->getCountryName($country->getCode());
65 65
         }
66 66
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/FixturesBundle/DataFixtures/DataFixture.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@
 block discarded – undo
150 150
         $countries = array_slice($allCountries, 0, count($allCountries) - 5, true);
151 151
 
152 152
         $countryCode = array_rand($countries);
153
-        $country = $this->getReference("Sylius.Country." . $countryCode);
153
+        $country = $this->getReference("Sylius.Country.".$countryCode);
154 154
 
155 155
         if ($province = $country->hasProvinces() ? $this->faker->randomElement($country->getProvinces()->toArray()) : null) {
156 156
             $address->setProvince($province->getCode());
Please login to merge, or discard this patch.
Bundle/ArchetypeBundle/DependencyInjection/SyliusArchetypeExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,6 +108,6 @@
 block discarded – undo
108 108
             ->setArguments(array(new Reference(sprintf('sylius.factory.%s_attribute_value', $subjectName))))
109 109
         ;
110 110
 
111
-        $container->setDefinition('sylius.builder.' . $subjectName . '_archetype', $builderDefinition);
111
+        $container->setDefinition('sylius.builder.'.$subjectName.'_archetype', $builderDefinition);
112 112
     }
113 113
 }
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.
src/Sylius/Bundle/AddressingBundle/Form/Type/ProvinceCodeChoiceType.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.
spec/DependencyInjection/DoctrineTargetEntitiesResolverSpec.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@
 block discarded – undo
18 18
 use Symfony\Component\DependencyInjection\ContainerBuilder;
19 19
 use Symfony\Component\DependencyInjection\Definition;
20 20
 
21
-require_once __DIR__ . '/../Fixture/FooInterface.php';
22
-require_once __DIR__ . '/../Fixture/Foo.php';
21
+require_once __DIR__.'/../Fixture/FooInterface.php';
22
+require_once __DIR__.'/../Fixture/Foo.php';
23 23
 
24 24
 /**
25 25
  * Doctrine target entities resolver spec.
Please login to merge, or discard this patch.