original_string: public static function shift(&$path)
      {
          $parts = explode('/', trim($path, '/'), 2);
          $result = array_shift($parts);
          $path = array_shift($parts);
  
          return $result ?: null;
      }
code: public static function shift(&$path)
      {
          $parts = explode('/', trim($path, '/'), 2);
          $result = array_shift($parts);
          $path = array_shift($parts);
  
          return $result ?: null;
      }
code_tokens: public static function shift ( & $ path ) { $ parts = explode ( '/' , trim ( $ path , '/' ) , 2 ) ; $ result = array_shift ( $ parts ) ; $ path = array_shift ( $ parts ) ; return $ result ? : null ; }
docstring: Shift first directory out of the path.
  
  @param string $path
  @return string
docstring_tokens: Shift first directory out of the path .