@@ -42,6 +42,9 @@ |
||
| 42 | 42 | unset($this->formats[$code]); |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | + /** |
|
| 46 | + * @param string $code |
|
| 47 | + */ |
|
| 45 | 48 | public function getFormat($code) |
| 46 | 49 | { |
| 47 | 50 | if (isset($this->formats[$code])) { |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace h4kuna\Exchange\Currency; |
| 4 | 4 | |
| 5 | -use h4kuna\Exchange, |
|
| 6 | - h4kuna\Number; |
|
| 5 | +use h4kuna\Exchange; |
|
| 6 | +use h4kuna\Number; |
|
| 7 | 7 | |
| 8 | 8 | class Formats |
| 9 | 9 | { |
@@ -44,6 +44,9 @@ |
||
| 44 | 44 | return $currencies; |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | + /** |
|
| 48 | + * @param string $format |
|
| 49 | + */ |
|
| 47 | 50 | protected function setDate($format, $value) |
| 48 | 51 | { |
| 49 | 52 | $this->date = DateTime::createFromFormat($format, $value); |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace h4kuna\Exchange\Driver; |
| 4 | 4 | |
| 5 | -use DateTime, |
|
| 6 | - h4kuna\Exchange; |
|
| 5 | +use DateTime; |
|
| 6 | +use h4kuna\Exchange; |
|
| 7 | 7 | |
| 8 | 8 | /** |
| 9 | 9 | * Download currency from server. |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace h4kuna\Exchange\Http; |
| 4 | 4 | |
| 5 | -use h4kuna\Exchange, |
|
| 6 | - Nette\Http; |
|
| 5 | +use h4kuna\Exchange; |
|
| 6 | +use Nette\Http; |
|
| 7 | 7 | |
| 8 | 8 | class CookieManager |
| 9 | 9 | { |