Skip to content

Commit

Permalink
Merge pull request #89 from florianv/fixes
Browse files Browse the repository at this point in the history
Documentation and CI fixes
  • Loading branch information
florianv committed Jun 3, 2017
2 parents 887dfc0 + 9623289 commit 8a1bcaa
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 2 deletions.
17 changes: 17 additions & 0 deletions .php_cs.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php
return PhpCsFixer\Config::create()
->setRules(array(
'@Symfony' => true,
'@Symfony:risky' => true,
'array_syntax' => array('syntax' => 'short'),
'no_unreachable_default_argument_value' => false,
'heredoc_to_nowdoc' => false,
'phpdoc_annotation_without_dot' => false,
))
->setRiskyAllowed(true)
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__.'/src')
->in(__DIR__.'/tests')
)
;
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ php:
- 5.6
- 7.0
- 7.1
- hhvm

sudo: false

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ Here is the list of the currently implemented services.
| [Central Bank of the Czech Republic](http://www.cnb.cz) | * | CZK | No |
| [Russian Central Bank](http://http://www.cbr.ru) | * | RUB | Yes |
| [currencylayer](https://currencylayer.com) | USD (free), * (paid) | * | Yes |
| Array | * | * | Yes |

## Integrations

Expand Down
15 changes: 14 additions & 1 deletion doc/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,20 @@ $swap = (new Builder())
->add('google')
->add('national_bank_of_romania')
->add('open_exchange_rates', ['app_id' => 'secret', 'enterprise' => false])
->add('array', [['EUR/USD' => new ExchangeRate('1.5')]])
->add('array', [
[
'EUR/USD' => new ExchangeRate('1.1'),
'EUR/GBP' => 1.5
],
[
'2017-01-01' => [
'EUR/USD' => new ExchangeRate('1.5')
],
'2017-01-03' => [
'EUR/GBP' => 1.3
],
]
])
->add('webservicex')
->add('xignite', ['token' => 'token'])
->add('yahoo')
Expand Down

0 comments on commit 8a1bcaa

Please sign in to comment.