@@ -72,7 +72,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
7272 $ output = new SymfonyStyle ($ input , $ output );
7373
7474 // check presence of force or dump-message
75- if ($ input ->getOption ('force ' ) !== true && $ input ->getOption ('dump-messages ' ) !== true ) {
75+ if (true !== $ input ->getOption ('force ' ) && true !== $ input ->getOption ('dump-messages ' )) {
7676 $ output ->error ('You must choose one of --force or --dump-messages ' );
7777
7878 return 1 ;
@@ -151,7 +151,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
151151 }
152152
153153 // show compiled list of messages
154- if ($ input ->getOption ('dump-messages ' ) === true ) {
154+ if (true === $ input ->getOption ('dump-messages ' )) {
155155 $ output ->newLine ();
156156 foreach ($ operation ->getDomains () as $ domain ) {
157157 $ output ->section (sprintf ('Displaying messages for domain <info>%s</info>: ' , $ domain ));
@@ -168,17 +168,17 @@ protected function execute(InputInterface $input, OutputInterface $output)
168168 ));
169169 }
170170
171- if ($ input ->getOption ('output-format ' ) == ' xlf ' ) {
171+ if (' xlf ' == $ input ->getOption ('output-format ' )) {
172172 $ output ->writeln ('Xliff output version is <info>1.2</info> ' );
173173 }
174174 }
175175
176- if ($ input ->getOption ('no-backup ' ) === true ) {
176+ if (true === $ input ->getOption ('no-backup ' )) {
177177 $ writer ->disableBackup ();
178178 }
179179
180180 // save the files
181- if ($ input ->getOption ('force ' ) === true ) {
181+ if (true === $ input ->getOption ('force ' )) {
182182 $ output ->text ('Writing files ' );
183183
184184 $ bundleTransPath = false ;
0 commit comments