@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | |
11 | 11 | final class EmojiPrinter extends ResultPrinter |
12 | 12 | { |
13 | - const CONFIG = __DIR__ . '/../config/'; |
|
13 | + const CONFIG = __DIR__.'/../config/'; |
|
14 | 14 | const EMOJIFILE = '.emojifile'; |
15 | 15 | const EMOJISET = 'phpumoji'; |
16 | 16 | const SPACER = ' '; |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | |
36 | 36 | protected function writeProgress($progress) |
37 | 37 | { |
38 | - return parent::writeProgress($this->emojify($progress) . self::SPACER); |
|
38 | + return parent::writeProgress($this->emojify($progress).self::SPACER); |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | protected function writeProgressWithColor($color, $progress) |
@@ -53,8 +53,8 @@ discard block |
||
53 | 53 | private function emojifile(string $projectroot): array |
54 | 54 | { |
55 | 55 | return array_merge( |
56 | - $this->parse(self::CONFIG . self::EMOJIFILE), |
|
57 | - $this->parse($projectroot . self::EMOJIFILE) |
|
56 | + $this->parse(self::CONFIG.self::EMOJIFILE), |
|
57 | + $this->parse($projectroot.self::EMOJIFILE) |
|
58 | 58 | ); |
59 | 59 | } |
60 | 60 | |
@@ -80,12 +80,12 @@ discard block |
||
80 | 80 | |
81 | 81 | private function emojify(string $result): string |
82 | 82 | { |
83 | - return LitEmoji::encodeUnicode(":{$this->shortcode($result)}:") ; |
|
83 | + return LitEmoji::encodeUnicode(":{$this->shortcode($result)}:"); |
|
84 | 84 | } |
85 | 85 | |
86 | 86 | private function shortcode(string $character): string |
87 | 87 | { |
88 | - return array_values(array_filter($this->emojis, function ($emojikey) use ($character) { |
|
88 | + return array_values(array_filter($this->emojis, function($emojikey) use ($character) { |
|
89 | 89 | return strrpos(strtoupper($emojikey), $character) === 0; |
90 | 90 | }, ARRAY_FILTER_USE_KEY))[0] ?? $this->emojis['pass']; |
91 | 91 | } |