Passed
Push — master ( 2de46c...c8b896 )
by Maruf
06:33 queued 03:18
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
             $emoji = $this->get($match[1]);
42 42
 
43 43
             return false !== $emoji ? $emoji : $match[0];
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      */
54 54
     public function search(string $emoji): array
55 55
     {
56
-        return array_filter($this->list, function ($item) use ($emoji) {
56
+        return array_filter($this->list, function($item) use ($emoji) {
57 57
             return strpos($item, $emoji) !== false;
58 58
         }, ARRAY_FILTER_USE_KEY);
59 59
     }
Please login to merge, or discard this patch.