Various PSR12 code cleanup

This commit is contained in:
James Cole
2022-12-29 19:42:40 +01:00
parent 6cfdc58cb1
commit 56b9b66352
38 changed files with 763 additions and 691 deletions

View File

@@ -83,7 +83,7 @@ class AccountValidator
}
/**
* @param string $transactionType
* @param string $transactionType
*/
public function setTransactionType(string $transactionType): void
{
@@ -92,7 +92,7 @@ class AccountValidator
}
/**
* @param User $user
* @param User $user
*/
public function setUser(User $user): void
{
@@ -101,7 +101,7 @@ class AccountValidator
}
/**
* @param array $array
* @param array $array
*
* @return bool
*/
@@ -146,7 +146,7 @@ class AccountValidator
}
/**
* @param array $array
* @param array $array
*
* @return bool
*/
@@ -184,7 +184,7 @@ class AccountValidator
}
/**
* @param array $accountTypes
* @param array $accountTypes
*
* @return bool
*/
@@ -205,7 +205,7 @@ class AccountValidator
}
/**
* @param string $accountType
* @param string $accountType
*
* @return bool
*/
@@ -220,8 +220,8 @@ class AccountValidator
}
/**
* @param array $validTypes
* @param array $data
* @param array $validTypes
* @param array $data
*
* @return Account|null
*/
@@ -242,7 +242,7 @@ class AccountValidator
}
// find by iban
if (null !== $accountIban && '' !== (string) $accountIban) {
if (null !== $accountIban && '' !== (string)$accountIban) {
$first = $this->accountRepository->findByIbanNull($accountIban, $validTypes);
if ((null !== $first) && in_array($first->accountType->type, $validTypes, true)) {
return $first;
@@ -250,7 +250,7 @@ class AccountValidator
}
// find by number
if (null !== $accountNumber && '' !== (string) $accountNumber) {
if (null !== $accountNumber && '' !== (string)$accountNumber) {
$first = $this->accountRepository->findByAccountNumber($accountNumber, $validTypes);
if ((null !== $first) && in_array($first->accountType->type, $validTypes, true)) {
return $first;
@@ -258,7 +258,7 @@ class AccountValidator
}
// find by name:
if ('' !== (string) $accountName) {
if ('' !== (string)$accountName) {
return $this->accountRepository->findByName($accountName, $validTypes);
}