original_string: protected function removePageQueryFromUrl($url)
      {
          $parts = parse_url($url);
  
          $query = preg_replace('#page=\d+&?#i', '', array_get($parts, 'query', ''));
  
          return array_get($parts, 'path') . ($query ? '?' . $query : null);
      }
code: protected function removePageQueryFromUrl($url)
      {
          $parts = parse_url($url);
  
          $query = preg_replace('#page=\d+&?#i', '', array_get($parts, 'query', ''));
  
          return array_get($parts, 'path') . ($query ? '?' . $query : null);
      }
code_tokens: protected function removePageQueryFromUrl ( $ url ) { $ parts = parse_url ( $ url ) ; $ query = preg_replace ( '#page=\d+&?#i' , '' , array_get ( $ parts , 'query' , '' ) ) ; return array_get ( $ parts , 'path' ) . ( $ query ? '?' . $ query : null ) ; }
docstring: Removes the page query parameter from a full URL.
  
  @param string $url
  @return string
docstring_tokens: Removes the page query parameter from a full URL .