Skip to content

Commit dd8a877

Browse files
committed
Fix PSR2 errors
1 parent 233bddb commit dd8a877

File tree

7 files changed

+19
-14
lines changed

7 files changed

+19
-14
lines changed

src/Omnipay/Ukash/Gateway.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,5 +133,4 @@ public function fetchTransaction(array $parameters = array())
133133
{
134134
return $this->createRequest('\Omnipay\Ukash\Message\FetchTransactionRequest', $parameters);
135135
}
136-
137136
}

src/Omnipay/Ukash/Message/AbstractRequest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,5 +139,4 @@ public function sendRequest($method, $action, $data = null)
139139

140140
return $httpResponse->getBody(true);
141141
}
142-
143142
}

src/Omnipay/Ukash/Message/CompletePurchaseRequest.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,14 @@
44
/**
55
* Ukash Complete Purchase Request
66
*
7-
* Once the consumer has completed his transaction, the system will notify the merchant by doing an HTTP POST to the notification URL.
7+
* Once the consumer has completed his transaction, the system will notify the merchant
8+
* by doing an HTTP POST to the notification URL.
89
* The following values will be sent to the merchant, via HTTP POST.
10+
*
11+
* @author Alexander Fedra <[email protected]>
12+
* @copyright 2014 DerCoder
13+
* @license http://opensource.org/licenses/mit-license.php MIT
14+
* @version 1.0.0
915
*/
1016
class CompletePurchaseRequest extends FetchTransactionRequest
1117
{

src/Omnipay/Ukash/Message/FetchTransactionRequest.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,14 @@
66
*
77
* The merchant can verify the transaction status by making a HTTP POST Request to the Transaction status web method.
88
* The method will return a string value containing a URL encoded XML string. The XML tags returned are listed below.
9+
*
10+
* @author Alexander Fedra <[email protected]>
11+
* @copyright 2014 DerCoder
12+
* @license http://opensource.org/licenses/mit-license.php MIT
13+
* @version 1.0.0
914
*/
1015
class FetchTransactionRequest extends AbstractRequest
1116
{
12-
1317
/**
1418
* Get the Response Security Token
1519
*
@@ -64,7 +68,7 @@ public function getData()
6468
public function sendData($data)
6569
{
6670
$response = $this->sendRequest('POST', 'RPPGateway/process.asmx/GetTransactionStatus', $data);
71+
6772
return new FetchTransactionResponse($this, $response);
6873
}
69-
7074
}

src/Omnipay/Ukash/Message/FetchTransactionResponse.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
*/
1212
class FetchTransactionResponse extends Response
1313
{
14-
1514
/**
1615
* Get the total amount of the transfer as it was requested.
1716
*
@@ -39,7 +38,8 @@ public function getCurrency()
3938
* Transaction status/return code.
4039
* It determines whether the voucher was successfully redeemed or not.
4140
* A “0” means that the voucher was successfully redeemed.
42-
* Any other code will reflect an unsuccessful redemption due to an invalid voucher or an error.
41+
* Any other code will reflect an unsuccessful redemption due to an
42+
* invalid voucher or an error.
4343
*
4444
* 0 => Accepted
4545
* Redemption successful
@@ -48,7 +48,8 @@ public function getCurrency()
4848
* Redemption unsuccessful
4949
*
5050
* 99 => Failed
51-
* An error occurred during the processing of the transaction hence the system could not successfully complete the redemption of the voucher.
51+
* An error occurred during the processing of the transaction hence the system
52+
* could not successfully complete the redemption of the voucher.
5253
* Will also be returned if an invalid voucher number was supplied.
5354
*
5455
* @return string transaction code
@@ -77,5 +78,4 @@ public function getTransactionReference()
7778
{
7879
return (string) $this->data->UTID;
7980
}
80-
8181
}

src/Omnipay/Ukash/Message/PurchaseRequest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<?php
22
namespace Omnipay\Ukash\Message;
33

4-
use SimpleXMLElement;
5-
64
/**
75
* Ukash Request for UTID
86
*
@@ -202,13 +200,13 @@ public function getData()
202200
/**
203201
* Send the request with specified data
204202
*
205-
* @param mixed $data The data to send
203+
* @param mixed $data The data to send
206204
* @return PurchaseResponse
207205
*/
208206
public function sendData($data)
209207
{
210208
$response = $this->sendRequest('POST', 'RPPGateway/process.asmx/GetUniqueTransactionID', $data);
209+
211210
return new PurchaseResponse($this, $response);
212211
}
213-
214212
}

src/Omnipay/Ukash/Message/PurchaseResponse.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,4 @@ public function getRedirectData()
4343
{
4444
return null;
4545
}
46-
4746
}

0 commit comments

Comments
 (0)