original_string: protected function stripVendorDir($path, $vendorDir)
      {
          $path = realpath($path);
          $vendorDir = realpath($vendorDir);
  
          if (strpos($path, $vendorDir) === 0) {
              $path = substr($path, strlen($vendorDir));
          }
  
          return $path;
      }
code: protected function stripVendorDir($path, $vendorDir)
      {
          $path = realpath($path);
          $vendorDir = realpath($vendorDir);
  
          if (strpos($path, $vendorDir) === 0) {
              $path = substr($path, strlen($vendorDir));
          }
  
          return $path;
      }
code_tokens: protected function stripVendorDir ( $ path , $ vendorDir ) { $ path = realpath ( $ path ) ; $ vendorDir = realpath ( $ vendorDir ) ; if ( strpos ( $ path , $ vendorDir ) === 0 ) { $ path = substr ( $ path , strlen ( $ vendorDir ) ) ; } return $ path ; }
docstring: Removes the vendor directory from a path.
  @param string $path
  @return string
docstring_tokens: Removes the vendor directory from a path .