src/MalScraper/Model/General/PeopleModel.php
private function getStaff($manga = false)
    {
        $staff = [];
        $staff_index = 0;
        $html = $this->_parser->find('#content table tr', 0)->find('td', 0)->next_sibling();
        if ($manga) {
            $staff_area = $html->find('.normal_header', 2)->next_sibling();
        } else {
            $staff_area = $html->find('.normal_header', 1)->next_sibling();
        }
        if ($staff_area->tag == 'table') {
            foreach ($staff_area->find('tr') as $each_staff) {
                $anime_image_area = $each_staff->find('td', 0);
                $staff_area = $each_staff->find('td', 1);

                $staff[$staff_index]['image'] = $this->getAnimeImage($anime_image_area);
                $staff[$staff_index]['id'] = $this->getAnimeId($staff_area);
                $staff[$staff_index]['title'] = $this->getAnimeTitle($staff_area);
                $staff[$staff_index]['role'] = $this->getAnimeRole($staff_area, true);

                $staff_index++;
            }
        }

        return $staff;
    }
private function getStaff($manga = false)
    {
        $staff = [];
        $staff_index = 0;
        $html = $this->_parser->find('#content table tr', 0)->find('td', 0)->next_sibling();
        if ($manga) {
            $staff_area = $html->find('.normal_header', 2)->next_sibling();
        } else {
            $staff_area = $html->find('.normal_header', 1)->next_sibling();
        }
        if ($staff_area->tag == 'table') {
            foreach ($staff_area->find('tr') as $each_staff) {
                $anime_image_area = $each_staff->find('td', 0);
                $staff_area = $each_staff->find('td', 1);

                $staff[$staff_index]['image'] = $this->getAnimeImage($anime_image_area);
                $staff[$staff_index]['id'] = $this->getAnimeId($staff_area);
                $staff[$staff_index]['title'] = $this->getAnimeTitle($staff_area);
                $staff[$staff_index]['role'] = $this->getAnimeRole($staff_area, true);

                $staff_index++;
            }
        }

        return $staff;
    }
private function getStaff ( $ manga = false ) { $ staff = [ ] ; $ staff_index = 0 ; $ html = $ this -> _parser -> find ( '#content table tr' , 0 ) -> find ( 'td' , 0 ) -> next_sibling ( ) ; if ( $ manga ) { $ staff_area = $ html -> find ( '.normal_header' , 2 ) -> next_sibling ( ) ; } else { $ staff_area = $ html -> find ( '.normal_header' , 1 ) -> next_sibling ( ) ; } if ( $ staff_area -> tag == 'table' ) { foreach ( $ staff_area -> find ( 'tr' ) as $ each_staff ) { $ anime_image_area = $ each_staff -> find ( 'td' , 0 ) ; $ staff_area = $ each_staff -> find ( 'td' , 1 ) ; $ staff [ $ staff_index ] [ 'image' ] = $ this -> getAnimeImage ( $ anime_image_area ) ; $ staff [ $ staff_index ] [ 'id' ] = $ this -> getAnimeId ( $ staff_area ) ; $ staff [ $ staff_index ] [ 'title' ] = $ this -> getAnimeTitle ( $ staff_area ) ; $ staff [ $ staff_index ] [ 'role' ] = $ this -> getAnimeRole ( $ staff_area , true ) ; $ staff_index ++ ; } } return $ staff ; }
Get people staff list.

@param bool $staff (Optional)

@return array
Get people staff list .