src/MalScraper/Model/User/UserModel.php
private function getHistory($right_area, $type)
    {
        $history = [];
        $a_history_area = $right_area->find('div[class="updates '.$type.'"]', 0);
        foreach ($a_history_area->find('.statistics-updates') as $each_history) {
            $temp_history = [];
            $history_data_area = $each_history->find('.data', 0);

            $temp_history['image'] = $this->getHistoryImage($each_history);
            $temp_history['id'] = $this->getHistoryId($history_data_area);
            $temp_history['title'] = $this->getHistoryTitle($history_data_area);
            $temp_history['date'] = $this->getHistoryDate($history_data_area);
            $progress = $this->getHistoryProgress($history_data_area);
            $temp_history = array_merge($temp_history, $progress);

            $history[] = $temp_history;
        }

        return $history;
    }
private function getHistory($right_area, $type)
    {
        $history = [];
        $a_history_area = $right_area->find('div[class="updates '.$type.'"]', 0);
        foreach ($a_history_area->find('.statistics-updates') as $each_history) {
            $temp_history = [];
            $history_data_area = $each_history->find('.data', 0);

            $temp_history['image'] = $this->getHistoryImage($each_history);
            $temp_history['id'] = $this->getHistoryId($history_data_area);
            $temp_history['title'] = $this->getHistoryTitle($history_data_area);
            $temp_history['date'] = $this->getHistoryDate($history_data_area);
            $progress = $this->getHistoryProgress($history_data_area);
            $temp_history = array_merge($temp_history, $progress);

            $history[] = $temp_history;
        }

        return $history;
    }
private function getHistory ( $ right_area , $ type ) { $ history = [ ] ; $ a_history_area = $ right_area -> find ( 'div[class="updates ' . $ type . '"]' , 0 ) ; foreach ( $ a_history_area -> find ( '.statistics-updates' ) as $ each_history ) { $ temp_history = [ ] ; $ history_data_area = $ each_history -> find ( '.data' , 0 ) ; $ temp_history [ 'image' ] = $ this -> getHistoryImage ( $ each_history ) ; $ temp_history [ 'id' ] = $ this -> getHistoryId ( $ history_data_area ) ; $ temp_history [ 'title' ] = $ this -> getHistoryTitle ( $ history_data_area ) ; $ temp_history [ 'date' ] = $ this -> getHistoryDate ( $ history_data_area ) ; $ progress = $ this -> getHistoryProgress ( $ history_data_area ) ; $ temp_history = array_merge ( $ temp_history , $ progress ) ; $ history [ ] = $ temp_history ; } return $ history ; }
Get history.

@param \simplehtmldom_1_5\simple_html_dom $right_area
@param string                             $type

@return array
Get history .