Completed
Pull Request — master (#1)
by Pascal
16:30 queued 12:21
created
Command/TranslationConverterCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
         $dumper = $this->getDumper($outputFormat);
80 80
         $this->getTranslationWriter()->addDumper($outputFormat, $dumper);
81 81
 
82
-        $files = $this->finder->files()->name('/[a-z]+\.[a-z]{2}\.'.$inputFormat.'/')->in($path);
82
+        $files = $this->finder->files()->name('/[a-z]+\.[a-z]{2}\.' . $inputFormat . '/')->in($path);
83 83
 
84 84
         foreach ($files as $file) {
85 85
             list($domain, $language) = explode('.', $file->getFilename());
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
@@ -38,6 +38,6 @@
 block discarded – undo
38 38
      */
39 39
     public function registerContainerConfiguration(LoaderInterface $loader)
40 40
     {
41
-        $loader->load(__DIR__.'/config.yml');
41
+        $loader->load(__DIR__ . '/config.yml');
42 42
     }
43 43
 }
Please login to merge, or discard this patch.
Tests/Command/TranslationCommandTest.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -19,13 +19,13 @@  discard block
 block discarded – undo
19 19
 
20 20
     protected function setUp()
21 21
     {
22
-        $this->exportPath = __DIR__.'/../../export';
23
-        $this->importPath =  __DIR__.'/../fixtures';
22
+        $this->exportPath = __DIR__ . '/../../export';
23
+        $this->importPath = __DIR__ . '/../fixtures';
24 24
 
25 25
         static::$kernel = static::createKernel();
26 26
         static::$kernel->boot();
27 27
 
28
-        $this->command     = new TranslationConverterCommand(
28
+        $this->command = new TranslationConverterCommand(
29 29
             static::$kernel->getContainer()->get('itkg_translation.finder'),
30 30
             static::$kernel->getContainer()->get('filesystem')
31 31
         );
@@ -40,12 +40,12 @@  discard block
 block discarded – undo
40 40
             'command' => 'itkg_translation:translation:converter',
41 41
             '--input' => 'yml',
42 42
             '--output' => 'csv',
43
-            '--path' => $this->importPath.'/data',
43
+            '--path' => $this->importPath . '/data',
44 44
             '--output-path' => $this->exportPath
45 45
         ));
46 46
 
47
-        $this->assertEquals(file_get_contents($this->exportPath.'/domain.en.csv'), file_get_contents($this->importPath.'/result/domain.en.csv'));
48
-        $this->assertEquals(file_get_contents($this->exportPath.'/messages.fr.csv'), file_get_contents($this->importPath.'/result/messages.fr.csv'));
47
+        $this->assertEquals(file_get_contents($this->exportPath . '/domain.en.csv'), file_get_contents($this->importPath . '/result/domain.en.csv'));
48
+        $this->assertEquals(file_get_contents($this->exportPath . '/messages.fr.csv'), file_get_contents($this->importPath . '/result/messages.fr.csv'));
49 49
     }
50 50
 
51 51
     public function testImport()
@@ -54,11 +54,11 @@  discard block
 block discarded – undo
54 54
             'command' => 'itkg_translation:translation:converter',
55 55
             '--input' => 'csv',
56 56
             '--output' => 'yml',
57
-            '--path' => $this->importPath.'/data',
57
+            '--path' => $this->importPath . '/data',
58 58
             '--output-path' => $this->exportPath
59 59
         ));
60 60
 
61
-        $this->assertEquals(file_get_contents($this->exportPath.'/domain.en.yml'), file_get_contents($this->importPath.'/result/domain.en.yml'));
62
-        $this->assertEquals(file_get_contents($this->exportPath.'/messages.fr.yml'), file_get_contents($this->importPath.'/result/messages.fr.yml'));
61
+        $this->assertEquals(file_get_contents($this->exportPath . '/domain.en.yml'), file_get_contents($this->importPath . '/result/domain.en.yml'));
62
+        $this->assertEquals(file_get_contents($this->exportPath . '/messages.fr.yml'), file_get_contents($this->importPath . '/result/messages.fr.yml'));
63 63
     }
64 64
 }
Please login to merge, or discard this patch.