php-cs-fixer

This commit is contained in:
Benjamin Beganović 2020-12-07 14:56:23 +01:00
parent 5c89fdab02
commit a92d38ae06
4 changed files with 13 additions and 16 deletions

View File

@ -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');

View File

@ -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
{

View File

@ -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;

View File

@ -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;