src/MalScraper/Model/General/CharacterModel.php
private function getFavorite()
    {
        $favorite = $this->_parser->find('#content table tr', 0)->find('td', 0)->plaintext;
        preg_match('/(Member Favorites: ).+/', $favorite, $parsed_favorite);
        $favorite = trim($parsed_favorite[0]);
        $parsed_favorite = explode(': ', $favorite);

        return str_replace(',', '', $parsed_favorite[1]);
    }
private function getFavorite()
    {
        $favorite = $this->_parser->find('#content table tr', 0)->find('td', 0)->plaintext;
        preg_match('/(Member Favorites: ).+/', $favorite, $parsed_favorite);
        $favorite = trim($parsed_favorite[0]);
        $parsed_favorite = explode(': ', $favorite);

        return str_replace(',', '', $parsed_favorite[1]);
    }
private function getFavorite ( ) { $ favorite = $ this -> _parser -> find ( '#content table tr' , 0 ) -> find ( 'td' , 0 ) -> plaintext ; preg_match ( '/(Member Favorites: ).+/' , $ favorite , $ parsed_favorite ) ; $ favorite = trim ( $ parsed_favorite [ 0 ] ) ; $ parsed_favorite = explode ( ': ' , $ favorite ) ; return str_replace ( ',' , '' , $ parsed_favorite [ 1 ] ) ; }
Get number of user who favorite the character.

@return string
Get number of user who favorite the character .