Bundle/MediaBundle/Helper/RemoteVideo/RemoteVideoHandler.php
private function endsWith($str, $sub)
    {
        return substr($str, strlen($str) - strlen($sub)) === $sub;
    }
private function endsWith($str, $sub)
    {
        return substr($str, strlen($str) - strlen($sub)) === $sub;
    }
private function endsWith ( $ str , $ sub ) { return substr ( $ str , strlen ( $ str ) - strlen ( $ sub ) ) === $ sub ; }
String helper.

@param string $str string
@param string $sub substring

@return bool
String helper .