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