PHP CS fix

This commit is contained in:
Nicolas Le Goff
2014-05-30 15:22:00 +02:00
parent 8dd6512cf8
commit e5b8817c46
99 changed files with 113 additions and 166 deletions

View File

@@ -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;
}