protected static function _addMeta($meta, &$perf) { foreach ($meta as $key => $value) { if (!isset($perf[$key])) { $perf[$key] = []; } $arr = $perf[$key]; ArrayMethods::add($value, $arr); $perf[$key] = ArrayMethods::topValues($arr, count($arr)); } }
public function fetch() { $allWordsArray = $this->_fetch(); $wordCount = Helper::countValues($allWordsArray); return ArrayMethods::topValues($wordCount, count($wordCount)); }