src/MalScraper/Model/General/ProducerModel.php
private function getAnimeLicensor($each_anime)
    {
        if ($this->_type == 'anime') {
            $licensor = $each_anime->find('div[class="synopsis js-synopsis"] .licensors', 0)->getAttribute('data-licensors');
            $licensor = explode(',', $licensor);

            return array_filter($licensor);
        } else {
            $serialization = $each_anime->find('div[class="synopsis js-synopsis"] .serialization a', 0);

            return $serialization ? $serialization->plaintext : '';
        }
    }
private function getAnimeLicensor($each_anime)
    {
        if ($this->_type == 'anime') {
            $licensor = $each_anime->find('div[class="synopsis js-synopsis"] .licensors', 0)->getAttribute('data-licensors');
            $licensor = explode(',', $licensor);

            return array_filter($licensor);
        } else {
            $serialization = $each_anime->find('div[class="synopsis js-synopsis"] .serialization a', 0);

            return $serialization ? $serialization->plaintext : '';
        }
    }
private function getAnimeLicensor ( $ each_anime ) { if ( $ this -> _type == 'anime' ) { $ licensor = $ each_anime -> find ( 'div[class="synopsis js-synopsis"] .licensors' , 0 ) -> getAttribute ( 'data-licensors' ) ; $ licensor = explode ( ',' , $ licensor ) ; return array_filter ( $ licensor ) ; } else { $ serialization = $ each_anime -> find ( 'div[class="synopsis js-synopsis"] .serialization a' , 0 ) ; return $ serialization ? $ serialization -> plaintext : '' ; } }
Get anime licensor.

@param \simplehtmldom_1_5\simple_html_dom $each_anime

@return string|array
Get anime licensor .