@@ -28,7 +28,7 @@ discard block |
||
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 |
||
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 |
@@ -150,7 +150,7 @@ |
||
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()); |
@@ -108,6 +108,6 @@ |
||
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 | } |
@@ -62,7 +62,7 @@ |
||
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') |
@@ -41,7 +41,7 @@ |
||
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 { |
@@ -41,7 +41,7 @@ |
||
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 { |
@@ -18,8 +18,8 @@ |
||
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. |
@@ -53,7 +53,7 @@ |
||
53 | 53 | public function getMatchers() |
54 | 54 | { |
55 | 55 | return [ |
56 | - 'beSameAs' => function ($subject, $key) { |
|
56 | + 'beSameAs' => function($subject, $key) { |
|
57 | 57 | if (!$subject instanceof OrderItemUnitInterface || !$key instanceof OrderItemUnitInterface) { |
58 | 58 | return false; |
59 | 59 | } |