original_string: private function removeTrailingSlash($url)
      {
          // if there is a final slash, we take the URL without this slash (expected URL format)
          if (strlen($url) > 5
              && $url[strlen($url) - 1] == '/'
          ) {
              $url = substr($url, 0, strlen($url) - 1);
          }
  
          return $url;
      }
code: private function removeTrailingSlash($url)
      {
          // if there is a final slash, we take the URL without this slash (expected URL format)
          if (strlen($url) > 5
              && $url[strlen($url) - 1] == '/'
          ) {
              $url = substr($url, 0, strlen($url) - 1);
          }
  
          return $url;
      }
code_tokens: private function removeTrailingSlash ( $ url ) { // if there is a final slash, we take the URL without this slash (expected URL format) if ( strlen ( $ url ) > 5 && $ url [ strlen ( $ url ) - 1 ] == '/' ) { $ url = substr ( $ url , 0 , strlen ( $ url ) - 1 ) ; } return $ url ; }
docstring: Remove the final slash in the URLs if found
  
  @param string $url
  @return string the URL without the trailing slash
docstring_tokens: Remove the final slash in the URLs if found