public function getIssue($resource)
    {
        $hashPosition = strpos($resource, '#');
        if ($hashPosition !== false) {
            $resource = substr($resource, 0, $hashPosition);
        }

        $url = $this->host . '/browse/';

        if (strncmp($resource, $url, strlen($url)) === 0) {
            return substr($resource, strlen($url));
        }
    }
public function getIssue($resource)
    {
        $hashPosition = strpos($resource, '#');
        if ($hashPosition !== false) {
            $resource = substr($resource, 0, $hashPosition);
        }

        $url = $this->host . '/browse/';

        if (strncmp($resource, $url, strlen($url)) === 0) {
            return substr($resource, strlen($url));
        }
    }
public function getIssue ( $ resource ) { $ hashPosition = strpos ( $ resource , '#' ) ; if ( $ hashPosition !== false ) { $ resource = substr ( $ resource , 0 , $ hashPosition ) ; } $ url = $ this -> host . '/browse/' ; if ( strncmp ( $ resource , $ url , strlen ( $ url ) ) === 0 ) { return substr ( $ resource , strlen ( $ url ) ) ; } }
Get Jira issue from URL

@param string $resource

@return string|null
Get Jira issue from URL