Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
jwiegant authored and StyleCIBot committed Oct 7, 2021
1 parent a234c53 commit bf77842
Show file tree
Hide file tree
Showing 51 changed files with 79 additions and 28 deletions.
2 changes: 2 additions & 0 deletions src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* Class Application.
*
* @category Calls
*
* @author Job Wiegant <job@cloudmazing.nl>
* @license http://www.opensource.org/licenses/mit-license.html MIT License
*/
Expand All @@ -18,6 +19,7 @@ class Application extends BaseRequest
* Create a sandbox Application.
*
* @return Response\ApplicationResponse|Response\ErrorListResponse
*
* @throws Exception
*/
public function create()
Expand Down
11 changes: 6 additions & 5 deletions src/BaseRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Class BaseRequest.
*
* @category Calls
*
* @author Job Wiegant <job@cloudmazing.nl>
* @license http://www.opensource.org/licenses/mit-license.html MIT License
*/
Expand Down Expand Up @@ -62,8 +63,8 @@ public function __construct(
* Do a post request.
*
* @param Request\BaseRequest $baseRequest
*
* @return Response
*
* @throws Exception
*/
protected function postRequest(
Expand Down Expand Up @@ -103,8 +104,8 @@ protected function getHeaders(): array
* Get the API endpoint.
*
* @param Request\BaseRequest $baseRequest
*
* @return string
*
* @throws Exception
*/
protected function getEndPoint(Request\BaseRequest $baseRequest): string
Expand All @@ -122,8 +123,8 @@ protected function getEndPoint(Request\BaseRequest $baseRequest): string
* Perform a delete request.
*
* @param Request\BaseRequest $baseRequest
*
* @return Response
*
* @throws Exception
*/
protected function deleteRequest(
Expand All @@ -142,8 +143,8 @@ protected function deleteRequest(
* Perform a get request.
*
* @param Request\BaseRequest $baseRequest
*
* @return Response
*
* @throws Exception
*/
protected function getRequest(
Expand All @@ -163,8 +164,8 @@ protected function getRequest(
* @param Response $response
* @param string $responseClass
* @param int $status
*
* @return ErrorListResponse
*
* @throws Exception
*/
protected function checkResponse(
Expand Down
1 change: 1 addition & 0 deletions src/Controllers/TikkieNotificationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* Class TikkieNotificationController.
*
* @category Controller
*
* @author Job Wiegant <job@cloudmazing.nl>
* @license http://www.opensource.org/licenses/mit-license.html MIT License
*/
Expand Down
1 change: 1 addition & 0 deletions src/Events/TikkiePaymentEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* Class PaymentNotificationEvent.
*
* @category Event
*
* @author Job Wiegant <job@cloudmazing.nl>
* @license http://www.opensource.org/licenses/mit-license.html MIT License
*/
Expand Down
1 change: 1 addition & 0 deletions src/Events/TikkieRefundEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* Class RefundNotificationEvent.
*
* @category Event
*
* @author Job Wiegant <job@cloudmazing.nl>
* @license http://www.opensource.org/licenses/mit-license.html MIT License
*/
Expand Down
1 change: 1 addition & 0 deletions src/Facades/Tikkie.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

/**
* Class Tikkie.
*
* @method static Application application()
* @method static Payment payment()
* @method static PaymentRequest paymentRequest()
Expand Down
1 change: 1 addition & 0 deletions src/Notification/BaseNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* Class BaseNotification.
*
* @category Notification
*
* @author Job Wiegant <job@cloudmazing.nl>
* @license http://www.opensource.org/licenses/mit-license.html MIT License
*/
Expand Down
1 change: 1 addition & 0 deletions src/Notification/PaymentNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Class PaymentNotification.
*
* @category Notification
*
* @author Job Wiegant <job@cloudmazing.nl>
* @license http://www.opensource.org/licenses/mit-license.html MIT License
*/
Expand Down
1 change: 1 addition & 0 deletions src/Notification/RefundNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Class RefundNotification.
*
* @category Notification
*
* @author Job Wiegant <job@cloudmazing.nl>
* @license http://www.opensource.org/licenses/mit-license.html MIT License
*/
Expand Down
5 changes: 3 additions & 2 deletions src/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* Class Payment.
*
* @category Calls
*
* @author Job Wiegant <job@cloudmazing.nl>
* @license http://www.opensource.org/licenses/mit-license.html MIT License
*/
Expand All @@ -22,8 +23,8 @@ class Payment extends BaseRequest
*
* @param string $paymentRequestToken
* @param string $paymentToken
*
* @return Response\PaymentResponse|Response\ErrorListResponse
*
* @throws Exception
*/
public function get(
Expand Down Expand Up @@ -56,8 +57,8 @@ public function get(
* @param int $pageSize
* @param null $fromDateTime
* @param null $toDateTime
*
* @return Response\PaymentListResponse|Response\ErrorListResponse
*
* @throws Exception
*/
public function list(
Expand Down
7 changes: 4 additions & 3 deletions src/PaymentRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* Class PaymentRequest.
*
* @category Calls
*
* @author Job Wiegant <job@cloudmazing.nl>
* @license http://www.opensource.org/licenses/mit-license.html MIT License
*/
Expand All @@ -27,8 +28,8 @@ class PaymentRequest extends BaseRequest
* @param string $referenceId
* @param null $expiryDate
* @param float|null $amount
*
* @return Response\PaymentRequestResponse|Response\ErrorListResponse
*
* @throws Exception
*/
public function create(string $description,
Expand Down Expand Up @@ -77,8 +78,8 @@ public function create(string $description,
* @param int $pageSize
* @param null $fromDateTime
* @param null $toDateTime
*
* @return Response\PaymentRequestListResponse|Response\ErrorListResponse
*
* @throws Exception
*/
public function list(
Expand Down Expand Up @@ -110,8 +111,8 @@ public function list(
* Get a payment request.
*
* @param string $paymentRequestToken
*
* @return Response\PaymentRequestResponse|Response\ErrorListResponse
*
* @throws Exception
*/
public function get(string $paymentRequestToken)
Expand Down
5 changes: 3 additions & 2 deletions src/Refund.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* Class Refund.
*
* @category Calls
*
* @author Job Wiegant <job@cloudmazing.nl>
* @license http://www.opensource.org/licenses/mit-license.html MIT License
*/
Expand All @@ -24,8 +25,8 @@ class Refund extends BaseRequest
* @param string $description
* @param float $amount
* @param string $referenceId
*
* @return Response\RefundResponse|Response\ErrorListResponse
*
* @throws Exception
*/
public function create(
Expand Down Expand Up @@ -60,8 +61,8 @@ public function create(
* @param string $paymentRequestToken
* @param string $paymentToken
* @param string $refundToken
*
* @return Response\RefundResponse|Response\ErrorListResponse
*
* @throws Exception
*/
public function get(
Expand Down
1 change: 1 addition & 0 deletions src/Request/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Class Application.
*
* @category Request
*
* @author Job Wiegant <job@cloudmazing.nl>
* @license http://www.opensource.org/licenses/mit-license.html MIT License
*/
Expand Down
2 changes: 2 additions & 0 deletions src/Request/BaseRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* Class BaseRequest.
*
* @category Request
*
* @author Job Wiegant <job@cloudmazing.nl>
* @license http://www.opensource.org/licenses/mit-license.html MIT License
*/
Expand Down Expand Up @@ -98,6 +99,7 @@ protected function parseParameters(array $parameters): void
* Get the payload for the request.
*
* @return array
*
* @throws Exception
*/
public function getPayload(): array
Expand Down
1 change: 1 addition & 0 deletions src/Request/BaseRequestList.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* Class BaseRequestList.
*
* @category Request
*
* @author Job Wiegant <job@cloudmazing.nl>
* @license http://www.opensource.org/licenses/mit-license.html MIT License
*/
Expand Down
1 change: 1 addition & 0 deletions src/Request/PaymentItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Class PaymentItem.
*
* @category Request
*
* @author Job Wiegant <job@cloudmazing.nl>
* @license http://www.opensource.org/licenses/mit-license.html MIT License
*/
Expand Down
1 change: 1 addition & 0 deletions src/Request/PaymentList.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* Class PaymentList.
*
* @category Request
*
* @author Job Wiegant <job@cloudmazing.nl>
* @license http://www.opensource.org/licenses/mit-license.html MIT License
*/
Expand Down
1 change: 1 addition & 0 deletions src/Request/PaymentRequestCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* Class PaymentRequestCreate.
*
* @category Request
*
* @author Job Wiegant <job@cloudmazing.nl>
* @license http://www.opensource.org/licenses/mit-license.html MIT License
*/
Expand Down
1 change: 1 addition & 0 deletions src/Request/PaymentRequestItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Class PaymentRequestItem.
*
* @category Request
*
* @author Job Wiegant <job@cloudmazing.nl>
* @license http://www.opensource.org/licenses/mit-license.html MIT License
*/
Expand Down
1 change: 1 addition & 0 deletions src/Request/PaymentRequestList.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Class PaymentRequestList.
*
* @category Request
*
* @author Job Wiegant <job@cloudmazing.nl>
* @license http://www.opensource.org/licenses/mit-license.html MIT License
*/
Expand Down
5 changes: 3 additions & 2 deletions src/Request/RefundCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Class RefundCreate.
*
* @category Request
*
* @author Job Wiegant <job@cloudmazing.nl>
* @license http://www.opensource.org/licenses/mit-license.html MIT License
*/
Expand Down Expand Up @@ -83,7 +84,7 @@ public function getPaymentRequestToken(): string
/**
* Set the payment request token.
*
* @param string $paymentRequestToken
* @param string $paymentRequestToken
*/
public function setPaymentRequestToken(string $paymentRequestToken): void
{
Expand All @@ -103,7 +104,7 @@ public function getPaymentToken(): string
/**
* Set the payment token.
*
* @param string $paymentToken
* @param string $paymentToken
*/
public function setPaymentToken(string $paymentToken): void
{
Expand Down
1 change: 1 addition & 0 deletions src/Request/RefundItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Class RefundItem.
*
* @category Request
*
* @author Job Wiegant <job@cloudmazing.nl>
* @license http://www.opensource.org/licenses/mit-license.html MIT License
*/
Expand Down
1 change: 1 addition & 0 deletions src/Request/SubscriptionCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Class SubscriptionCreate.
*
* @category Request
*
* @author Job Wiegant <job@cloudmazing.nl>
* @license http://www.opensource.org/licenses/mit-license.html MIT License
*/
Expand Down
1 change: 1 addition & 0 deletions src/Request/SubscriptionDelete.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Class SubscriptionDelete.
*
* @category Request
*
* @author Job Wiegant <job@cloudmazing.nl>
* @license http://www.opensource.org/licenses/mit-license.html MIT License
*/
Expand Down
1 change: 1 addition & 0 deletions src/Response/ApplicationResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Class ApplicationResponse.
*
* @category Response
*
* @author Job Wiegant <job@cloudmazing.nl>
* @license http://www.opensource.org/licenses/mit-license.html MIT License
*/
Expand Down
3 changes: 2 additions & 1 deletion src/Response/BaseResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* Class BaseResponse.
*
* @category Response
*
* @author Job Wiegant <job@cloudmazing.nl>
* @license http://www.opensource.org/licenses/mit-license.html MIT License
*/
Expand Down Expand Up @@ -66,8 +67,8 @@ protected function parseParameters(array $parameters): void
/**
* @param $key
* @param $parameter
*
* @return Carbon|ErrorResponse|Collection|int
*
* @throws Exception
*/
protected function parseParameter(
Expand Down
1 change: 1 addition & 0 deletions src/Response/ErrorListResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* Class ErrorListResponse.
*
* @category Response
*
* @author Job Wiegant <job@cloudmazing.nl>
* @license http://www.opensource.org/licenses/mit-license.html MIT License
*/
Expand Down
1 change: 1 addition & 0 deletions src/Response/ErrorResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Class ErrorResponse.
*
* @category Response
*
* @author Job Wiegant <job@cloudmazing.nl>
* @license http://www.opensource.org/licenses/mit-license.html MIT License
*/
Expand Down
1 change: 1 addition & 0 deletions src/Response/PaymentListResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* Class PaymentListResponse.
*
* @category Response
*
* @author Job Wiegant <job@cloudmazing.nl>
* @license http://www.opensource.org/licenses/mit-license.html MIT License
*/
Expand Down
Loading

0 comments on commit bf77842

Please sign in to comment.