Skip to content

Commit

Permalink
Updated formating
Browse files Browse the repository at this point in the history
updated the specified formatting.
Hope this helps.
  • Loading branch information
Artistan committed Mar 19, 2014
1 parent 9ab88d8 commit 9eecc29
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Httpful/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,12 +383,11 @@ public function expectsType($mime)
public function attach($files) {
foreach ($files as $key => $file) {
if (function_exists('curl_file_create')) {
$this->payload[$key] = curl_file_create($file);;
$this->payload[$key] = curl_file_create($file);
} else {
$this->payload[$key] = "@{$file}";
}
}

$this->sendsType(Mime::UPLOAD);
return $this;
}
Expand Down

0 comments on commit 9eecc29

Please sign in to comment.