Skip to content

Commit c45e571

Browse files
committed
Cleanup/Consistency: Replace double quotes to single ones
1 parent d382e74 commit c45e571

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ Http::getProtocol()
6767
use 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

src/Http.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
*/

0 commit comments

Comments
 (0)