private function processTitleStopWords($title) { foreach (TitleStopWords::findAll(["source_id" => $this->source->id]) as $csw) { if ($pos = strpos($title, $csw->word)) { $title = substr($title, 0, $pos); } } return $title; }