From dd2cf5772f9fb17921426dd34c7464e9a0f5f285 Mon Sep 17 00:00:00 2001 From: QuentinGab Date: Sat, 13 Feb 2021 16:03:16 +0000 Subject: [PATCH] Fix styling --- src/Traits/HasMangopayUser.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Traits/HasMangopayUser.php b/src/Traits/HasMangopayUser.php index 7a9f3b8..97160c1 100644 --- a/src/Traits/HasMangopayUser.php +++ b/src/Traits/HasMangopayUser.php @@ -61,7 +61,7 @@ public function mangopayUser(): User { $api = $this->mangopayApi(); $userId = $this->mangopayUserId(); - if (!$userId) { + if (! $userId) { throw MangopayUserException::mangopayUserIdNotFound(get_class($this)); } @@ -96,7 +96,7 @@ public function createMangopayUser(array $data = []) public function updateMangopayUser(array $data = []) { - if (!$this->hasMangopayUser()) { + if (! $this->hasMangopayUser()) { throw MangopayUserException::mangopayUserIdNotFound(get_class($this)); } @@ -246,7 +246,7 @@ protected function buildNaturalMangopayUserObject(array $data = []): UserNatural */ protected function validateNaturalMangopayUser(): bool { - return !Validator::make($this->buildMangopayUserData(), [ + return ! Validator::make($this->buildMangopayUserData(), [ 'Name' => 'string', 'Email' => 'email', 'HeadquartersAddress.AddressLine1' => 'string', @@ -308,7 +308,7 @@ protected function validateLegalMangopayUser(): bool ]); } - return !Validator::make($data, $rules)->fails(); + return ! Validator::make($data, $rules)->fails(); } public function validateMangopayUser(): bool @@ -321,7 +321,7 @@ public function validateMangopayUser(): bool public function mangopayKycDocuments($type = null, $status = null) { $mangopayUserId = $this->mangopayUserId(); - if (!$mangopayUserId) { + if (! $mangopayUserId) { throw MangopayUserException::mangopayUserIdNotFound(get_class($this)); } $api = $this->mangopayApi(); @@ -352,7 +352,7 @@ public function mangopayKycDocuments($type = null, $status = null) public function createMangopayKycDocument(string $type): KycDocument { $mangopayUserId = $this->mangopayUserId(); - if (!$mangopayUserId) { + if (! $mangopayUserId) { throw MangopayUserException::mangopayUserIdNotFound(get_class($this)); } $api = $this->mangopayApi(); @@ -375,7 +375,7 @@ public function createMangopayKycDocument(string $type): KycDocument public function createMangopayKycPage(int $kycDocumentId, $file): bool { $mangopayUserId = $this->mangopayUserId(); - if (!$mangopayUserId) { + if (! $mangopayUserId) { throw MangopayUserException::mangopayUserIdNotFound(get_class($this)); } $api = $this->mangopayApi(); @@ -399,7 +399,7 @@ public function createMangopayKycPage(int $kycDocumentId, $file): bool public function submitMangopayKycDocument(int $kycDocumentId): KycDocument { $mangopayUserId = $this->mangopayUserId(); - if (!$mangopayUserId) { + if (! $mangopayUserId) { throw MangopayUserException::mangopayUserIdNotFound(get_class($this)); } $api = $this->mangopayApi();