| @@ 163-170 (lines=8) @@ | ||
| 160 | * |
|
| 161 | * @return mixed |
|
| 162 | */ |
|
| 163 | protected function wordToEmojiReplace($line, $replace, $delimiter) |
|
| 164 | { |
|
| 165 | foreach ($replace as $key => $value) { |
|
| 166 | $line = str_replace($delimiter.$key.$delimiter, $value, $line); |
|
| 167 | } |
|
| 168 | ||
| 169 | return $line; |
|
| 170 | } |
|
| 171 | ||
| 172 | /** |
|
| 173 | * Finds emojis and replaces them with text enclosed by the delimiter |
|
| @@ 181-188 (lines=8) @@ | ||
| 178 | * |
|
| 179 | * @return mixed |
|
| 180 | */ |
|
| 181 | protected function emojiToWordReplace($line, $replace, $delimiter) |
|
| 182 | { |
|
| 183 | foreach ($replace as $key => $value) { |
|
| 184 | $line = str_replace($key, $delimiter.$value.$delimiter, $line); |
|
| 185 | } |
|
| 186 | ||
| 187 | return $line; |
|
| 188 | } |
|
| 189 | ||
| 190 | /** |
|
| 191 | * Get Emoji Map Array. |
|