mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
PHP CS fix
This commit is contained in:
@@ -397,14 +397,13 @@ class caption_Field_Value implements cache_cacheableInterface
|
||||
$note += ($node->getAttribute("w") == $term_noacc) ? 2 : 0;
|
||||
if($context_noacc != "")
|
||||
$note += ($node->getAttribute("k") == $context_noacc) ? 1 : 0;
|
||||
if($note > $bestnote)
|
||||
{
|
||||
if ($note > $bestnote) {
|
||||
$bestnote = $note;
|
||||
$bestnode = $node;
|
||||
}
|
||||
}
|
||||
|
||||
if($bestnode) {
|
||||
if ($bestnode) {
|
||||
list($term, $context) = $this->splitTermAndContext(str_replace(array("[[em]]", "[[/em]]"), array("", ""), $value));
|
||||
// a value has been found in thesaurus, update value & set the query to bounce to the value
|
||||
$this->value = $bestnode->getAttribute('v');
|
||||
@@ -414,7 +413,6 @@ class caption_Field_Value implements cache_cacheableInterface
|
||||
$this->isThesaurusValue = false;
|
||||
}
|
||||
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user