src/MalScraper/Model/User/UserModel.php
private function getStatStatus($a_stat_area, $type)
    {
        $temp_stat = [];
        $a_stat_status = $a_stat_area->find('ul[class=stats-status]', 0);
        if ($type == 'anime') {
            $temp_stat['watching'] = $this->getStatStatusCount($a_stat_status, 0);
            $temp_stat['completed'] = $this->getStatStatusCount($a_stat_status, 1);
            $temp_stat['on_hold'] = $this->getStatStatusCount($a_stat_status, 2);
            $temp_stat['dropped'] = $this->getStatStatusCount($a_stat_status, 3);
            $temp_stat['plan_to_watch'] = $this->getStatStatusCount($a_stat_status, 4);
        } else {
            $temp_stat['reading'] = $this->getStatStatusCount($a_stat_status, 0);
            $temp_stat['completed'] = $this->getStatStatusCount($a_stat_status, 1);
            $temp_stat['on_hold'] = $this->getStatStatusCount($a_stat_status, 2);
            $temp_stat['dropped'] = $this->getStatStatusCount($a_stat_status, 3);
            $temp_stat['plan_to_read'] = $this->getStatStatusCount($a_stat_status, 4);
        }

        $a_stat_status = $a_stat_area->find('ul[class=stats-data]', 0);
        $temp_stat['total'] = $this->getStatStatusCount($a_stat_status, 1);
        if ($type == 'anime') {
            $temp_stat['rewatched'] = $this->getStatStatusCount($a_stat_status, 3);
            $temp_stat['episode'] = $this->getStatStatusCount($a_stat_status, 5);
        } else {
            $temp_stat['reread'] = $this->getStatStatusCount($a_stat_status, 3);
            $temp_stat['chapter'] = $this->getStatStatusCount($a_stat_status, 5);
            $temp_stat['volume'] = $this->getStatStatusCount($a_stat_status, 7);
        }

        return $temp_stat;
    }
private function getStatStatus($a_stat_area, $type)
    {
        $temp_stat = [];
        $a_stat_status = $a_stat_area->find('ul[class=stats-status]', 0);
        if ($type == 'anime') {
            $temp_stat['watching'] = $this->getStatStatusCount($a_stat_status, 0);
            $temp_stat['completed'] = $this->getStatStatusCount($a_stat_status, 1);
            $temp_stat['on_hold'] = $this->getStatStatusCount($a_stat_status, 2);
            $temp_stat['dropped'] = $this->getStatStatusCount($a_stat_status, 3);
            $temp_stat['plan_to_watch'] = $this->getStatStatusCount($a_stat_status, 4);
        } else {
            $temp_stat['reading'] = $this->getStatStatusCount($a_stat_status, 0);
            $temp_stat['completed'] = $this->getStatStatusCount($a_stat_status, 1);
            $temp_stat['on_hold'] = $this->getStatStatusCount($a_stat_status, 2);
            $temp_stat['dropped'] = $this->getStatStatusCount($a_stat_status, 3);
            $temp_stat['plan_to_read'] = $this->getStatStatusCount($a_stat_status, 4);
        }

        $a_stat_status = $a_stat_area->find('ul[class=stats-data]', 0);
        $temp_stat['total'] = $this->getStatStatusCount($a_stat_status, 1);
        if ($type == 'anime') {
            $temp_stat['rewatched'] = $this->getStatStatusCount($a_stat_status, 3);
            $temp_stat['episode'] = $this->getStatStatusCount($a_stat_status, 5);
        } else {
            $temp_stat['reread'] = $this->getStatStatusCount($a_stat_status, 3);
            $temp_stat['chapter'] = $this->getStatStatusCount($a_stat_status, 5);
            $temp_stat['volume'] = $this->getStatStatusCount($a_stat_status, 7);
        }

        return $temp_stat;
    }
private function getStatStatus ( $ a_stat_area , $ type ) { $ temp_stat = [ ] ; $ a_stat_status = $ a_stat_area -> find ( 'ul[class=stats-status]' , 0 ) ; if ( $ type == 'anime' ) { $ temp_stat [ 'watching' ] = $ this -> getStatStatusCount ( $ a_stat_status , 0 ) ; $ temp_stat [ 'completed' ] = $ this -> getStatStatusCount ( $ a_stat_status , 1 ) ; $ temp_stat [ 'on_hold' ] = $ this -> getStatStatusCount ( $ a_stat_status , 2 ) ; $ temp_stat [ 'dropped' ] = $ this -> getStatStatusCount ( $ a_stat_status , 3 ) ; $ temp_stat [ 'plan_to_watch' ] = $ this -> getStatStatusCount ( $ a_stat_status , 4 ) ; } else { $ temp_stat [ 'reading' ] = $ this -> getStatStatusCount ( $ a_stat_status , 0 ) ; $ temp_stat [ 'completed' ] = $ this -> getStatStatusCount ( $ a_stat_status , 1 ) ; $ temp_stat [ 'on_hold' ] = $ this -> getStatStatusCount ( $ a_stat_status , 2 ) ; $ temp_stat [ 'dropped' ] = $ this -> getStatStatusCount ( $ a_stat_status , 3 ) ; $ temp_stat [ 'plan_to_read' ] = $ this -> getStatStatusCount ( $ a_stat_status , 4 ) ; } $ a_stat_status = $ a_stat_area -> find ( 'ul[class=stats-data]' , 0 ) ; $ temp_stat [ 'total' ] = $ this -> getStatStatusCount ( $ a_stat_status , 1 ) ; if ( $ type == 'anime' ) { $ temp_stat [ 'rewatched' ] = $ this -> getStatStatusCount ( $ a_stat_status , 3 ) ; $ temp_stat [ 'episode' ] = $ this -> getStatStatusCount ( $ a_stat_status , 5 ) ; } else { $ temp_stat [ 'reread' ] = $ this -> getStatStatusCount ( $ a_stat_status , 3 ) ; $ temp_stat [ 'chapter' ] = $ this -> getStatStatusCount ( $ a_stat_status , 5 ) ; $ temp_stat [ 'volume' ] = $ this -> getStatStatusCount ( $ a_stat_status , 7 ) ; } return $ temp_stat ; }
Get status stat.

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

@return array
Get status stat .