Passed
Branch master (a4c265)
by Anton
02:03
created
src/Command/Translator/ExportCommand.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      */
40 40
     public function perform(TranslatorConfig $config, CatalogueManager $manager)
41 41
     {
42
-        if (!$config->hasDumper($this->option('dumper'))) {
42
+        if (!$config->hasDumper($this->option('dumper'))){
43 43
             $this->writeln("<fg=red>Undefined dumper '{$this->option('dumper')}'.</fg=red>");
44 44
 
45 45
             return;
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
             $manager->get($this->argument('locale'))
52 52
         );
53 53
 
54
-        if ($this->isVerbose() && !empty($mc->getDomains())) {
54
+        if ($this->isVerbose() && !empty($mc->getDomains())){
55 55
             $this->sprintf("<info>Exporting domain(s):</info> %s\n",
56 56
                 join(',', $mc->getDomains())
57 57
             );
@@ -65,8 +65,8 @@  discard block
 block discarded – undo
65 65
             'xliff_version'  => '2.0' // forcing default version for xliff dumper only
66 66
         ]);
67 67
 
68
-        $this->writeln("Export successfully completed using <info>" . get_class($dumper) . "</info>");
69
-        $this->writeln("Output: <comment>" . realpath($this->argument('path')) . "</comment>");
68
+        $this->writeln("Export successfully completed using <info>".get_class($dumper)."</info>");
69
+        $this->writeln("Output: <comment>".realpath($this->argument('path'))."</comment>");
70 70
     }
71 71
 
72 72
     /**
@@ -85,10 +85,10 @@  discard block
 block discarded – undo
85 85
             $catalogue->getData()
86 86
         );
87 87
 
88
-        if ($this->option('fallback')) {
89
-            foreach ($manager->get($config->getFallbackLocale())->getData() as $domain => $messages) {
90
-                foreach ($messages as $id => $message) {
91
-                    if (!$messageCatalogue->defines($id, $domain)) {
88
+        if ($this->option('fallback')){
89
+            foreach ($manager->get($config->getFallbackLocale())->getData() as $domain => $messages){
90
+                foreach ($messages as $id => $message){
91
+                    if (!$messageCatalogue->defines($id, $domain)){
92 92
                         $messageCatalogue->set($id, $message, $domain);
93 93
                     }
94 94
                 }
Please login to merge, or discard this patch.
src/Bootloader/CommandBootloader.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -70,31 +70,31 @@  discard block
 block discarded – undo
70 70
      */
71 71
     private function configureExtensions(ConsoleBootloader $console, Container $container): void
72 72
     {
73
-        if ($container->has(DatabaseProviderInterface::class)) {
73
+        if ($container->has(DatabaseProviderInterface::class)){
74 74
             $this->configureDatabase($console);
75 75
         }
76 76
 
77
-        if ($container->has(ORMInterface::class)) {
77
+        if ($container->has(ORMInterface::class)){
78 78
             $this->configureCycle($console, $container);
79 79
         }
80 80
 
81
-        if ($container->has(TranslatorInterface::class)) {
81
+        if ($container->has(TranslatorInterface::class)){
82 82
             $this->configureTranslator($console);
83 83
         }
84 84
 
85
-        if ($container->has(ViewsInterface::class)) {
85
+        if ($container->has(ViewsInterface::class)){
86 86
             $this->configureViews($console);
87 87
         }
88 88
 
89
-        if ($container->has(Migrator::class)) {
89
+        if ($container->has(Migrator::class)){
90 90
             $this->configureMigrations($console);
91 91
         }
92 92
 
93
-        if ($container->has(InvokerInterface::class)) {
93
+        if ($container->has(InvokerInterface::class)){
94 94
             $this->configureGRPC($console);
95 95
         }
96 96
 
97
-        if ($container->has(EncryptionInterface::class)) {
97
+        if ($container->has(EncryptionInterface::class)){
98 98
             $this->configureEncrypter($console);
99 99
         }
100 100
     }
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 
124 124
         $console->addCommand(Cycle\SyncCommand::class);
125 125
 
126
-        if ($container->has(Migrator::class)) {
126
+        if ($container->has(Migrator::class)){
127 127
             $console->addCommand(Cycle\MigrateCommand::class);
128 128
         }
129 129
     }
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
         $console->addCommand(Translator\ResetCommand::class);
139 139
 
140 140
         $console->addConfigureSequence(
141
-            function (FilesInterface $files, TranslatorConfig $config, OutputInterface $output) {
141
+            function (FilesInterface $files, TranslatorConfig $config, OutputInterface $output){
142 142
                 $files->ensureDirectory($config->getLocaleDirectory($config->getDefaultLocale()));
143 143
                 $output->writeln("<info>The default locale directory has been ensured.</info>");
144 144
             },
Please login to merge, or discard this patch.