Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit efa87da

Browse files
committed
Tweak use of UTF-8 characters
1 parent 9167499 commit efa87da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Bundle/FrameworkBundle/Command/AssetsInstallCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,13 @@ protected function execute(InputInterface $input, OutputInterface $output)
142142
}
143143

144144
if ($method === $expectedMethod) {
145-
$rows[] = array('<fg=green;options=bold></>', $message, $method);
145+
$rows[] = array(sprintf('<fg=green;options=bold>%s</>', '\\' === DIRECTORY_SEPARATOR ? 'OK': "\xE2\x9C\x94" /* HEAVY CHECK MARK (U+2714) */ ), $message, $method);
146146
} else {
147-
$rows[] = array('<fg=yellow;options=bold>!</>', $message, $method);
147+
$rows[] = array(sprintf('<fg=yellow;options=bold>%s</>', '\\' === DIRECTORY_SEPARATOR ? 'WARNING': '!'), $message, $method);
148148
}
149149
} catch (Exception $e) {
150150
$exitCode = 1;
151-
$rows[] = array('<fg=red;options=bold></>', $message, $e->getMessage());
151+
$rows[] = array(sprintf('<fg=red;options=bold>%s</>', '\\' === DIRECTORY_SEPARATOR ? 'ERROR' : "\xE2\x9C\x98" /* HEAVY BALLOT X (U+2718) */), $message, $e->getMessage());
152152
}
153153
}
154154

0 commit comments

Comments
 (0)