original_string: public function location($trace) {
          $root = substr($_SERVER['DOCUMENT_ROOT'], 0 , strlen(static::$defaults['docroot']) * -1);
          $file = implode('/', array_diff(explode('/', $trace[0]['file']), explode('/', $root)));
          $ret = array(
              'file' => $file,
              'line' => $trace[0]['line']
          );
          if (isset($trace[1]['function'])) $ret['function'] = $trace[1]['function'];
          if (isset($trace[1]['class'])) $ret['class'] = $trace[1]['class'];
          return $ret;
      }
code: public function location($trace) {
          $root = substr($_SERVER['DOCUMENT_ROOT'], 0 , strlen(static::$defaults['docroot']) * -1);
          $file = implode('/', array_diff(explode('/', $trace[0]['file']), explode('/', $root)));
          $ret = array(
              'file' => $file,
              'line' => $trace[0]['line']
          );
          if (isset($trace[1]['function'])) $ret['function'] = $trace[1]['function'];
          if (isset($trace[1]['class'])) $ret['class'] = $trace[1]['class'];
          return $ret;
      }
code_tokens: public function location ( $ trace ) { $ root = substr ( $ _SERVER [ 'DOCUMENT_ROOT' ] , 0 , strlen ( static :: $ defaults [ 'docroot' ] ) * - 1 ) ; $ file = implode ( '/' , array_diff ( explode ( '/' , $ trace [ 0 ] [ 'file' ] ) , explode ( '/' , $ root ) ) ) ; $ ret = array ( 'file' => $ file , 'line' => $ trace [ 0 ] [ 'line' ] ) ; if ( isset ( $ trace [ 1 ] [ 'function' ] ) ) $ ret [ 'function' ] = $ trace [ 1 ] [ 'function' ] ; if ( isset ( $ trace [ 1 ] [ 'class' ] ) ) $ ret [ 'class' ] = $ trace [ 1 ] [ 'class' ] ; return $ ret ; }
docstring: Create an array that describes the location of the debug call
  
  @param string $trace
  @return array
docstring_tokens: Create an array that describes the location of the debug call