src/MalScraper/Model/General/CharacterModel.php
private function getName($isKanji = false)
    {
        $html = $this->_parser->find('#content table tr', 0);
        $html = $html->find('td', 0)->next_sibling()->find('div[class=normal_header]', 0);

        $name_kanji = $html->find('small', 0);
        $name_kanji = $name_kanji ? $name_kanji->plaintext : '';

        if ($isKanji) {
            return preg_replace('/(\(|\))/', '', $name_kanji);
        }

        return trim(str_replace($name_kanji, '', $html->plaintext));
    }
private function getName($isKanji = false)
    {
        $html = $this->_parser->find('#content table tr', 0);
        $html = $html->find('td', 0)->next_sibling()->find('div[class=normal_header]', 0);

        $name_kanji = $html->find('small', 0);
        $name_kanji = $name_kanji ? $name_kanji->plaintext : '';

        if ($isKanji) {
            return preg_replace('/(\(|\))/', '', $name_kanji);
        }

        return trim(str_replace($name_kanji, '', $html->plaintext));
    }
private function getName ( $ isKanji = false ) { $ html = $ this -> _parser -> find ( '#content table tr' , 0 ) ; $ html = $ html -> find ( 'td' , 0 ) -> next_sibling ( ) -> find ( 'div[class=normal_header]' , 0 ) ; $ name_kanji = $ html -> find ( 'small' , 0 ) ; $ name_kanji = $ name_kanji ? $ name_kanji -> plaintext : '' ; if ( $ isKanji ) { return preg_replace ( '/(\(|\))/' , '' , $ name_kanji ) ; } return trim ( str_replace ( $ name_kanji , '' , $ html -> plaintext ) ) ; }
Get character name.

@param bool $isKanji

@return string
Get character name .