From f422238fd7d92f931d1a57a24a341439ceb93343 Mon Sep 17 00:00:00 2001 From: Rosun Nadhiir Date: Thu, 9 Nov 2017 12:33:18 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Provider/CentralBankOfRepublicTurkeyProvider.php | 2 +- src/Util/StringUtil.php | 1 + tests/Tests/Provider/CurrencyLayerProviderTest.php | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Provider/CentralBankOfRepublicTurkeyProvider.php b/src/Provider/CentralBankOfRepublicTurkeyProvider.php index 92e3fa7..e1fc018 100644 --- a/src/Provider/CentralBankOfRepublicTurkeyProvider.php +++ b/src/Provider/CentralBankOfRepublicTurkeyProvider.php @@ -20,7 +20,7 @@ /** * Central Bank of Republic of Turkey (CBRT) provider. * - * @link http://tcmb.gov.tr + * @see http://tcmb.gov.tr * * @author Uğur Erkan */ diff --git a/src/Util/StringUtil.php b/src/Util/StringUtil.php index 06420a4..e50f9b3 100644 --- a/src/Util/StringUtil.php +++ b/src/Util/StringUtil.php @@ -71,6 +71,7 @@ public static function jsonToArray($string) if (JSON_ERROR_NONE !== json_last_error()) { $last = json_last_error(); + throw new \RuntimeException( 'Unable to parse JSON data: ' .(isset($jsonErrors[$last]) ? $jsonErrors[$last] : 'Unknown error') diff --git a/tests/Tests/Provider/CurrencyLayerProviderTest.php b/tests/Tests/Provider/CurrencyLayerProviderTest.php index a3240a1..03c309f 100644 --- a/tests/Tests/Provider/CurrencyLayerProviderTest.php +++ b/tests/Tests/Provider/CurrencyLayerProviderTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace Swap\Tests\Provider; use Swap\Model\CurrencyPair;