original_string: public function relativePath($reset = true)
      {
          $output = preg_replace('|^' . preg_quote(GRAV_ROOT, '|') . '|', '', $this->get('filepath'));
  
          $locator = Grav::instance()['locator'];
          if ($locator->isStream($output)) {
              $output = $locator->findResource($output, false);
          }
  
          if ($reset) {
              $this->reset();
          }
  
          return str_replace(GRAV_ROOT, '', $output);
      }
code: public function relativePath($reset = true)
      {
          $output = preg_replace('|^' . preg_quote(GRAV_ROOT, '|') . '|', '', $this->get('filepath'));
  
          $locator = Grav::instance()['locator'];
          if ($locator->isStream($output)) {
              $output = $locator->findResource($output, false);
          }
  
          if ($reset) {
              $this->reset();
          }
  
          return str_replace(GRAV_ROOT, '', $output);
      }
code_tokens: public function relativePath ( $ reset = true ) { $ output = preg_replace ( '|^' . preg_quote ( GRAV_ROOT , '|' ) . '|' , '' , $ this -> get ( 'filepath' ) ) ; $ locator = Grav :: instance ( ) [ 'locator' ] ; if ( $ locator -> isStream ( $ output ) ) { $ output = $ locator -> findResource ( $ output , false ) ; } if ( $ reset ) { $ this -> reset ( ) ; } return str_replace ( GRAV_ROOT , '' , $ output ) ; }
docstring: Return the relative path to file
  
  @param bool $reset
  @return mixed
docstring_tokens: Return the relative path to file