original_string: public static function normalizeUrl($url)
      {
          foreach (self::$urlPrefixMap as $prefix => $id) {
              if (strtolower(substr($url, 0, strlen($prefix))) == $prefix) {
                  return array(
                      'url'      => substr($url, strlen($prefix)),
                      'prefixId' => $id
                  );
              }
          }
  
          return array('url' => $url, 'prefixId' => null);
      }
code: public static function normalizeUrl($url)
      {
          foreach (self::$urlPrefixMap as $prefix => $id) {
              if (strtolower(substr($url, 0, strlen($prefix))) == $prefix) {
                  return array(
                      'url'      => substr($url, strlen($prefix)),
                      'prefixId' => $id
                  );
              }
          }
  
          return array('url' => $url, 'prefixId' => null);
      }
code_tokens: public static function normalizeUrl ( $ url ) { foreach ( self :: $ urlPrefixMap as $ prefix => $ id ) { if ( strtolower ( substr ( $ url , 0 , strlen ( $ prefix ) ) ) == $ prefix ) { return array ( 'url' => substr ( $ url , strlen ( $ prefix ) ) , 'prefixId' => $ id ) ; } } return array ( 'url' => $ url , 'prefixId' => null ) ; }
docstring: Extract the prefix from a URL.
  Return the prefix ID and the rest.
  
  @param string $url
  @return array
docstring_tokens: Extract the prefix from a URL . Return the prefix ID and the rest .