@@ -44,7 +44,7 @@ |
||
44 | 44 | */ |
45 | 45 | public function registerContainerConfiguration(LoaderInterface $loader) |
46 | 46 | { |
47 | - $loader->load(__DIR__.'/config/config.yml'); |
|
47 | + $loader->load(__DIR__ . '/config/config.yml'); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |
@@ -44,7 +44,7 @@ |
||
44 | 44 | */ |
45 | 45 | public function registerContainerConfiguration(LoaderInterface $loader) |
46 | 46 | { |
47 | - $loader->load(__DIR__.'/config/config.yml'); |
|
47 | + $loader->load(__DIR__ . '/config/config.yml'); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | |
71 | 71 | private function previousDisabledClass() |
72 | 72 | { |
73 | - return $this->option('css_prev_class').' '.$this->option('css_disabled_class'); |
|
73 | + return $this->option('css_prev_class') . ' ' . $this->option('css_disabled_class'); |
|
74 | 74 | } |
75 | 75 | |
76 | 76 | public function previousEnabled($page) |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | |
92 | 92 | private function nextDisabledClass() |
93 | 93 | { |
94 | - return $this->option('css_next_class').' '.$this->option('css_disabled_class'); |
|
94 | + return $this->option('css_next_class') . ' ' . $this->option('css_disabled_class'); |
|
95 | 95 | } |
96 | 96 | |
97 | 97 | public function nextEnabled($page) |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | |
115 | 115 | public function current($page) |
116 | 116 | { |
117 | - $text = trim($page.' '.$this->option('active_suffix')); |
|
117 | + $text = trim($page . ' ' . $this->option('active_suffix')); |
|
118 | 118 | $class = $this->option('css_active_class'); |
119 | 119 | |
120 | 120 | return $this->div($class, $text); |
@@ -44,7 +44,7 @@ |
||
44 | 44 | */ |
45 | 45 | public function registerContainerConfiguration(LoaderInterface $loader) |
46 | 46 | { |
47 | - $loader->load(__DIR__.'/config/config.yml'); |
|
47 | + $loader->load(__DIR__ . '/config/config.yml'); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |
@@ -44,7 +44,7 @@ |
||
44 | 44 | */ |
45 | 45 | public function registerContainerConfiguration(LoaderInterface $loader) |
46 | 46 | { |
47 | - $loader->load(__DIR__.'/config/config.yml'); |
|
47 | + $loader->load(__DIR__ . '/config/config.yml'); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |
@@ -44,7 +44,7 @@ |
||
44 | 44 | */ |
45 | 45 | public function registerContainerConfiguration(LoaderInterface $loader) |
46 | 46 | { |
47 | - $loader->load(__DIR__.'/config/config.yml'); |
|
47 | + $loader->load(__DIR__ . '/config/config.yml'); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |
@@ -56,6 +56,6 @@ |
||
56 | 56 | return $data['date']; |
57 | 57 | } |
58 | 58 | |
59 | - return $data['date'].' '.$data['time']; |
|
59 | + return $data['date'] . ' ' . $data['time']; |
|
60 | 60 | } |
61 | 61 | } |
@@ -166,7 +166,7 @@ |
||
166 | 166 | */ |
167 | 167 | public function iSetItsPriceTo($price = null, $channel = null) |
168 | 168 | { |
169 | - $this->createPage->specifyPrice($price, (null === $channel) ? $this->sharedStorage->get('channel') :$channel); |
|
169 | + $this->createPage->specifyPrice($price, (null === $channel) ? $this->sharedStorage->get('channel') : $channel); |
|
170 | 170 | } |
171 | 171 | |
172 | 172 | /** |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | |
34 | 34 | $this->addSql('CREATE TABLE sylius_product_variant_translation (id INT AUTO_INCREMENT NOT NULL, translatable_id INT NOT NULL, name VARCHAR(255) DEFAULT NULL, locale VARCHAR(255) NOT NULL, INDEX IDX_8DC18EDC2C2AC5D3 (translatable_id), UNIQUE INDEX sylius_product_variant_translation_uniq_trans (translatable_id, locale), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB'); |
35 | 35 | $this->addSql('ALTER TABLE sylius_product_variant_translation ADD CONSTRAINT FK_8DC18EDC2C2AC5D3 FOREIGN KEY (translatable_id) REFERENCES sylius_product_variant (id) ON DELETE CASCADE'); |
36 | - $this->addSql('INSERT INTO sylius_product_variant_translation (translatable_id, name, locale) SELECT id, name, "'.$defaultLocale.'" from sylius_product_variant WHERE sylius_product_variant.name IS NOT null'); |
|
36 | + $this->addSql('INSERT INTO sylius_product_variant_translation (translatable_id, name, locale) SELECT id, name, "' . $defaultLocale . '" from sylius_product_variant WHERE sylius_product_variant.name IS NOT null'); |
|
37 | 37 | $this->addSql('ALTER TABLE sylius_product_variant DROP name'); |
38 | 38 | } |
39 | 39 | |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.'); |
48 | 48 | |
49 | 49 | $this->addSql('ALTER TABLE sylius_product_variant ADD name VARCHAR(255) DEFAULT NULL COLLATE utf8_unicode_ci'); |
50 | - $this->addSql('UPDATE sylius_product_variant SET name = (SELECT name FROM sylius_product_variant_translation WHERE sylius_product_variant_translation.translatable_id = sylius_product_variant.id AND sylius_product_variant_translation.locale = "'.$defaultLocale.'")'); |
|
50 | + $this->addSql('UPDATE sylius_product_variant SET name = (SELECT name FROM sylius_product_variant_translation WHERE sylius_product_variant_translation.translatable_id = sylius_product_variant.id AND sylius_product_variant_translation.locale = "' . $defaultLocale . '")'); |
|
51 | 51 | $this->addSql('DROP TABLE sylius_product_variant_translation'); |
52 | 52 | } |
53 | 53 | } |