Test Setup Failed
Push — master ( 0137de...2fa83c )
by Maruf
02:32
created
src/Emoticon.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      */
38 38
     public function emojify(string $text): string
39 39
     {
40
-        return preg_replace_callback('/:([a-zA-Z0-9_\-\+]+):/', function ($match) {
40
+        return preg_replace_callback('/:([a-zA-Z0-9_\-\+]+):/', function($match) {
41 41
             return $this->get($match[1]);
42 42
         }, $text);
43 43
     }
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      */
52 52
     public function search(string $emoji): array
53 53
     {
54
-        return array_filter($this->list, function ($item) use ($emoji) {
54
+        return array_filter($this->list, function($item) use ($emoji) {
55 55
             return strpos($item, $emoji) !== false;
56 56
         }, ARRAY_FILTER_USE_KEY);
57 57
     }
Please login to merge, or discard this patch.