@@ -28,13 +28,13 @@ |
||
| 28 | 28 | { |
| 29 | 29 | switch ($expectedResponse) { |
| 30 | 30 | case self::VALID_RESPONSE: |
| 31 | - $this->response = $this->createResponseFromFile(__DIR__ . '/../../resources/eurofxref-daily-valid.xml'); |
|
| 31 | + $this->response = $this->createResponseFromFile(__DIR__.'/../../resources/eurofxref-daily-valid.xml'); |
|
| 32 | 32 | break; |
| 33 | 33 | case self::USD_MISSING_RESPONSE: |
| 34 | - $this->response = $this->createResponseFromFile(__DIR__ . '/../../resources/eurofxref-daily-usd-missing.xml'); |
|
| 34 | + $this->response = $this->createResponseFromFile(__DIR__.'/../../resources/eurofxref-daily-usd-missing.xml'); |
|
| 35 | 35 | break; |
| 36 | 36 | case self::DATE_MISSING_RESPONSE: |
| 37 | - $this->response = $this->createResponseFromFile(__DIR__ . '/../../resources/eurofxref-daily-date-missing.xml'); |
|
| 37 | + $this->response = $this->createResponseFromFile(__DIR__.'/../../resources/eurofxref-daily-date-missing.xml'); |
|
| 38 | 38 | break; |
| 39 | 39 | } |
| 40 | 40 | } |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | try { |
| 65 | 65 | if (null !== $this->cache) { |
| 66 | 66 | $now = new \DateTime(); |
| 67 | - $key = 'curr-curr-' . $now->format('YY-mm-dd'); |
|
| 67 | + $key = 'curr-curr-'.$now->format('YY-mm-dd'); |
|
| 68 | 68 | if (null === $responseBody = $this->cache->get($key)) { |
| 69 | 69 | $response = $this->performRequest(); |
| 70 | 70 | if ($this->cacheTimeInSeconds === self::CACHE_UNTIL_MIDNIGHT) { |