@@ 307-322 (lines=16) @@ | ||
304 | /* |
|
305 | * Each found php file is processed |
|
306 | */ |
|
307 | foreach ($files as $file) { |
|
308 | $data = file_get_contents($file); |
|
309 | $result = $useSorter->sort($data); |
|
310 | ||
311 | if ($result === false || $data === $result) { |
|
312 | continue; |
|
313 | } |
|
314 | ||
315 | if ($verbose >= OutputInterface::VERBOSITY_NORMAL) { |
|
316 | $output->writeln('# ' . $file); |
|
317 | } |
|
318 | ||
319 | if (!$dryRun) { |
|
320 | file_put_contents($file, $result); |
|
321 | } |
|
322 | } |
|
323 | ||
324 | return $this; |
|
325 | } |
@@ 150-165 (lines=16) @@ | ||
147 | /* |
|
148 | * Each found php file is processed |
|
149 | */ |
|
150 | foreach ($files as $file) { |
|
151 | $data = $file->getContents(); |
|
152 | $result = $headerFixer->fix($data); |
|
153 | ||
154 | if ($result === false || $data === $result) { |
|
155 | continue; |
|
156 | } |
|
157 | ||
158 | if ($verbose >= OutputInterface::VERBOSITY_NORMAL) { |
|
159 | $output->writeln('# ' . $file); |
|
160 | } |
|
161 | ||
162 | if (!$dryRun) { |
|
163 | file_put_contents($file->getRealPath(), $result); |
|
164 | } |
|
165 | } |
|
166 | } |
|
167 | } |
|
168 |
@@ 151-166 (lines=16) @@ | ||
148 | /* |
|
149 | * Each found php file is processed |
|
150 | */ |
|
151 | foreach ($files as $file) { |
|
152 | $data = $file->getContents(); |
|
153 | $result = $strictFixer->fix($data); |
|
154 | ||
155 | if ($result === false || $data === $result) { |
|
156 | continue; |
|
157 | } |
|
158 | ||
159 | if ($verbose >= OutputInterface::VERBOSITY_NORMAL) { |
|
160 | $output->writeln('# ' . $file); |
|
161 | } |
|
162 | ||
163 | if (!$dryRun) { |
|
164 | file_put_contents($file->getRealPath(), $result); |
|
165 | } |
|
166 | } |
|
167 | } |
|
168 | } |
|
169 |