src/MalScraper/Model/General/InfoModel.php
private function getStaffImage($each_staff, $va = false)
    {
        if ($va) {
            $staff_image = $each_staff->find('table td', 1)->find('img', 0)->getAttribute('data-src');
        } else {
            $staff_image = $each_staff->find('tr td', 0)->find('img', 0)->getAttribute('data-src');
        }

        return Helper::imageUrlCleaner($staff_image);
    }
private function getStaffImage($each_staff, $va = false)
    {
        if ($va) {
            $staff_image = $each_staff->find('table td', 1)->find('img', 0)->getAttribute('data-src');
        } else {
            $staff_image = $each_staff->find('tr td', 0)->find('img', 0)->getAttribute('data-src');
        }

        return Helper::imageUrlCleaner($staff_image);
    }
private function getStaffImage ( $ each_staff , $ va = false ) { if ( $ va ) { $ staff_image = $ each_staff -> find ( 'table td' , 1 ) -> find ( 'img' , 0 ) -> getAttribute ( 'data-src' ) ; } else { $ staff_image = $ each_staff -> find ( 'tr td' , 0 ) -> find ( 'img' , 0 ) -> getAttribute ( 'data-src' ) ; } return Helper :: imageUrlCleaner ( $ staff_image ) ; }
Get staff image.

@param \simplehtmldom_1_5\simple_html_dom $each_staff
@param bool                               $va         (Optional)

@return string
Get staff image .