|
@@ -1,4 +1,4 @@ discard block |
|
|
block discarded – undo |
|
1
|
|
-<?php declare(strict_types=1); |
|
|
1
|
+<?php declare(strict_types = 1); |
|
2
|
2
|
|
|
3
|
3
|
namespace Coderabbi\Phpumoji; |
|
4
|
4
|
|
|
@@ -13,7 +13,7 @@ discard block |
|
|
block discarded – undo |
|
13
|
13
|
public function startTestSuite(TestSuite $suite) |
|
14
|
14
|
{ |
|
15
|
15
|
$config = Xml::loadFile($GLOBALS['__PHPUNIT_CONFIGURATION_FILE'], false, true, true)->documentElement; |
|
16
|
|
- $emojifile = $config->hasAttribute('emojifile') ? $config->getAttribute('emojifile') : (__DIR__ . '/.emojifile'); |
|
|
16
|
+ $emojifile = $config->hasAttribute('emojifile') ? $config->getAttribute('emojifile') : (__DIR__.'/.emojifile'); |
|
17
|
17
|
$emojiset = $config->hasAttribute('emojiset') ? $config->getAttribute('emojiset') : 'phpumoji'; |
|
18
|
18
|
|
|
19
|
19
|
$this->emojis = (require($emojifile))[$emojiset]; |
|
@@ -39,8 +39,8 @@ discard block |
|
|
block discarded – undo |
|
39
|
39
|
|
|
40
|
40
|
private function emojify(string $progress) :string |
|
41
|
41
|
{ |
|
42
|
|
- return (array_values(array_filter($this->emojis, function ($key) use ($progress) { |
|
|
42
|
+ return (array_values(array_filter($this->emojis, function($key) use ($progress) { |
|
43
|
43
|
return strrpos(strtoupper($key), $progress) === 0; |
|
44
|
|
- }, ARRAY_FILTER_USE_KEY))[0] ?? $this->emojis['pass']) . ' '; |
|
|
44
|
+ }, ARRAY_FILTER_USE_KEY))[0] ?? $this->emojis['pass']).' '; |
|
45
|
45
|
} |
|
46
|
46
|
} |
Please login to merge, or discard this patch.