@@ -22,7 +22,7 @@ |
||
| 22 | 22 | $configuration = new Configuration(); |
| 23 | 23 | $config = $this->processConfiguration($configuration, $configs); |
| 24 | 24 | |
| 25 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 25 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 26 | 26 | $loader->load('services.yml'); |
| 27 | 27 | |
| 28 | 28 | $container->setParameter('decline_transformat', $config); |
@@ -20,8 +20,8 @@ |
||
| 20 | 20 | $fs = new Filesystem(); |
| 21 | 21 | $fs->remove( |
| 22 | 22 | [ |
| 23 | - __DIR__.'/App/cache', |
|
| 24 | - __DIR__.'/App/logs', |
|
| 23 | + __DIR__ . '/App/cache', |
|
| 24 | + __DIR__ . '/App/logs', |
|
| 25 | 25 | ] |
| 26 | 26 | ); |
| 27 | 27 | } |
@@ -29,6 +29,6 @@ |
||
| 29 | 29 | |
| 30 | 30 | public function registerContainerConfiguration(LoaderInterface $loader) |
| 31 | 31 | { |
| 32 | - $loader->load(__DIR__.'/config/config.yml'); |
|
| 32 | + $loader->load(__DIR__ . '/config/config.yml'); |
|
| 33 | 33 | } |
| 34 | 34 | } |
| 35 | 35 | \ No newline at end of file |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | class FormatServiceTest extends ContainerTestCase |
| 12 | 12 | { |
| 13 | 13 | |
| 14 | - const RESOURCES_DIR = __DIR__.'/../App/Resources'; |
|
| 14 | + const RESOURCES_DIR = __DIR__ . '/../App/Resources'; |
|
| 15 | 15 | |
| 16 | 16 | const TRANSLATION_UNFORMATTED = 'translations-unformatted/unformatted.de.xlf'; |
| 17 | 17 | const TRANSLATION_FORMATTED = 'translations-unformatted/formatted.de.xlf'; |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | { |
| 47 | 47 | $errors = []; |
| 48 | 48 | |
| 49 | - switch($this->getValidationMode()) { |
|
| 49 | + switch ($this->getValidationMode()) { |
|
| 50 | 50 | case static::MODE_STRICT: |
| 51 | 51 | $schema = 'xliff-core-1.2-strict.xsd'; |
| 52 | 52 | break; |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | $this->formatSingleFile($file); |
| 78 | 78 | $msg = sprintf('<info>Success:</info> %s', $file->getFilename()); |
| 79 | 79 | } catch (Exception $e) { |
| 80 | - $errors[] = $file->getFilename().': '.$e->getMessage(); |
|
| 80 | + $errors[] = $file->getFilename() . ': ' . $e->getMessage(); |
|
| 81 | 81 | $msg = sprintf('<fg=red>Failure:</fg=red> %s', $file->getFilename()); |
| 82 | 82 | } |
| 83 | 83 | |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | } |
| 107 | 107 | |
| 108 | 108 | try { |
| 109 | - $file = new File($this->getDirectory().'/'.$fileToCheck); |
|
| 109 | + $file = new File($this->getDirectory() . '/' . $fileToCheck); |
|
| 110 | 110 | } catch (FileNotFoundException $e) { |
| 111 | 111 | continue; |
| 112 | 112 | } |