Skip to content

Commit

Permalink
Fix option cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Huez authored and Manuel Huez committed Mar 17, 2017
1 parent 820d898 commit d515858
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The package's installation is done using composer. Simply add these lines to you
```json
{
"require": {
"ProcessOut/ProcessOut-php": "^6.0.0"
"ProcessOut/ProcessOut-php": "^6.0.1"
}
}
```
Expand Down
16 changes: 8 additions & 8 deletions src/Networking/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ protected function prepare($options, $len = null)
'API-Version: 1.4.0.0',
'Content-Type: application/json'
);
if (! empty($options['idempotency_key']))
$headers[] = 'Idempotency-Key: ' . $options['idempotency_key'];
if (! empty($options['disable_logging']))
$headers[] = 'Disable-Logging' . $options['disable_logging'] ? 'true' : '';
if (! empty($options['idempotencyKey']))
$headers[] = 'Idempotency-Key: ' . $options['idempotencyKey'];
if (! empty($options['disableLogging']))
$headers[] = 'Disable-Logging' . $options['disableLogging'] ? 'true' : '';
if ($len != null)
$headers[] = 'Content-Length' . ((string) $len);

Expand Down Expand Up @@ -65,10 +65,10 @@ protected function getData($data, $options)
$data['filter'] = $options['filter'];
if (! empty($options['limit']))
$data['limit'] = $options['limit'];
if (! empty($options['end_before']))
$data['end_before'] = $options['end_before'];
if (! empty($options['start_after']))
$data['start_after'] = $options['start_after'];
if (! empty($options['endBefore']))
$data['end_before'] = $options['endBefore'];
if (! empty($options['startAfter']))
$data['start_after'] = $options['startAfter'];

return $data;
}
Expand Down

0 comments on commit d515858

Please sign in to comment.