Completed
Pull Request — master (#33)
by Bernardo Vieira da
03:34
created
src/Exception/YMLParseException.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -11,6 +11,9 @@
 block discarded – undo
11 11
      */
12 12
     private $ymlFile;
13 13
 
14
+    /**
15
+     * @param string $yamlFile
16
+     */
14 17
     public function __construct(ParseException $previous, $yamlFile)
15 18
     {
16 19
         $message = 'Failed to parse file: \''.$yamlFile.'\' on line '.$previous->getParsedLine().'.';
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 
14 14
     public function __construct(ParseException $previous, $yamlFile)
15 15
     {
16
-        $message = 'Failed to parse file: \''.$yamlFile.'\' on line '.$previous->getParsedLine().'.';
16
+        $message = 'Failed to parse file: \'' . $yamlFile . '\' on line ' . $previous->getParsedLine() . '.';
17 17
         parent::__construct($message, $previous->getCode(), $previous);
18 18
         $this->setYmlFile($yamlFile);
19 19
     }
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     /**
30 30
      * @param string $ymlFile
31 31
      */
32
-    public function setYmlFile( $ymlFile )
32
+    public function setYmlFile($ymlFile)
33 33
     {
34 34
         $this->ymlFile = $ymlFile;
35 35
     }
Please login to merge, or discard this patch.
src/Adapter/OneSkyAdapter.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -48,8 +48,8 @@  discard block
 block discarded – undo
48 48
         $files = $this->getBaseTranslationFiles();
49 49
         $client = $this->getClient();
50 50
 
51
-        if(count($files) > 0) {
52
-            foreach($files as $filePath) {
51
+        if (count($files) > 0) {
52
+            foreach ($files as $filePath) {
53 53
                 $response = $client->files('upload', [
54 54
                     'project_id' => $this->oneSkyProjectId,
55 55
                     'file' => $filePath,
@@ -86,31 +86,31 @@  discard block
 block discarded – undo
86 86
     /**
87 87
      * Will ask adaptor for all files in all supported_languages and dump them to individual yml files.
88 88
      */
89
-    public function dumpAllTranslationsToYamlFiles(){
89
+    public function dumpAllTranslationsToYamlFiles() {
90 90
         $files = $this->getBaseTranslationFiles();
91 91
         $supportedLanguages = $this->getSupportedLanguages();
92 92
 
93
-        foreach($supportedLanguages as $supportedLanguage) {
93
+        foreach ($supportedLanguages as $supportedLanguage) {
94 94
             foreach ($files as $baseTranslationFilePath) {
95
-                $fileName            = $this->getFilenameFromFilePath( $baseTranslationFilePath );
96
-                $adapterFileContent = $this->getTranslationFile( $supportedLanguage, $fileName );
95
+                $fileName = $this->getFilenameFromFilePath($baseTranslationFilePath);
96
+                $adapterFileContent = $this->getTranslationFile($supportedLanguage, $fileName);
97 97
                 try {
98
-                    $adapterTranslationsArray = YamlParser::parse( $adapterFileContent );
99
-                } catch(ParseException $e) {
98
+                    $adapterTranslationsArray = YamlParser::parse($adapterFileContent);
99
+                } catch (ParseException $e) {
100 100
                     throw new YMLParseException($e, $fileName);
101 101
                 }
102 102
 
103
-                $phraseCollectionKey = $this->getPhraseCollectionKeyFromFilename( $baseTranslationFilePath );
103
+                $phraseCollectionKey = $this->getPhraseCollectionKeyFromFilename($baseTranslationFilePath);
104 104
 
105 105
                 if (is_array($adapterTranslationsArray) && count($adapterTranslationsArray) > 0) {
106 106
                     $this->ksortMultiDimensional($adapterTranslationsArray);
107
-                    $this->dumpToYaml( $adapterTranslationsArray, $phraseCollectionKey, $supportedLanguage );
107
+                    $this->dumpToYaml($adapterTranslationsArray, $phraseCollectionKey, $supportedLanguage);
108 108
                 } else {
109 109
                     // Ensure adapterTranslationsArray is an array.
110 110
                     $adapterTranslationsArray = [];
111 111
                 }
112 112
                 // This is only execute for base language.
113
-                if($supportedLanguage === $this->getBaseLanguage()) {
113
+                if ($supportedLanguage === $this->getBaseLanguage()) {
114 114
                     $existingTranslations = YamlParser::parse(file_get_contents($baseTranslationFilePath));
115 115
                     $mergedTranslations = array_replace_recursive($existingTranslations, $adapterTranslationsArray);
116 116
 
@@ -143,8 +143,8 @@  discard block
 block discarded – undo
143 143
         $languageParts = explode('-', $languageString);
144 144
         $countryCode = $languageParts[0];
145 145
         $languageTag = $countryCode;
146
-        if(count($languageParts) > 1) {
147
-            $languageTag .= '_'.$languageParts[1];
146
+        if (count($languageParts) > 1) {
147
+            $languageTag .= '_' . $languageParts[1];
148 148
         }
149 149
 
150 150
         return $languageTag;
@@ -179,10 +179,10 @@  discard block
 block discarded – undo
179 179
      */
180 180
     private function keepQuotesOnBooleanValue($yamlString)
181 181
     {
182
-        $yaml = preg_replace('/: (\byes\b)/i', ": '"."$1"."'", $yamlString);
183
-        $yaml = preg_replace('/: (\bno\b)/i', ": '"."$1"."'", $yaml);
184
-        $yaml = preg_replace('/: (\bon\b)/i', ": '"."$1"."'", $yaml);
185
-        $yaml = preg_replace('/: (\boff\b)/i', ": '"."$1"."'", $yaml);
182
+        $yaml = preg_replace('/: (\byes\b)/i', ": '" . "$1" . "'", $yamlString);
183
+        $yaml = preg_replace('/: (\bno\b)/i', ": '" . "$1" . "'", $yaml);
184
+        $yaml = preg_replace('/: (\bon\b)/i', ": '" . "$1" . "'", $yaml);
185
+        $yaml = preg_replace('/: (\boff\b)/i', ": '" . "$1" . "'", $yaml);
186 186
 
187 187
         return $yaml;
188 188
     }
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
     public function getPhrasesFromFilename($filename)
215 215
     {
216 216
         $yamlPhrases = YamlParser::parse(file_get_contents($filename));
217
-        if(!is_array($yamlPhrases)) {
217
+        if (!is_array($yamlPhrases)) {
218 218
             $yamlPhrases = [];
219 219
         }
220 220
         $phrases = $this->yamlArrayToDottedPhrasesArray($yamlPhrases);
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
     public function getFilenameFromFilePath($filePath)
278 278
     {
279 279
         $parts = explode('/', $filePath);
280
-        $fileName = $parts[count($parts)-1];
280
+        $fileName = $parts[count($parts) - 1];
281 281
 
282 282
         return trim($fileName);
283 283
     }
@@ -290,8 +290,8 @@  discard block
 block discarded – undo
290 290
     /**
291 291
      * @return Client
292 292
      */
293
-    public function getClient(){
294
-        if(!$this->client) {
293
+    public function getClient() {
294
+        if (!$this->client) {
295 295
             $this->client = $this->createClient();
296 296
         }
297 297
         return $this->client;
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
     /**
336 336
      * @param array $supportedLanguages
337 337
      */
338
-    public function setSupportedLanguages( $supportedLanguages )
338
+    public function setSupportedLanguages($supportedLanguages)
339 339
     {
340 340
         $this->supportedLanguages = $supportedLanguages;
341 341
     }
Please login to merge, or discard this patch.
src/Adapter/TranslationAdapter.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 
5 5
 abstract class TranslationAdapter
6 6
 {
7
-	/**
7
+    /**
8 8
      * After 6th level it will go to inline YAML.
9 9
      */
10 10
     const YAML_INLINE_AFTER = 6;
Please login to merge, or discard this patch.
src/Command/PushBaseTranslationsCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
                 null,
26 26
                 InputOption::VALUE_NONE,
27 27
                 'If set, it will not pull before push.'
28
-            );;
28
+            ); ;
29 29
     }
30 30
 
31 31
     /**
Please login to merge, or discard this patch.
src/Tests/Unit/Adapter/OneSkyAdapterTest.php 2 patches
Indentation   +45 added lines, -45 removed lines patch added patch discarded remove patch
@@ -100,9 +100,9 @@  discard block
 block discarded – undo
100 100
         $methodParams['file'] = $this->baseTranslationsDir . '/pages/movies.yml';
101 101
 
102 102
         $oneSkyMockClient->expects($this->at(1))
103
-                         ->method('__call')
104
-                         ->with($this->equalTo('files'), $this->equalTo(['upload', $methodParams]))
105
-                         ->willReturn(json_encode(["meta" => ["status" => 201]]));
103
+                            ->method('__call')
104
+                            ->with($this->equalTo('files'), $this->equalTo(['upload', $methodParams]))
105
+                            ->willReturn(json_encode(["meta" => ["status" => 201]]));
106 106
 
107 107
         $this->adapter->setClient($oneSkyMockClient);
108 108
         $this->adapter->pushBaseTranslations();
@@ -111,8 +111,8 @@  discard block
 block discarded – undo
111 111
     public function testGetTranslationFile()
112 112
     {
113 113
         $oneSkyMockClient = $this->getMockBuilder('Onesky\Api\Client')
114
-                                 ->disableOriginalConstructor()
115
-                                 ->getMock();
114
+                                    ->disableOriginalConstructor()
115
+                                    ->getMock();
116 116
 
117 117
         $methodParams = [
118 118
             'project_id' => 111,
@@ -121,9 +121,9 @@  discard block
 block discarded – undo
121 121
         ];
122 122
 
123 123
         $oneSkyMockClient->expects($this->at(0))
124
-                         ->method('__call')
125
-                         ->with($this->equalTo('translations'), $this->equalTo(['export', $methodParams]))
126
-                         ->willReturn('---
124
+                            ->method('__call')
125
+                            ->with($this->equalTo('translations'), $this->equalTo(['export', $methodParams]))
126
+                            ->willReturn('---
127 127
 page_title: "10 Best Movies"');
128 128
 
129 129
 
@@ -141,8 +141,8 @@  discard block
 block discarded – undo
141 141
 
142 142
     public function testDumpAllTranslationsIntoYmlFiles(){
143 143
         $oneSkyMockClient = $this->getMockBuilder('Onesky\Api\Client')
144
-                                 ->disableOriginalConstructor()
145
-                                 ->getMock();
144
+                                    ->disableOriginalConstructor()
145
+                                    ->getMock();
146 146
 
147 147
 
148 148
         $methodParams = [
@@ -152,9 +152,9 @@  discard block
 block discarded – undo
152 152
         ];
153 153
 
154 154
         $oneSkyMockClient->expects($this->at(0))
155
-                         ->method('__call')
156
-                         ->with($this->equalTo('translations'), $this->equalTo(['export', $methodParams]))
157
-                         ->willReturn('---
155
+                            ->method('__call')
156
+                            ->with($this->equalTo('translations'), $this->equalTo(['export', $methodParams]))
157
+                            ->willReturn('---
158 158
 book_1:
159 159
     title: Bunnies for Dummies
160 160
 
@@ -163,9 +163,9 @@  discard block
 block discarded – undo
163 163
 
164 164
         $methodParams['source_file_name'] = 'movies.yml';
165 165
         $oneSkyMockClient->expects($this->at(1))
166
-                         ->method('__call')
167
-                         ->with($this->equalTo('translations'), $this->equalTo(['export', $methodParams]))
168
-                         ->willReturn('---
166
+                            ->method('__call')
167
+                            ->with($this->equalTo('translations'), $this->equalTo(['export', $methodParams]))
168
+                            ->willReturn('---
169 169
 page_title: "10 Best Movies"');
170 170
 
171 171
         $this->adapter->setSupportedLanguages(['en_GB']);
@@ -176,8 +176,8 @@  discard block
 block discarded – undo
176 176
 
177 177
     public function testDumpAllTranslationsIntoYmlFilesWithoutDeletingExistingTranslations(){
178 178
         $oneSkyMockClient = $this->getMockBuilder('Onesky\Api\Client')
179
-                                 ->disableOriginalConstructor()
180
-                                 ->getMock();
179
+                                    ->disableOriginalConstructor()
180
+                                    ->getMock();
181 181
 
182 182
 
183 183
         $methodParams = [
@@ -187,9 +187,9 @@  discard block
 block discarded – undo
187 187
         ];
188 188
 
189 189
         $oneSkyMockClient->expects($this->at(0))
190
-                         ->method('__call')
191
-                         ->with($this->equalTo('translations'), $this->equalTo(['export', $methodParams]))
192
-                         ->willReturn('---
190
+                            ->method('__call')
191
+                            ->with($this->equalTo('translations'), $this->equalTo(['export', $methodParams]))
192
+                            ->willReturn('---
193 193
 book_2:
194 194
     title: Teddy Bear Stories Updated
195 195
 
@@ -233,8 +233,8 @@  discard block
 block discarded – undo
233 233
 
234 234
     public function testDumpAllTranslationsIntoYmlFilesWithMoreThenOneSupportedLanguage(){
235 235
         $oneSkyMockClient = $this->getMockBuilder('Onesky\Api\Client')
236
-                                 ->disableOriginalConstructor()
237
-                                 ->getMock();
236
+                                    ->disableOriginalConstructor()
237
+                                    ->getMock();
238 238
 
239 239
 
240 240
         $methodParams = [
@@ -244,9 +244,9 @@  discard block
 block discarded – undo
244 244
         ];
245 245
 
246 246
         $oneSkyMockClient->expects($this->at(0))
247
-                         ->method('__call')
248
-                         ->with($this->equalTo('translations'), $this->equalTo(['export', $methodParams]))
249
-                         ->willReturn('---
247
+                            ->method('__call')
248
+                            ->with($this->equalTo('translations'), $this->equalTo(['export', $methodParams]))
249
+                            ->willReturn('---
250 250
 book_1:
251 251
     title: Bunnies for Dummies
252 252
 
@@ -255,17 +255,17 @@  discard block
 block discarded – undo
255 255
 
256 256
         $methodParams['source_file_name'] = 'movies.yml';
257 257
         $oneSkyMockClient->expects($this->at(1))
258
-                         ->method('__call')
259
-                         ->with($this->equalTo('translations'), $this->equalTo(['export', $methodParams]))
260
-                         ->willReturn('---
258
+                            ->method('__call')
259
+                            ->with($this->equalTo('translations'), $this->equalTo(['export', $methodParams]))
260
+                            ->willReturn('---
261 261
 page_title: "10 Best Movies"');
262 262
 
263 263
         $methodParams['locale'] = 'pt_PT';
264 264
         $methodParams['source_file_name'] = 'books.yml';
265 265
         $oneSkyMockClient->expects($this->at(2))
266
-                         ->method('__call')
267
-                         ->with($this->equalTo('translations'), $this->equalTo(['export', $methodParams]))
268
-                         ->willReturn('---
266
+                            ->method('__call')
267
+                            ->with($this->equalTo('translations'), $this->equalTo(['export', $methodParams]))
268
+                            ->willReturn('---
269 269
 book_1:
270 270
     title: Coelhos para totos
271 271
 
@@ -274,9 +274,9 @@  discard block
 block discarded – undo
274 274
 
275 275
         $methodParams['source_file_name'] = 'movies.yml';
276 276
         $oneSkyMockClient->expects($this->at(3))
277
-                         ->method('__call')
278
-                         ->with($this->equalTo('translations'), $this->equalTo(['export', $methodParams]))
279
-                         ->willReturn('---
277
+                            ->method('__call')
278
+                            ->with($this->equalTo('translations'), $this->equalTo(['export', $methodParams]))
279
+                            ->willReturn('---
280 280
 page_title: "10 Melhores filmes"');
281 281
 
282 282
 
@@ -299,8 +299,8 @@  discard block
 block discarded – undo
299 299
      */
300 300
     public function testDumpAllTranslationsIntoYmlFilesInvalidYMLFile(){
301 301
         $oneSkyMockClient = $this->getMockBuilder('Onesky\Api\Client')
302
-                                 ->disableOriginalConstructor()
303
-                                 ->getMock();
302
+                                    ->disableOriginalConstructor()
303
+                                    ->getMock();
304 304
 
305 305
 
306 306
         $methodParams = [
@@ -310,9 +310,9 @@  discard block
 block discarded – undo
310 310
         ];
311 311
 
312 312
         $oneSkyMockClient->expects($this->at(0))
313
-                         ->method('__call')
314
-                         ->with($this->equalTo('translations'), $this->equalTo(['export', $methodParams]))
315
-                         ->willReturn('---
313
+                            ->method('__call')
314
+                            ->with($this->equalTo('translations'), $this->equalTo(['export', $methodParams]))
315
+                            ->willReturn('---
316 316
 
317 317
 ? "true"
318 318
   : "Yes"
@@ -330,8 +330,8 @@  discard block
 block discarded – undo
330 330
      */
331 331
     public function testDumpAllTranslationsIntoYmlFilesKeepQuotesOnBooleanValues(){
332 332
         $oneSkyMockClient = $this->getMockBuilder('Onesky\Api\Client')
333
-                                 ->disableOriginalConstructor()
334
-                                 ->getMock();
333
+                                    ->disableOriginalConstructor()
334
+                                    ->getMock();
335 335
 
336 336
 
337 337
         $methodParams = [
@@ -341,9 +341,9 @@  discard block
 block discarded – undo
341 341
         ];
342 342
 
343 343
         $oneSkyMockClient->expects($this->at(0))
344
-                         ->method('__call')
345
-                         ->with($this->equalTo('translations'), $this->equalTo(['export', $methodParams]))
346
-                         ->willReturn('---
344
+                            ->method('__call')
345
+                            ->with($this->equalTo('translations'), $this->equalTo(['export', $methodParams]))
346
+                            ->willReturn('---
347 347
 
348 348
 active: "Yes"
349 349
 inactive: "No"
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
         $this->adapter->setClient($oneSkyMockClient);
131 131
         $fileContent = $this->adapter->getTranslationFile('en_GB', 'movies.yml');
132 132
 
133
-        $this->assertContains('page_title: "10 Best Movies"',$fileContent);
133
+        $this->assertContains('page_title: "10 Best Movies"', $fileContent);
134 134
     }
135 135
 
136 136
 
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 
140 140
     }
141 141
 
142
-    public function testDumpAllTranslationsIntoYmlFiles(){
142
+    public function testDumpAllTranslationsIntoYmlFiles() {
143 143
         $oneSkyMockClient = $this->getMockBuilder('Onesky\Api\Client')
144 144
                                  ->disableOriginalConstructor()
145 145
                                  ->getMock();
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
     }
175 175
 
176 176
 
177
-    public function testDumpAllTranslationsIntoYmlFilesWithoutDeletingExistingTranslations(){
177
+    public function testDumpAllTranslationsIntoYmlFilesWithoutDeletingExistingTranslations() {
178 178
         $oneSkyMockClient = $this->getMockBuilder('Onesky\Api\Client')
179 179
                                  ->disableOriginalConstructor()
180 180
                                  ->getMock();
@@ -203,13 +203,13 @@  discard block
 block discarded – undo
203 203
 
204 204
         $this->restoreBaseTranslationFiles();
205 205
 
206
-        $existingTranslations = Yaml::parse(file_get_contents($this->baseTranslationsDir.'/books.yml'));
206
+        $existingTranslations = Yaml::parse(file_get_contents($this->baseTranslationsDir . '/books.yml'));
207 207
 
208 208
         $this->assertEquals($this->bookBaseTranslations, $existingTranslations);
209 209
 
210 210
         $this->adapter->dumpAllTranslationsToYamlFiles();
211 211
 
212
-        $updatedTranslations = Yaml::parse(file_get_contents($this->baseTranslationsDir.'/books.yml'));
212
+        $updatedTranslations = Yaml::parse(file_get_contents($this->baseTranslationsDir . '/books.yml'));
213 213
 
214 214
         $expectedTranslationsAfterUpdate = [
215 215
             'book_1' => [
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
     }
232 232
 
233 233
 
234
-    public function testDumpAllTranslationsIntoYmlFilesWithMoreThenOneSupportedLanguage(){
234
+    public function testDumpAllTranslationsIntoYmlFilesWithMoreThenOneSupportedLanguage() {
235 235
         $oneSkyMockClient = $this->getMockBuilder('Onesky\Api\Client')
236 236
                                  ->disableOriginalConstructor()
237 237
                                  ->getMock();
@@ -285,10 +285,10 @@  discard block
 block discarded – undo
285 285
         $this->adapter->dumpAllTranslationsToYamlFiles();
286 286
 
287 287
         // Ensure files were created.
288
-        $this->assertFileExists($this->baseTranslationsDir.'/../translations/books.en_GB.yml');
289
-        $this->assertFileExists($this->baseTranslationsDir.'/../translations/books.pt_PT.yml');
290
-        $this->assertFileExists($this->baseTranslationsDir.'/../translations/pages/movies.en_GB.yml');
291
-        $this->assertFileExists($this->baseTranslationsDir.'/../translations/pages/movies.pt_PT.yml');
288
+        $this->assertFileExists($this->baseTranslationsDir . '/../translations/books.en_GB.yml');
289
+        $this->assertFileExists($this->baseTranslationsDir . '/../translations/books.pt_PT.yml');
290
+        $this->assertFileExists($this->baseTranslationsDir . '/../translations/pages/movies.en_GB.yml');
291
+        $this->assertFileExists($this->baseTranslationsDir . '/../translations/pages/movies.pt_PT.yml');
292 292
     }
293 293
 
294 294
 
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
      *
298 298
      * @expectedException \Partnermarketing\TranslationBundle\Exception\YMLParseException
299 299
      */
300
-    public function testDumpAllTranslationsIntoYmlFilesInvalidYMLFile(){
300
+    public function testDumpAllTranslationsIntoYmlFilesInvalidYMLFile() {
301 301
         $oneSkyMockClient = $this->getMockBuilder('Onesky\Api\Client')
302 302
                                  ->disableOriginalConstructor()
303 303
                                  ->getMock();
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
     /**
329 329
      * This test is required because OneSky is using YAML 1.1 and values like ['Yes', 'No']
330 330
      */
331
-    public function testDumpAllTranslationsIntoYmlFilesKeepQuotesOnBooleanValues(){
331
+    public function testDumpAllTranslationsIntoYmlFilesKeepQuotesOnBooleanValues() {
332 332
         $oneSkyMockClient = $this->getMockBuilder('Onesky\Api\Client')
333 333
                                  ->disableOriginalConstructor()
334 334
                                  ->getMock();
Please login to merge, or discard this patch.
src/Tests/Unit/Command/PullTranslationsCommandTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,8 +47,8 @@
 block discarded – undo
47 47
     public function testPullAllSupportedLanguages()
48 48
     {
49 49
         $this->fakeAdapter->expects($this->once())
50
-                          ->method('dumpAllTranslationsToYamlFiles')
51
-                          ->with();
50
+                            ->method('dumpAllTranslationsToYamlFiles')
51
+                            ->with();
52 52
 
53 53
         $commandTester = new CommandTester($this->command);
54 54
         $commandTester->execute([
Please login to merge, or discard this patch.
Tests/Unit/DependencyInjection/PartnermarketingTranslationExtensionTest.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
 
41 41
         );
42 42
 
43
-        $this->extension->load( array( $configs ), $container = $this->getContainer() );
43
+        $this->extension->load(array($configs), $container = $this->getContainer());
44 44
 
45 45
         $this->assertTrue($container->hasParameter($this->root . ".supported_languages"));
46 46
         $this->assertTrue($container->hasParameter($this->root . ".one_sky.project_id"));
Please login to merge, or discard this patch.