Skip to content

Commit 3f72c61

Browse files
authored
Removed redundant processing
1 parent b409972 commit 3f72c61

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/Console/Command/CompareSourceCommand.php

-5
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,6 @@ protected function execute(InputInterface $input, OutputInterface $cliOutput)
151151
'<td><button class="btn-danger collapsible">Details</button><div class="content"><ul>'
152152
);
153153
foreach ($changedFiles as $file) {
154-
if (substr($file, 0, strlen($sourceBeforeDir)) == $sourceBeforeDir) {
155-
$file = substr($file, strlen($sourceBeforeDir));
156-
} elseif (substr($file, 0, strlen($sourceAfterDir)) == $sourceAfterDir) {
157-
$file = substr($file, strlen($sourceAfterDir));
158-
}
159154
$logOutputStream->writeln('<li>' . $file . '</li>');
160155
}
161156
$logOutputStream->writeln('</ul></div></td></tr>');

0 commit comments

Comments
 (0)