]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/class-wp-http-requests-response.php
WordPress 4.7
[autoinstalls/wordpress.git] / wp-includes / class-wp-http-requests-response.php
index ab0a5cc056e11a5a28b1455a071ab39217bb5a2c..660831919eed0bdcd17c60319de1701fbc88d66f 100644 (file)
@@ -65,17 +65,18 @@ class WP_HTTP_Requests_Response extends WP_HTTP_Response {
         * @since 4.6.0
         * @access public
         *
-        * @return array Map of header name to header value.
+        * @see \Requests_Utility_CaseInsensitiveDictionary
+        *
+        * @return \Requests_Utility_CaseInsensitiveDictionary Map of header name to header value.
         */
        public function get_headers() {
-               // Ensure headers remain case-insensitive
+               // Ensure headers remain case-insensitive.
                $converted = new Requests_Utility_CaseInsensitiveDictionary();
 
                foreach ( $this->response->headers->getAll() as $key => $value ) {
                        if ( count( $value ) === 1 ) {
                                $converted[ $key ] = $value[0];
-                       }
-                       else {
+                       } else {
                                $converted[ $key ] = $value;
                        }
                }