src/Database/Addic7edDatabase.php
public function getShowId($term)
    {
        $lowerTerm = strtolower($term);

        if (isset($this->searches[$lowerTerm])) {
            return $this->searches[$lowerTerm];
        }

        $searchData = $this->scrapper->search($term);

        if (!isset($searchData->showId)) {
            return;
        }

        $showId = $searchData->showId;

        return $this->searches[$lowerTerm] = $showId;
    }
public function getShowId($term)
    {
        $lowerTerm = strtolower($term);

        if (isset($this->searches[$lowerTerm])) {
            return $this->searches[$lowerTerm];
        }

        $searchData = $this->scrapper->search($term);

        if (!isset($searchData->showId)) {
            return;
        }

        $showId = $searchData->showId;

        return $this->searches[$lowerTerm] = $showId;
    }
public function getShowId ( $ term ) { $ lowerTerm = strtolower ( $ term ) ; if ( isset ( $ this -> searches [ $ lowerTerm ] ) ) { return $ this -> searches [ $ lowerTerm ] ; } $ searchData = $ this -> scrapper -> search ( $ term ) ; if ( ! isset ( $ searchData -> showId ) ) { return ; } $ showId = $ searchData -> showId ; return $ this -> searches [ $ lowerTerm ] = $ showId ; }
Get show id

@param string term

@return int showId
Get show id