src/MalScraper/Model/Seasonal/SeasonModel.php
private function getSynopsis($each_anime)
    {
        $synopsis = $each_anime->find('div[class="synopsis js-synopsis"]', 0)->plaintext;
        preg_match('/(No synopsis)/', $synopsis, $temp_synopsis);
        if (!$temp_synopsis) {
            $synopsis = trim(preg_replace("/([\s])+/", ' ', $synopsis));
        } else {
            $synopsis = '';
        }

        return $synopsis;
    }
private function getSynopsis($each_anime)
    {
        $synopsis = $each_anime->find('div[class="synopsis js-synopsis"]', 0)->plaintext;
        preg_match('/(No synopsis)/', $synopsis, $temp_synopsis);
        if (!$temp_synopsis) {
            $synopsis = trim(preg_replace("/([\s])+/", ' ', $synopsis));
        } else {
            $synopsis = '';
        }

        return $synopsis;
    }
private function getSynopsis ( $ each_anime ) { $ synopsis = $ each_anime -> find ( 'div[class="synopsis js-synopsis"]' , 0 ) -> plaintext ; preg_match ( '/(No synopsis)/' , $ synopsis , $ temp_synopsis ) ; if ( ! $ temp_synopsis ) { $ synopsis = trim ( preg_replace ( "/([\s])+/" , ' ' , $ synopsis ) ) ; } else { $ synopsis = '' ; } return $ synopsis ; }
Get synopsis.

@param \simplehtmldom_1_5\simple_html_dom $each_anime

@return string
Get synopsis .