diff --git a/.php_cs b/.php_cs index 9dfc128f7605..33c6ee25511b 100644 --- a/.php_cs +++ b/.php_cs @@ -4,6 +4,7 @@ $finder = Symfony\Component\Finder\Finder::create() ->notPath('vendor') ->notPath('bootstrap') ->notPath('storage') + ->notPath('node_modules') ->in(__DIR__) ->name('*.php') ->notName('*.blade.php'); diff --git a/app/Http/Requests/Payments/PaymentWebhookRequest.php b/app/Http/Requests/Payments/PaymentWebhookRequest.php index 81b44bcfd1b0..f4704559aac8 100644 --- a/app/Http/Requests/Payments/PaymentWebhookRequest.php +++ b/app/Http/Requests/Payments/PaymentWebhookRequest.php @@ -35,9 +35,9 @@ class PaymentWebhookRequest extends Request /** * Resolve company gateway. - * - * @param mixed $id - * @return null|\App\Models\CompanyGateway + * + * @param mixed $id + * @return null|\App\Models\CompanyGateway */ public function getCompanyGateway(): ?CompanyGateway { @@ -46,9 +46,9 @@ class PaymentWebhookRequest extends Request /** * Resolve payment hash. - * - * @param string $hash - * @return null|\App\Http\Requests\Payments\PaymentHash + * + * @param string $hash + * @return null|\App\Http\Requests\Payments\PaymentHash */ public function getPaymentHash(): ?PaymentHash { @@ -59,8 +59,8 @@ class PaymentWebhookRequest extends Request /** * Resolve possible payment in the request. - * - * @return null|\App\Models\Payment + * + * @return null|\App\Models\Payment */ public function getPayment(): ?Payment { @@ -71,8 +71,8 @@ class PaymentWebhookRequest extends Request /** * Resolve client from payment hash. - * - * @return null|\App\Models\Client + * + * @return null|\App\Models\Client */ public function getClient(): ?Client { @@ -83,8 +83,8 @@ class PaymentWebhookRequest extends Request /** * Resolve company from company_key parameter. - * - * @return null|\App\Models\Company + * + * @return null|\App\Models\Company */ public function getCompany(): ?Company { diff --git a/app/PaymentDrivers/CheckoutCom/CreditCard.php b/app/PaymentDrivers/CheckoutCom/CreditCard.php index d56acdc3c7ad..f5b51eb52b09 100644 --- a/app/PaymentDrivers/CheckoutCom/CreditCard.php +++ b/app/PaymentDrivers/CheckoutCom/CreditCard.php @@ -13,7 +13,6 @@ namespace App\PaymentDrivers\CheckoutCom; use App\Http\Requests\ClientPortal\Payments\PaymentResponseRequest; -use App\Models\GatewayType; use App\PaymentDrivers\CheckoutComPaymentDriver; use Checkout\Library\Exceptions\CheckoutHttpException; use Checkout\Models\Payments\IdSource; diff --git a/app/PaymentDrivers/CheckoutComPaymentDriver.php b/app/PaymentDrivers/CheckoutComPaymentDriver.php index 0a55c3703101..9c0ff224eb12 100644 --- a/app/PaymentDrivers/CheckoutComPaymentDriver.php +++ b/app/PaymentDrivers/CheckoutComPaymentDriver.php @@ -13,14 +13,11 @@ namespace App\PaymentDrivers; use App\Http\Requests\Payments\PaymentWebhookRequest; -use App\Jobs\Util\SystemLogger; use App\Models\ClientGatewayToken; use App\Models\Company; -use App\Models\CompanyGateway; use App\Models\GatewayType; use App\Models\Payment; use App\Models\PaymentHash; -use App\Models\PaymentType; use App\Models\SystemLog; use App\PaymentDrivers\CheckoutCom\CreditCard; use App\PaymentDrivers\CheckoutCom\Utilities;