@@ -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') |