Skip to content

Commit

Permalink
Fix coding style.
Browse files Browse the repository at this point in the history
  • Loading branch information
terrylinooo committed Jun 21, 2020
1 parent d0d9379 commit 8a04f9e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Psr7/Message.php
Expand Up @@ -282,7 +282,7 @@ public static function parseRawHeader(string $message): array
$num = count($headers);

if ($num > 1) {
$headers = array_merge(...array_map(function ($line) {
$headers = array_merge(...array_map(function($line) {
$name = trim($line[1]);
$field = trim($line[2]);
return [$name => $field];
Expand Down
10 changes: 5 additions & 5 deletions src/Psr7/Uri.php
Expand Up @@ -368,17 +368,17 @@ public function __toString(): string
protected function init(array $data = []): void
{
$components = [
'scheme',
'user',
'scheme',
'user',
'pass',
'host',
'port',
'path',
'query',
'path',
'query',
'fragment'
];

foreach($components as $v) {
foreach ($components as $v) {
$this->{$v} = isset($data[$v]) ? $this->filter($v, $data[$v]) : '';
}

Expand Down

0 comments on commit 8a04f9e

Please sign in to comment.