original_string: public static function containsPath(/*string*/ $top, /*string*/ $sub) {
      $top = self::realPath($top);
      $sub = self::realPath($sub);
      return self::isDir($top) && self::isDir($sub) &&
        0 === strpos($sub, $top . '/');
    }
code: public static function containsPath(/*string*/ $top, /*string*/ $sub) {
      $top = self::realPath($top);
      $sub = self::realPath($sub);
      return self::isDir($top) && self::isDir($sub) &&
        0 === strpos($sub, $top . '/');
    }
code_tokens: public static function containsPath ( /*string*/ $ top , /*string*/ $ sub ) { $ top = self :: realPath ( $ top ) ; $ sub = self :: realPath ( $ sub ) ; return self :: isDir ( $ top ) && self :: isDir ( $ sub ) && 0 === strpos ( $ sub , $ top . '/' ) ; }
docstring: Checks whether a parent directory contains the specified sub-directory.
  
  @param string $top parent (top) directory
  @param string $sub directory
  @return boolean TRUE if top directory contains the sub, FALSE otherwise
docstring_tokens: Checks whether a parent directory contains the specified sub - directory .