private function setSuggestionReport($matches) { if (count($matches) > 0) { $suggestions_json_array = json_encode($matches); $match = $matches[0]; $suggestion = $match['translation']; $suggestion_match = $match['match']; $suggestion_source = $match['created_by']; $ret = CatUtils::addTranslationSuggestion($this->id_segment, $this->id_job, $suggestions_json_array, $suggestion, $suggestion_match, $suggestion_source); return $ret; } return 0; }