File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -67,10 +67,10 @@ Http::getProtocol()
6767use PH7\PhpHttpResponseHeader\Header;
6868
6969// Send "Content-Type: application/json" header to the browser
70- Http::setContentType(" application/json" );
70+ Http::setContentType(' application/json' );
7171
7272// Send "Content-type: text/xml" to the browser
73- Http::setContentType(" text/xml" );
73+ Http::setContentType(' text/xml' );
7474```
7575
7676
Original file line number Diff line number Diff line change @@ -79,11 +79,11 @@ class Http
7979
8080
8181 /**
82- * Give the HTTP status code name (e.g. " 204 No Content" ).
82+ * Give the HTTP status code name (e.g. ' 204 No Content' ).
8383 *
8484 * @param int $status The "code" for the HTTP status.
8585 *
86- * @return string|bool $status The " HTTP status code" if found, FALSE otherwise.
86+ * @return string|bool $status The correct HTTP status code if found, FALSE otherwise.
8787 */
8888 public static function getStatusCode (int $ status ): string |bool
8989 {
@@ -137,7 +137,7 @@ public static function setHeadersByCode(int $code = StatusCode::OK): void
137137 /**
138138 * Set a HTTP Content Type.
139139 *
140- * @param string $type The content type value. e.g., " text/xml".
140+ * @param string $type The content type value. e.g. ' text/xml'
141141 *
142142 * @throws Exception
143143 */
You can’t perform that action at this time.
0 commit comments