Skip to content

Commit 00d0f8e

Browse files
committed
Code formatting
1 parent e17f7a7 commit 00d0f8e

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

src/Message/AIMRefundRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ public function getData()
2828

2929
return $data;
3030
}
31-
}
31+
}

tests/Message/AIMRefundRequestTest.php

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function setUp()
1515
$this->request = new AIMRefundRequest($this->getHttpClient(), $this->getHttpRequest());
1616
}
1717

18-
public function testGetData_MissingCardInfo()
18+
public function testGetDataMissingCardInfo()
1919
{
2020
$this->request->initialize(
2121
array(
@@ -26,10 +26,12 @@ public function testGetData_MissingCardInfo()
2626

2727
try {
2828
$this->request->getData();
29-
} catch(InvalidRequestException $irex) {
30-
return $this->assertEquals($irex->getMessage(), "The card parameter is required");
31-
} catch(\Exception $e) {
32-
return $this->fail("Invalid exception was thrown: " . $e->getMessage());
29+
} catch (InvalidRequestException $irex) {
30+
$this->assertEquals($irex->getMessage(), "The card parameter is required");
31+
return;
32+
} catch (\Exception $e) {
33+
$this->fail("Invalid exception was thrown: " . $e->getMessage());
34+
return;
3335
}
3436

3537
$this->fail("InvalidRequestException should get thrown because card is missing");
@@ -48,11 +50,11 @@ public function testGetData()
4850
$data = $this->request->getData();
4951

5052
$this->assertEquals('refundTransaction', $data->transactionRequest->transactionType);
51-
$this->assertEquals('12.12', (string) $data->transactionRequest->amount[0]);
53+
$this->assertEquals('12.12', (string)$data->transactionRequest->amount[0]);
5254
$this->assertEquals('authnet-transaction-reference', $data->transactionRequest->refTransId);
5355

5456
$setting = $data->transactionRequest->transactionSettings->setting[0];
5557
$this->assertEquals('testRequest', $setting->settingName);
5658
$this->assertEquals('false', $setting->settingValue);
5759
}
58-
}
60+
}

0 commit comments

Comments
 (0)