src/Service/Filler.php
public function getItemType($url)
    {
        if (strpos($url, self::ITEM_TYPE_ANIMATION.'/'.self::ITEM_TYPE_ANIMATION) !== false) {
            return self::ITEM_TYPE_ANIMATION;
        } elseif (strpos($url, self::ITEM_TYPE_CINEMA.'/'.self::ITEM_TYPE_CINEMA) !== false) {
            return self::ITEM_TYPE_CINEMA;
        } else {
            return;
        }
    }
public function getItemType($url)
    {
        if (strpos($url, self::ITEM_TYPE_ANIMATION.'/'.self::ITEM_TYPE_ANIMATION) !== false) {
            return self::ITEM_TYPE_ANIMATION;
        } elseif (strpos($url, self::ITEM_TYPE_CINEMA.'/'.self::ITEM_TYPE_CINEMA) !== false) {
            return self::ITEM_TYPE_CINEMA;
        } else {
            return;
        }
    }
public function getItemType ( $ url ) { if ( strpos ( $ url , self :: ITEM_TYPE_ANIMATION . '/' . self :: ITEM_TYPE_ANIMATION ) !== false ) { return self :: ITEM_TYPE_ANIMATION ; } elseif ( strpos ( $ url , self :: ITEM_TYPE_CINEMA . '/' . self :: ITEM_TYPE_CINEMA ) !== false ) { return self :: ITEM_TYPE_CINEMA ; } else { return ; } }
Get item type by URL.

@param string $url

@return string
Get item type by URL .