From cafaf15622ffcc37816b225f916155f0399aec71 Mon Sep 17 00:00:00 2001 From: Jacques Marneweck Date: Sun, 25 Feb 2018 12:24:53 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Traits/SmartLoad.php | 31 +++++++++++++++---------------- tests/integration/BalanceTest.php | 4 ++-- 2 files changed, 17 insertions(+), 18 deletions(-) diff --git a/src/Traits/SmartLoad.php b/src/Traits/SmartLoad.php index 8ef4507..9215c3c 100644 --- a/src/Traits/SmartLoad.php +++ b/src/Traits/SmartLoad.php @@ -240,23 +240,22 @@ public function networks() * @param string $clientReference * @param string $smsRecipientMsisdn * @param string $deviceId - * @param integer $productId - * @param integer $amount - * @param boolean $pinless - * @param boolean $sendSms + * @param int $productId + * @param int $amount + * @param bool $pinless + * @param bool $sendSms * * -{ - "smartloadId": "27821234567", - "clientReference": "abc123", - "smsRecipientMsisdn": "27821234567", - "deviceId": "27821234567", - "productId": 62, - "amount": 12, - "pinless": true, - "sendSms": true -} - + * { + * "smartloadId": "27821234567", + * "clientReference": "abc123", + * "smsRecipientMsisdn": "27821234567", + * "deviceId": "27821234567", + * "productId": 62, + * "amount": 12, + * "pinless": true, + * "sendSms": true + * } */ public function prevend() { @@ -298,7 +297,7 @@ public function prevend() /** * Authenticate and retrieves a list of all available networks. * - * @param integer $id + * @param int $id * * @throws Exception * diff --git a/tests/integration/BalanceTest.php b/tests/integration/BalanceTest.php index 9e67798..3add3bb 100644 --- a/tests/integration/BalanceTest.php +++ b/tests/integration/BalanceTest.php @@ -69,7 +69,7 @@ public function testBalanaceNotOurDealerMsisdn() self::assertEquals('error', $response['status']); self::assertEquals(403, $response['http_code']); self::assertInstanceOf('\StdClass', $response['body']); - $expected = new \StdClass; + $expected = new \StdClass(); $expected->code = 400; $expected->message = 'The supplied Smartload ID is not registered to your account'; @@ -94,7 +94,7 @@ public function testBalanaceInvalidToken() self::assertEquals('error', $response['status']); self::assertEquals(401, $response['http_code']); self::assertInstanceOf('\StdClass', $response['body']); - $expected = new \StdClass; + $expected = new \StdClass(); $expected->responseDescription = 'Authorization denied. Token validation failed'; $expected->accessToken = null; $expected->tokenType = null;