Skip to content

Commit 54a1f67

Browse files
committed
update comment / remove extra whitespace
1 parent 50397f1 commit 54a1f67

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/HttpMessage/ServerRequestExtended.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static function fromServerRequest(ServerRequestInterface $serverRequest):
3131
return $serverRequest;
3232
}
3333

34-
$instance = new static(
34+
$instance = new static(
3535
$serverRequest->getMethod(),
3636
$serverRequest->getUri(),
3737
$serverRequest->getServerParams()

src/HttpMessage/ServerRequestExtendedInterface.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,9 @@ public function isSecure(): bool;
173173
/**
174174
* Is this an XHR (aka ajax) request?
175175
*
176-
* Note: This method is not part of the PSR-7 standard.
176+
* Note 1: This method is not part of the PSR-7 standard.
177+
* Note 2: This method likely relies on the non-standard X-Requested-With header
178+
* Note 3: Javascript's fetch API does not pass any distinguishing headers
177179
*
178180
* @return bool
179181
*/

src/HttpMessage/Utility/HttpFoundationBridge.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ private static function getFiles(array $uploadedFiles): array
172172
UPLOAD_ERR_NO_FILE
173173
);
174174
} elseif ($value instanceof HttpFoundationUploadedFile) {
175-
$value = self::createUploadedFile($value);
175+
$value = self::createUploadedFile($value);
176176
} elseif (\is_array($value)) {
177177
$value = self::getFiles($value);
178178
}

0 commit comments

Comments
 (0)