protected function getAssetType($asset, array $availables, $type)
    {
        $type = null === $type
            ? $this->findAssetType($asset, $availables)
            : $this->formatAssetType($type);

        if (null !== $type) {
            return $type;
        }

        throw new InvalidArgumentException(sprintf('The asset type is required for the asset "%s"', $asset));
    }
protected function getAssetType($asset, array $availables, $type)
    {
        $type = null === $type
            ? $this->findAssetType($asset, $availables)
            : $this->formatAssetType($type);

        if (null !== $type) {
            return $type;
        }

        throw new InvalidArgumentException(sprintf('The asset type is required for the asset "%s"', $asset));
    }
protected function getAssetType ( $ asset , array $ availables , $ type ) { $ type = null === $ type ? $ this -> findAssetType ( $ asset , $ availables ) : $ this -> formatAssetType ( $ type ) ; if ( null !== $ type ) { return $ type ; } throw new InvalidArgumentException ( sprintf ( 'The asset type is required for the asset "%s"' , $ asset ) ) ; }
Get the asset type.

@param string      $asset      The asset name
@param string[]    $availables The available types
@param null|string $type       The asset type

@return string
Get the asset type .