@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | |
98 | 98 | $manager->persist($country); |
99 | 99 | |
100 | - $this->setReference('Sylius.Country.'.$countryCode, $country); |
|
100 | + $this->setReference('Sylius.Country.' . $countryCode, $country); |
|
101 | 101 | } |
102 | 102 | |
103 | 103 | $manager->flush(); |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | $province->setCode($newProvinceCode); |
129 | 129 | $country->addProvince($province); |
130 | 130 | |
131 | - $this->setReference('Sylius.Province.'.$newProvinceCode, $province); |
|
131 | + $this->setReference('Sylius.Province.' . $newProvinceCode, $province); |
|
132 | 132 | } |
133 | 133 | } |
134 | 134 | } |
@@ -33,14 +33,14 @@ |
||
33 | 33 | $finder = new Finder(); |
34 | 34 | $uploader = $this->get('sylius.image_uploader'); |
35 | 35 | |
36 | - foreach ($finder->files()->in(__DIR__.$this->path) as $img) { |
|
36 | + foreach ($finder->files()->in(__DIR__ . $this->path) as $img) { |
|
37 | 37 | $image = $this->getProductVariantImageFactory()->createNew(); |
38 | 38 | $image->setFile(new UploadedFile($img->getRealPath(), $img->getFilename())); |
39 | 39 | $uploader->upload($image); |
40 | 40 | |
41 | 41 | $manager->persist($image); |
42 | 42 | |
43 | - $this->setReference('Sylius.Image.'.$img->getBasename('.jpg'), $image); |
|
43 | + $this->setReference('Sylius.Image.' . $img->getBasename('.jpg'), $image); |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | $manager->flush(); |
@@ -35,7 +35,7 @@ |
||
35 | 35 | $contactRequest->setLastName($this->faker->lastName()); |
36 | 36 | $contactRequest->setEmail($this->faker->email()); |
37 | 37 | $contactRequest->setMessage($this->faker->paragraph()); |
38 | - $contactRequest->setTopic($this->getReference('Sylius.ContactTopic.'.rand(0, 4))); |
|
38 | + $contactRequest->setTopic($this->getReference('Sylius.ContactTopic.' . rand(0, 4))); |
|
39 | 39 | |
40 | 40 | $manager->persist($contactRequest); |
41 | 41 | } |
@@ -62,22 +62,22 @@ |
||
62 | 62 | $channel->setName($name); |
63 | 63 | $channel->setColor($this->faker->randomElement(['Red', 'Green', 'Blue', 'Orange', 'Pink'])); |
64 | 64 | |
65 | - $this->setReference('Sylius.Channel.'.$code, $channel); |
|
65 | + $this->setReference('Sylius.Channel.' . $code, $channel); |
|
66 | 66 | |
67 | 67 | foreach ($locales as $locale) { |
68 | - $channel->addLocale($this->getReference('Sylius.Locale.'.$locale)); |
|
68 | + $channel->addLocale($this->getReference('Sylius.Locale.' . $locale)); |
|
69 | 69 | } |
70 | 70 | foreach ($currencies as $currency) { |
71 | - $channel->addCurrency($this->getReference('Sylius.Currency.'.$currency)); |
|
71 | + $channel->addCurrency($this->getReference('Sylius.Currency.' . $currency)); |
|
72 | 72 | } |
73 | 73 | foreach ($taxons as $taxon) { |
74 | - $channel->addTaxon($this->getReference('Sylius.Taxon.'.$taxon)); |
|
74 | + $channel->addTaxon($this->getReference('Sylius.Taxon.' . $taxon)); |
|
75 | 75 | } |
76 | 76 | foreach ($shippingMethods as $shippingMethod) { |
77 | - $channel->addShippingMethod($this->getReference('Sylius.ShippingMethod.'.$shippingMethod)); |
|
77 | + $channel->addShippingMethod($this->getReference('Sylius.ShippingMethod.' . $shippingMethod)); |
|
78 | 78 | } |
79 | 79 | foreach ($paymentMethods as $paymentMethod) { |
80 | - $channel->addPaymentMethod($this->getReference('Sylius.PaymentMethod.'.$paymentMethod)); |
|
80 | + $channel->addPaymentMethod($this->getReference('Sylius.PaymentMethod.' . $paymentMethod)); |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | return $channel; |
@@ -88,7 +88,7 @@ |
||
88 | 88 | $attribute->setName($name); |
89 | 89 | } |
90 | 90 | |
91 | - $this->setReference('Sylius.Attribute.'.$code, $attribute); |
|
91 | + $this->setReference('Sylius.Attribute.' . $code, $attribute); |
|
92 | 92 | |
93 | 93 | return $attribute; |
94 | 94 | } |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | $order->setChannel($channel); |
48 | 48 | |
49 | 49 | for ($j = 0, $items = rand(3, 6); $j <= $items; ++$j) { |
50 | - $variant = $this->getReference('Sylius.Variant-'.rand(1, SYLIUS_FIXTURES_TOTAL_VARIANTS - 1)); |
|
50 | + $variant = $this->getReference('Sylius.Variant-' . rand(1, SYLIUS_FIXTURES_TOTAL_VARIANTS - 1)); |
|
51 | 51 | |
52 | 52 | /* @var $item OrderItemInterface */ |
53 | 53 | $item = $orderItemFactory->createNew(); |
@@ -72,11 +72,11 @@ discard block |
||
72 | 72 | $order->complete(); |
73 | 73 | $paymentState = $this->faker->boolean(50) ? PaymentInterface::STATE_COMPLETED : PaymentInterface::STATE_NEW; |
74 | 74 | |
75 | - $order->setCustomer($this->getReference('Sylius.Customer-'.rand(1, 15))); |
|
75 | + $order->setCustomer($this->getReference('Sylius.Customer-' . rand(1, 15))); |
|
76 | 76 | $this->createPayment($order, $paymentState); |
77 | 77 | |
78 | 78 | $order->setCompletedAt($this->faker->dateTimeThisDecade); |
79 | - $this->setReference('Sylius.Order-'.$i, $order); |
|
79 | + $this->setReference('Sylius.Order-' . $i, $order); |
|
80 | 80 | |
81 | 81 | $manager->persist($order); |
82 | 82 | } |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | $rootTaxon->setFallbackLocale($locale); |
76 | 76 | $rootTaxon->setName($name); |
77 | 77 | } |
78 | - $this->setReference('Sylius.Taxon.'.$code, $rootTaxon); |
|
78 | + $this->setReference('Sylius.Taxon.' . $code, $rootTaxon); |
|
79 | 79 | |
80 | 80 | foreach ($childrenArray as $taxonArray) { |
81 | 81 | /* @var $taxon TaxonInterface */ |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | $taxon->setName($taxonName); |
89 | 89 | $taxon->setDescription($this->fakers[$locale]->paragraph); |
90 | 90 | } |
91 | - $this->setReference('Sylius.Taxon.'.$taxonArray['code'], $taxon); |
|
91 | + $this->setReference('Sylius.Taxon.' . $taxonArray['code'], $taxon); |
|
92 | 92 | |
93 | 93 | $rootTaxon->addChild($taxon); |
94 | 94 | } |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | $category->setName($name); |
62 | 62 | $category->setDescription($description); |
63 | 63 | |
64 | - $this->setReference('Sylius.TaxCategory.'.$code, $category); |
|
64 | + $this->setReference('Sylius.TaxCategory.' . $code, $category); |
|
65 | 65 | |
66 | 66 | return $category; |
67 | 67 | } |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | $rate->setIncludedInPrice($includedInPrice); |
90 | 90 | $rate->setCalculator($calculator); |
91 | 91 | |
92 | - $this->setReference('Sylius.TaxRate.'.$code, $rate); |
|
92 | + $this->setReference('Sylius.TaxRate.' . $code, $rate); |
|
93 | 93 | |
94 | 94 | return $rate; |
95 | 95 | } |
@@ -56,7 +56,7 @@ |
||
56 | 56 | $group = $this->getGroupFactory()->createNew(); |
57 | 57 | $group->setName($name); |
58 | 58 | |
59 | - $this->setReference('Sylius.Group.'.$name, $group); |
|
59 | + $this->setReference('Sylius.Group.' . $name, $group); |
|
60 | 60 | |
61 | 61 | return $group; |
62 | 62 | } |