@@ -72,7 +72,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
72
72
$ output = new SymfonyStyle ($ input , $ output );
73
73
74
74
// 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 ' )) {
76
76
$ output ->error ('You must choose one of --force or --dump-messages ' );
77
77
78
78
return 1 ;
@@ -151,7 +151,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
151
151
}
152
152
153
153
// show compiled list of messages
154
- if ($ input ->getOption ('dump-messages ' ) === true ) {
154
+ if (true === $ input ->getOption ('dump-messages ' )) {
155
155
$ output ->newLine ();
156
156
foreach ($ operation ->getDomains () as $ domain ) {
157
157
$ output ->section (sprintf ('Displaying messages for domain <info>%s</info>: ' , $ domain ));
@@ -168,17 +168,17 @@ protected function execute(InputInterface $input, OutputInterface $output)
168
168
));
169
169
}
170
170
171
- if ($ input ->getOption ('output-format ' ) == ' xlf ' ) {
171
+ if (' xlf ' == $ input ->getOption ('output-format ' )) {
172
172
$ output ->writeln ('Xliff output version is <info>1.2</info> ' );
173
173
}
174
174
}
175
175
176
- if ($ input ->getOption ('no-backup ' ) === true ) {
176
+ if (true === $ input ->getOption ('no-backup ' )) {
177
177
$ writer ->disableBackup ();
178
178
}
179
179
180
180
// save the files
181
- if ($ input ->getOption ('force ' ) === true ) {
181
+ if (true === $ input ->getOption ('force ' )) {
182
182
$ output ->text ('Writing files ' );
183
183
184
184
$ bundleTransPath = false ;
0 commit comments