Completed
Pull Request — master (#168)
by
unknown
02:57
created
Twig/WrapperExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         foreach ($explodedLowerCaseText as $key => $word) {
53 53
             if (in_array($word, $keywords)) {
54 54
                 // Keyword matches entire word.
55
-                $result .= $prefix . $explodedText[$key] . $suffix;
55
+                $result .= $prefix.$explodedText[$key].$suffix;
56 56
             } else {
57 57
                 foreach ($keywords as $keyword) {
58 58
                     $startPosition = strpos($word, $keyword);
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
                         $wordMiddle = substr($explodedText[$key], $startPosition, strlen($keyword));
63 63
                         $wordEnd = substr($explodedText[$key], $startPosition + strlen($keyword));
64 64
 
65
-                        $result .= $wordStart . $prefix . $wordMiddle . $suffix . $wordEnd;
65
+                        $result .= $wordStart.$prefix.$wordMiddle.$suffix.$wordEnd;
66 66
 
67 67
                         if ($lastElementKey !== $key) {
68 68
                             $result .= ' ';
Please login to merge, or discard this patch.
Twig/HiddenExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
                 foreach ($value as $value2) {
111 111
                     if (!is_array($value2)) {
112 112
                         $new[] = [
113
-                            'name' => $name . '[]',
113
+                            'name' => $name.'[]',
114 114
                             'value' => $value2,
115 115
                         ];
116 116
                     }
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/Functional/Settings/SettingsManagerTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -181,9 +181,9 @@
 block discarded – undo
181 181
     private function getSetting($name, $type, $value, $profile = 'default')
182 182
     {
183 183
         $setting = new Setting();
184
-        $setting->setId($profile . '_' . $name);
184
+        $setting->setId($profile.'_'.$name);
185 185
         $setting->setName($name);
186
-        $setting->setDescription('ongr_settings.' . $name);
186
+        $setting->setDescription('ongr_settings.'.$name);
187 187
         $setting->setProfile($profile);
188 188
         $setting->setType($type);
189 189
         $setting->setData(['value' => $value]);
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.
Settings/Personal/PersonalSettingsManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -221,13 +221,13 @@
 block discarded – undo
221 221
     private function getStashName($user)
222 222
     {
223 223
         $property = $this->guessPropertyOrMethodName($user);
224
-        $stashName =  self::STASH_NAME.'_';
224
+        $stashName = self::STASH_NAME.'_';
225 225
         try {
226 226
             if ($property[0] == 'public') {
227
-                $stashName = $stashName . $user->$property[1];
227
+                $stashName = $stashName.$user->$property[1];
228 228
             } else {
229 229
                 $method = $property[1];
230
-                $stashName = $stashName . $user->$method();
230
+                $stashName = $stashName.$user->$method();
231 231
             }
232 232
             $this->stash = $stashName;
233 233
             return $stashName;
Please login to merge, or discard this patch.