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 Apr 21, 2021
1 parent e1ccb33 commit aad266b
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/Traits/HasMangopayUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function mangopayUserPivot()
*/
public function hasMangopayUser(): bool
{
return !!$this->mangopayUserPivot;
return ! ! $this->mangopayUserPivot;
}

public function scopeHasMangopayUser(Builder $query, $value): Builder
Expand All @@ -76,7 +76,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 @@ -112,7 +112,7 @@ public function createMangopayUser(array $data = [])
public function updateMangopayUser(array $data = [])
{
$pivot = $this->mangopayUserPivot();
if (!$pivot) {
if (! $pivot) {
throw MangopayUserException::mangopayUserIdNotFound(get_class($this));
}

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

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

public function validateMangopayUser(): bool
Expand All @@ -348,7 +348,7 @@ public function validateMangopayUser(): bool
public function mangopayKycDocuments($type = null, $status = null): Collection
{
$mangopayUserId = $this->mangopayUserId();
if (!$mangopayUserId) {
if (! $mangopayUserId) {
throw MangopayUserException::mangopayUserIdNotFound(get_class($this));
}
$api = $this->mangopayApi();
Expand Down Expand Up @@ -380,7 +380,7 @@ public function mangopayKycDocuments($type = null, $status = null): Collection
public function getMangopayKycDocument($kycDocumentId): KycDocument
{
$mangopayUserId = $this->mangopayUserId();
if (!$mangopayUserId) {
if (! $mangopayUserId) {
throw MangopayUserException::mangopayUserIdNotFound(get_class($this));
}
$api = $this->mangopayApi();
Expand All @@ -404,7 +404,7 @@ public function getMangopayKycDocument($kycDocumentId): KycDocument
public function createMangopayKycDocument(string $type): KycDocument
{
$mangopayUserId = $this->mangopayUserId();
if (!$mangopayUserId) {
if (! $mangopayUserId) {
throw MangopayUserException::mangopayUserIdNotFound(get_class($this));
}
$api = $this->mangopayApi();
Expand All @@ -427,7 +427,7 @@ public function createMangopayKycDocument(string $type): KycDocument
public function createMangopayKycPage(int $kycDocumentId, string $filePath): bool
{
$mangopayUserId = $this->mangopayUserId();
if (!$mangopayUserId) {
if (! $mangopayUserId) {
throw MangopayUserException::mangopayUserIdNotFound(get_class($this));
}
$api = $this->mangopayApi();
Expand All @@ -448,7 +448,7 @@ public function createMangopayKycPage(int $kycDocumentId, string $filePath): boo
public function submitMangopayKycDocument(int $kycDocumentId): KycDocument
{
$mangopayUserId = $this->mangopayUserId();
if (!$mangopayUserId) {
if (! $mangopayUserId) {
throw MangopayUserException::mangopayUserIdNotFound(get_class($this));
}
$api = $this->mangopayApi();
Expand All @@ -474,7 +474,7 @@ public function submitMangopayKycDocument(int $kycDocumentId): KycDocument
public function createMangopayUboDeclaration(): UboDeclaration
{
$mangopayUserId = $this->mangopayUserId();
if (!$mangopayUserId) {
if (! $mangopayUserId) {
throw MangopayUserException::mangopayUserIdNotFound(get_class($this));
}
$api = $this->mangopayApi();
Expand All @@ -495,7 +495,7 @@ public function createMangopayUboDeclaration(): UboDeclaration
public function createMangopayUbo($uboDeclarationId, array $data): Ubo
{
$mangopayUserId = $this->mangopayUserId();
if (!$mangopayUserId) {
if (! $mangopayUserId) {
throw MangopayUserException::mangopayUserIdNotFound(get_class($this));
}
$api = $this->mangopayApi();
Expand Down Expand Up @@ -534,7 +534,7 @@ public function createMangopayUbo($uboDeclarationId, array $data): Ubo
public function updateMangopayUbo($uboDeclarationId, array $data): Ubo
{
$mangopayUserId = $this->mangopayUserId();
if (!$mangopayUserId) {
if (! $mangopayUserId) {
throw MangopayUserException::mangopayUserIdNotFound(get_class($this));
}
$api = $this->mangopayApi();
Expand Down Expand Up @@ -582,7 +582,7 @@ public function updateMangopayUbo($uboDeclarationId, array $data): Ubo
public function submitMangopayUboDeclaration($uboDeclarationId): UboDeclaration
{
$mangopayUserId = $this->mangopayUserId();
if (!$mangopayUserId) {
if (! $mangopayUserId) {
throw MangopayUserException::mangopayUserIdNotFound(get_class($this));
}
$api = $this->mangopayApi();
Expand Down Expand Up @@ -620,7 +620,7 @@ public function getMangopayUboDeclaration($uboDeclarationId): UboDeclaration
public function mangopayUboDeclarations(): Collection
{
$mangopayUserId = $this->mangopayUserId();
if (!$mangopayUserId) {
if (! $mangopayUserId) {
throw MangopayUserException::mangopayUserIdNotFound(get_class($this));
}
$api = $this->mangopayApi();
Expand Down

0 comments on commit aad266b

Please sign in to comment.