Skip to content

Commit

Permalink
Merge pull request #2 from facade/analysis-XZwOjb
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
mpociot committed Sep 5, 2019
2 parents 358d343 + 1c0f825 commit a276603
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/Context/RequestContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ protected function mapFiles(array $files)
}

if (! $file instanceof UploadedFile) {
return null;
return;
}

return [
'pathname' => $file->getPathname(),
'size' => $file->getSize(),
'mimeType' => $file->getMimeType()
'mimeType' => $file->getMimeType(),
];
}, $files);
}
Expand Down
6 changes: 2 additions & 4 deletions tests/Context/RequestContextTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,13 @@ public function it_can_return_the_context_as_an_array()
$cookies = ['cookie-key-1' => 'cookie-value-1'];

$files = [
'file-one' =>
new UploadedFile(
'file-one' => new UploadedFile(
$this->getStubPath('file.txt'),
'file-name.txt',
'text/plain',
UPLOAD_ERR_OK
),
'file-two' =>
new UploadedFile(
'file-two' => new UploadedFile(
$this->getStubPath('file.txt'),
'file-name.txt',
'text/plain',
Expand Down

0 comments on commit a276603

Please sign in to comment.