src/Textpattern/Composer/Installer/Textpattern/Find.php
public function getRelativePath()
    {
        $current = realpath('./');

        if ($current !== false && strpos(self::$path.'/', $current.'/') === 0) {
            return rtrim('./' . substr(self::$path, strlen($current) + 1), '\\/');
        }

        throw new \InvalidArgumentException(
            'Unable to resolve relative path to Textpattern installation location '.
            'from the current working directory.'
        );
    }
public function getRelativePath()
    {
        $current = realpath('./');

        if ($current !== false && strpos(self::$path.'/', $current.'/') === 0) {
            return rtrim('./' . substr(self::$path, strlen($current) + 1), '\\/');
        }

        throw new \InvalidArgumentException(
            'Unable to resolve relative path to Textpattern installation location '.
            'from the current working directory.'
        );
    }
public function getRelativePath ( ) { $ current = realpath ( './' ) ; if ( $ current !== false && strpos ( self :: $ path . '/' , $ current . '/' ) === 0 ) { return rtrim ( './' . substr ( self :: $ path , strlen ( $ current ) + 1 ) , '\\/' ) ; } throw new \ InvalidArgumentException ( 'Unable to resolve relative path to Textpattern installation location ' . 'from the current working directory.' ) ; }
Gets relative path to the Textpattern installation.

The path is relative to the current working directory.

@return string The path
@throws \InvalidArgumentException
Gets relative path to the Textpattern installation .