Completed
Pull Request — master (#168)
by
unknown
02:54
created
DependencyInjection/ONGRSettingsExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
Twig/GeneralSettingsWidgetExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
         }
110 110
         $pos = strpos($settingName, '_');
111 111
         $profile = substr($settingName, 0, $pos);
112
-        $name = substr($settingName, $pos+1);
112
+        $name = substr($settingName, $pos + 1);
113 113
 
114 114
         return $environment->render(
115 115
             $this->template,
Please login to merge, or discard this patch.
Service/FormValidator.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,8 +44,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
Tests/app/AppKernel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,6 +46,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Tests/Unit/Twig/ImagePathExtensionTest.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -149,8 +149,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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',
Please login to merge, or discard this patch.
Tests/Unit/Twig/EncryptionExtensionTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.