Esempio n. 1
0
 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));
     }
 }
Esempio n. 2
0
 public function fetch()
 {
     $allWordsArray = $this->_fetch();
     $wordCount = Helper::countValues($allWordsArray);
     return ArrayMethods::topValues($wordCount, count($wordCount));
 }