src/MalScraper/Model/General/InfoModel.php
private function getRelatedDetail($r)
    {
        $related = [];
        $rel_anime_link = $r->href;
        $separated_anime_link = explode('/', $rel_anime_link);

        $related['id'] = $separated_anime_link[2];
        $related['title'] = $r->plaintext;
        $related['type'] = $separated_anime_link[1];

        return $related;
    }
private function getRelatedDetail($r)
    {
        $related = [];
        $rel_anime_link = $r->href;
        $separated_anime_link = explode('/', $rel_anime_link);

        $related['id'] = $separated_anime_link[2];
        $related['title'] = $r->plaintext;
        $related['type'] = $separated_anime_link[1];

        return $related;
    }
private function getRelatedDetail ( $ r ) { $ related = [ ] ; $ rel_anime_link = $ r -> href ; $ separated_anime_link = explode ( '/' , $ rel_anime_link ) ; $ related [ 'id' ] = $ separated_anime_link [ 2 ] ; $ related [ 'title' ] = $ r -> plaintext ; $ related [ 'type' ] = $ separated_anime_link [ 1 ] ; return $ related ; }
Get related detail.

@param \simplehtmldom_1_5\simple_html_dom $r

@return array
Get related detail .