@@ -40,7 +40,7 @@ |
||
| 40 | 40 | // Set profiles. |
| 41 | 41 | $container->setParameter('ongr_settings.settings_container.profiles', $config['profiles']); |
| 42 | 42 | |
| 43 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 43 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 44 | 44 | $loader->load('services/twig_extension.yml'); |
| 45 | 45 | $loader->load('services/personal_settings.yml'); |
| 46 | 46 | $loader->load('services/general_settings.yml'); |
@@ -44,8 +44,7 @@ |
||
| 44 | 44 | switch ($return['type']) { |
| 45 | 45 | case 'bool': |
| 46 | 46 | $request->request->get('setting-boolean') == 'true' ? |
| 47 | - $return['value'] = true : |
|
| 48 | - $return['value'] = false; |
|
| 47 | + $return['value'] = true : $return['value'] = false; |
|
| 49 | 48 | break; |
| 50 | 49 | case 'string': |
| 51 | 50 | $return['value'] = $request->request->get('setting-default'); |
@@ -46,6 +46,6 @@ |
||
| 46 | 46 | */ |
| 47 | 47 | public function registerContainerConfiguration(LoaderInterface $loader) |
| 48 | 48 | { |
| 49 | - $loader->load(__DIR__ . '/config/config_' . $this->getEnvironment() . '.yml'); |
|
| 49 | + $loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml'); |
|
| 50 | 50 | } |
| 51 | 51 | } |
@@ -149,8 +149,8 @@ discard block |
||
| 149 | 149 | return [ |
| 150 | 150 | [ |
| 151 | 151 | [ |
| 152 | - 'path' => $this->prefix . '/product/1/AA000_knife_set.jpg', |
|
| 153 | - 'url' => $this->cdnUrl . $this->prefix . '/product/1/AA000_knife_set.jpg', |
|
| 152 | + 'path' => $this->prefix.'/product/1/AA000_knife_set.jpg', |
|
| 153 | + 'url' => $this->cdnUrl.$this->prefix.'/product/1/AA000_knife_set.jpg', |
|
| 154 | 154 | ], |
| 155 | 155 | 'AA000_knife_set.jpg', |
| 156 | 156 | 'product', |
@@ -158,8 +158,8 @@ discard block |
||
| 158 | 158 | ], |
| 159 | 159 | [ |
| 160 | 160 | [ |
| 161 | - 'path' => $this->prefix . '/product/5/AA002_knife_set.jpg', |
|
| 162 | - 'url' => $this->cdnUrl . $this->prefix . '/product/5/AA002_knife_set.jpg', |
|
| 161 | + 'path' => $this->prefix.'/product/5/AA002_knife_set.jpg', |
|
| 162 | + 'url' => $this->cdnUrl.$this->prefix.'/product/5/AA002_knife_set.jpg', |
|
| 163 | 163 | ], |
| 164 | 164 | 'AA002_knife_set.jpg', |
| 165 | 165 | 'product', |
@@ -167,8 +167,8 @@ discard block |
||
| 167 | 167 | ], |
| 168 | 168 | [ |
| 169 | 169 | [ |
| 170 | - 'path' => $this->prefix . '/product_preview/5/AA002_knife_set.jpg', |
|
| 171 | - 'url' => $this->cdnUrl . $this->prefix . '/product_preview/5/AA002_knife_set.jpg', |
|
| 170 | + 'path' => $this->prefix.'/product_preview/5/AA002_knife_set.jpg', |
|
| 171 | + 'url' => $this->cdnUrl.$this->prefix.'/product_preview/5/AA002_knife_set.jpg', |
|
| 172 | 172 | ], |
| 173 | 173 | 'AA002_knife_set.jpg', |
| 174 | 174 | 'product_preview', |
@@ -176,16 +176,16 @@ discard block |
||
| 176 | 176 | ], |
| 177 | 177 | [ |
| 178 | 178 | [ |
| 179 | - 'path' => $this->prefix . '/category/CAT001_kitchen.jpg', |
|
| 180 | - 'url' => $this->cdnUrl . $this->prefix . '/category/CAT001_kitchen.jpg', |
|
| 179 | + 'path' => $this->prefix.'/category/CAT001_kitchen.jpg', |
|
| 180 | + 'url' => $this->cdnUrl.$this->prefix.'/category/CAT001_kitchen.jpg', |
|
| 181 | 181 | ], |
| 182 | 182 | 'CAT001_kitchen.jpg', |
| 183 | 183 | 'category', |
| 184 | 184 | ], |
| 185 | 185 | [ |
| 186 | 186 | [ |
| 187 | - 'path' => $this->prefix . '/product/12/BB000_knife_set.jpg', |
|
| 188 | - 'url' => $this->cdnUrl . $this->prefix . '/product/12/BB000_knife_set.jpg', |
|
| 187 | + 'path' => $this->prefix.'/product/12/BB000_knife_set.jpg', |
|
| 188 | + 'url' => $this->cdnUrl.$this->prefix.'/product/12/BB000_knife_set.jpg', |
|
| 189 | 189 | ], |
| 190 | 190 | 'BB000_knife_set.jpg', |
| 191 | 191 | 'product', |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | $extension = new EncryptionExtension(); |
| 37 | 37 | |
| 38 | 38 | foreach ($extension->getFilters() as $function => $object) { |
| 39 | - $this->assertTrue(method_exists($extension, $function . 'Filter')); |
|
| 39 | + $this->assertTrue(method_exists($extension, $function.'Filter')); |
|
| 40 | 40 | } |
| 41 | 41 | } |
| 42 | 42 | |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | /** |
| 69 | - * @return array |
|
| 69 | + * @return string[] |
|
| 70 | 70 | */ |
| 71 | 71 | public function getFirewallsDetails() |
| 72 | 72 | { |