src/Beluga/IO/Path.php
public static function RemoveWorkingDir( string $path = null ) : string
   {

      if ( \is_null( $path ) )
      {
         return '';
      }

      $wd = '~^' . \preg_quote( static::Unixize( \getcwd() ) . '/' ) . '~';

      return \preg_replace( $wd, '', static::Unixize( $path ) );

   }
public static function RemoveWorkingDir( string $path = null ) : string
   {

      if ( \is_null( $path ) )
      {
         return '';
      }

      $wd = '~^' . \preg_quote( static::Unixize( \getcwd() ) . '/' ) . '~';

      return \preg_replace( $wd, '', static::Unixize( $path ) );

   }
public static function RemoveWorkingDir ( string $ path = null ) : string { if ( \ is_null ( $ path ) ) { return '' ; } $ wd = '~^' . \ preg_quote ( static :: Unixize ( \ getcwd ( ) ) . '/' ) . '~' ; return \ preg_replace ( $ wd , '' , static :: Unixize ( $ path ) ) ; }
Removes the current working directory from defined path, if it starts with it.

@param  string $path
@return string
Removes the current working directory from defined path if it starts with it .