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

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinGab authored and actions-user committed Feb 13, 2021
1 parent 101552e commit dd2cf57
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Traits/HasMangopayUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function mangopayUser(): User
{
$api = $this->mangopayApi();
$userId = $this->mangopayUserId();
if (!$userId) {
if (! $userId) {
throw MangopayUserException::mangopayUserIdNotFound(get_class($this));
}

Expand Down Expand Up @@ -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));
}

Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -308,7 +308,7 @@ protected function validateLegalMangopayUser(): bool
]);
}

return !Validator::make($data, $rules)->fails();
return ! Validator::make($data, $rules)->fails();
}

public function validateMangopayUser(): bool
Expand All @@ -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();
Expand Down Expand Up @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand Down

0 comments on commit dd2cf57

Please sign in to comment.