mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 14:33:14 +00:00
remove unused methods in unicode.
This commit is contained in:
@@ -423,19 +423,17 @@ class caption_Field_Value implements cache_cacheableInterface
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $word
|
||||
* @return array
|
||||
* @return string[]
|
||||
*/
|
||||
protected function splitTermAndContext($word)
|
||||
{
|
||||
$term = trim($word);
|
||||
$context = "";
|
||||
if (($po = strpos($term, "(")) !== false) {
|
||||
if (($pc = strpos($term, ")", $po)) !== false) {
|
||||
$context = trim(substr($term, $po + 1, $pc - $po - 1));
|
||||
$term = trim(substr($term, 0, $po));
|
||||
}
|
||||
$context = '';
|
||||
|
||||
if (($po = strpos($term, '(')) !== false && ($pc = strpos($term, ')', $po)) !== false) {
|
||||
$context = trim(substr($term, $po + 1, $pc - $po - 1));
|
||||
$term = trim(substr($term, 0, $po));
|
||||
}
|
||||
|
||||
return [$term, $context];
|
||||
|
Reference in New Issue
Block a user