Skip to content

Commit

Permalink
style: fix cs issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mustapayev committed Dec 28, 2024
1 parent e259d3c commit 9152706
Show file tree
Hide file tree
Showing 184 changed files with 569 additions and 363 deletions.
1 change: 1 addition & 0 deletions config/pos_production.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* NOT! Bu dosya örnek amaçlıdır. Canlı ortamda kopyasını oluşturup, kopyasını kullanınız!
*/
Expand Down
1 change: 1 addition & 0 deletions src/Client/HttpClient.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
1 change: 1 addition & 0 deletions src/Crypt/AbstractCrypt.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
1 change: 1 addition & 0 deletions src/Crypt/AkbankPosCrypt.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
1 change: 1 addition & 0 deletions src/Crypt/CryptInterface.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
1 change: 1 addition & 0 deletions src/Crypt/EstPosCrypt.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
3 changes: 2 additions & 1 deletion src/Crypt/EstV3PosCrypt.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down Expand Up @@ -30,7 +31,7 @@ public function create3DHash(AbstractPosAccount $posAccount, array $formInputs):
* Hash string içine dahil edildiğinde hataya sebep oluyor,
* Payten tarafından hash içerisinde olmaması gerektiği teyidi alındı.
*/
if (\in_array(\strtolower($key), ['hash', 'encoding' , 'nationalidno'])) {
if (\in_array(\strtolower($key), ['hash', 'encoding' , 'nationalidno'])) {
unset($formInputs[$key]);
}
}
Expand Down
1 change: 1 addition & 0 deletions src/Crypt/GarantiPosCrypt.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
1 change: 1 addition & 0 deletions src/Crypt/InterPosCrypt.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
1 change: 1 addition & 0 deletions src/Crypt/KuveytPosCrypt.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
1 change: 1 addition & 0 deletions src/Crypt/NullCrypt.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
1 change: 1 addition & 0 deletions src/Crypt/PayFlexCPV4Crypt.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
1 change: 1 addition & 0 deletions src/Crypt/PayForPosCrypt.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
1 change: 1 addition & 0 deletions src/Crypt/PosNetCrypt.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
1 change: 1 addition & 0 deletions src/Crypt/PosNetV1PosCrypt.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
1 change: 1 addition & 0 deletions src/Crypt/ToslaPosCrypt.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?php

/**
* @license MIT
*/

namespace Mews\Pos\DataMapper\RequestDataMapper;

use Mews\Pos\Entity\Account\AbstractPosAccount;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down Expand Up @@ -284,8 +285,8 @@ public function create3DFormData(
?string $txType,
?string $gatewayURL,
?CreditCardInterface $creditCard = null,
array $extraData = []): array
{
array $extraData = []
): array {
return [
'gateway' => $extraData['CommonPaymentUrl'],
'method' => 'GET',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
3 changes: 2 additions & 1 deletion src/DataMapper/RequestDataMapper/PosNetRequestDataMapper.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down Expand Up @@ -407,7 +408,7 @@ public static function formatOrderId(string $orderId, int $padLength = null): st

if (\strlen($orderId) > $padLength) {
throw new InvalidArgumentException(\sprintf(
// Banka tarafindan belirlenen kisitlama
// Banka tarafindan belirlenen kisitlama
"Saglanan siparis ID'nin (%s) uzunlugu %d karakter. Siparis ID %d karakterden uzun olamaz!",
$orderId,
\strlen($orderId),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down Expand Up @@ -473,7 +474,7 @@ public static function formatOrderId(string $orderId, int $padLength = null): st

if (\strlen($orderId) > $padLength) {
throw new InvalidArgumentException(\sprintf(
// Banka tarafindan belirlenen kisitlama
// Banka tarafindan belirlenen kisitlama
"Saglanan siparis ID'nin (%s) uzunlugu %d karakter. Siparis ID %d karakterden uzun olamaz!",
$orderId,
\strlen($orderId),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down Expand Up @@ -466,13 +467,13 @@ private function mapSingleOrderHistoryTransaction(array $rawTx): array
$transaction['auth_code'] = $rawTx['authCode'];
if (PosInterface::PAYMENT_STATUS_PAYMENT_COMPLETED === $transaction['order_status']) {
if (\in_array(
$transaction['transaction_type'],
[
$transaction['transaction_type'],
[
PosInterface::TX_TYPE_PAY_AUTH,
PosInterface::TX_TYPE_PAY_POST_AUTH,
],
true,
)
true,
)
) {
$transaction['capture_amount'] = null === $rawTx['amount'] ? null : $this->formatAmount($rawTx['amount']);
$transaction['capture'] = $transaction['first_amount'] === $transaction['capture_amount'];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
1 change: 1 addition & 0 deletions src/Entity/Account/AbstractPosAccount.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
1 change: 1 addition & 0 deletions src/Entity/Account/AkbankPosAccount.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Entity/Account/EstPosAccount.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license
*/
Expand All @@ -7,5 +8,4 @@

class EstPosAccount extends AbstractPosAccount
{

}
2 changes: 2 additions & 0 deletions src/Entity/Account/GarantiPosAccount.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?php

/**
* @license MIT
*/

namespace Mews\Pos\Entity\Account;

/**
Expand Down
1 change: 1 addition & 0 deletions src/Entity/Account/InterPosAccount.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
1 change: 1 addition & 0 deletions src/Entity/Account/KuveytPosAccount.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @license MIT
*/
Expand Down
Loading

0 comments on commit 9152706

Please sign in to comment.