Classes

Coverage Distribution

Complexity

Insufficient Coverage

Class Coverage
App\Action\Admin\CreateAdminTransactionAction0%
App\Action\Admin\CreateInvestorAccountAction0%
App\Action\Loan\CheckEligibilityAction0%
App\Action\Loan\GetActiveLoansAction0%
App\Action\Loan\GetLoanAction0%
App\Action\Loan\GetMyLoansAction0%
App\Action\Loan\RequestLoanAction0%
App\Action\SuperAdmin\DeleteErrorLogsAction0%
App\Action\SuperAdmin\GetErrorLogAction0%
App\Action\SuperAdmin\GetSystemSettingsAction0%
App\Action\SuperAdmin\ListErrorLogsAction0%
App\Action\SuperAdmin\ResolveErrorLogAction0%
App\Action\SuperAdmin\UpdateSystemSettingAction0%
App\Domain\ErrorLog\Data\ErrorLogData0%
App\Domain\ErrorLog\Data\ErrorLogFilterData0%
App\Domain\Loan\Data\LoanData0%
App\Domain\Loan\Data\LoanEligibilityData0%
App\Domain\Loan\Repository\LoanRepository0%
App\Domain\Loan\Service\LoanService0%
App\Domain\SystemSettings\Service\SystemSettingsService0%
App\Domain\Transaction\Service\TransactionService0%
App\Domain\Auth\Service\RegistrationService0%
App\Domain\Auth\Data\TokenData14%
App\Domain\ErrorLog\Repository\ErrorLogRepository16%
App\Action\Auth\RegisterAction33%
App\Domain\SystemSettings\Repository\SystemSettingsRepository41%
App\Domain\SystemSettings\Data\SystemSettingData47%
App\Domain\Transaction\Repository\TransactionRepository58%
App\Domain\ErrorLog\Service\ErrorLogService59%
App\Middleware\ErrorLoggingMiddleware77%
App\Domain\Audit\AuditService86%
App\Middleware\JwtAuthMiddleware87%
App\Domain\Auth\Repository\AuthRepository88%
App\Action\Investor\UpdateInvestorStatusAction89%
App\Action\Investor\UpdateKycStatusAction89%

Methods

Coverage Distribution

Complexity

Insufficient Coverage

Method Coverage
__construct0%
__invoke0%
__construct0%
__invoke0%
handleCompleteRegistration0%
validateCompleteRegistrationInput0%
getClientIp0%
__construct0%
__invoke0%
__construct0%
__invoke0%
__construct0%
__invoke0%
__construct0%
__invoke0%
__construct0%
__invoke0%
__construct0%
__invoke0%
__construct0%
__invoke0%
__construct0%
__invoke0%
__construct0%
__invoke0%
__construct0%
__invoke0%
__construct0%
__invoke0%
jsonSerialize0%
logImpersonationEnd0%
toArray0%
registerComplete0%
validateAllInput0%
validateUsername0%
validateEmail0%
validatePassword0%
validateRequiredString0%
validateOptionalString0%
validateDateOfBirth0%
validatePhone0%
validateState0%
validateZipCode0%
investorEmailExists0%
createInvestor0%
createAccount0%
generateAccountNumber0%
__construct0%
jsonSerialize0%
__construct0%
getOffset0%
findById0%
findAll0%
resolve0%
deleteByIds0%
getCountsByLevel0%
getUnresolvedCount0%
debug0%
info0%
notice0%
warning0%
error0%
critical0%
alert0%
emergency0%
getById0%
list0%
resolve0%
delete0%
getLogLevels0%
__construct0%
fromRow0%
toArray0%
__construct0%
fromRow0%
toArray0%
__construct0%
checkEligibility0%
createActiveLoan0%
generatePaymentSchedule0%
findById0%
findByInvestorId0%
findActive0%
getConfig0%
getPaymentSchedule0%
getInvestorAccountId0%
__construct0%
checkEligibility0%
requestLoan0%
calculateLoanTerms0%
getLoan0%
getInvestorLoans0%
getActiveLoans0%
getConfig0%
getPaymentSchedule0%
getValidTerms0%
getValue0%
jsonSerialize0%
findAll0%
update0%
__construct0%
getAll0%
getByKey0%
update0%
getLogLevelThreshold0%
updateLogLevelThreshold0%
validateSetting0%
create0%
getAccountStatus0%
getAccountAvailableBalance0%
__construct0%
createTransaction0%
getValidTypes0%
formatStackTrace55%
generateUniqueAccountNumber55%
getClientIp62%
getClientIp62%
buildContext63%
generateUniqueAccountNumber69%
sanitize71%
determineLogLevel71%
updateInvestor75%
__invoke80%
getAccountSummary80%
extractErrorCode80%
setContext81%
getTotalAccounts83%
getTotalBalance83%
freezeAccount85%
unfreezeAccount85%
getStats85%
emailExists85%
usernameExists85%
revokeRefreshToken85%
revokeAllUserTokens85%
cleanupExpiredTokens85%
updateLastLogin85%
incrementFailedLoginAttempts85%
emailExists85%
getAccountBalance85%
getAllAccountsWithInvestors85%
emailExistsInUsers85%
emailExistsInInvestors85%
generateTransactionDescription85%
getLogLevelThreshold85%
accountExists85%
getInvestorDetail87%
getPasswordHash87%
isAccountLocked87%
findInvestorById87%
findInvestorByEmail87%
findInvestorByUserId87%
updateInvestorStatus87%
logAccountStatusChange88%
logImpersonation88%
__invoke88%
__invoke88%
updateInterestRate88%
updateLoanToValueRatio88%
getUserActivity88%
findUserByEmail88%
findUserByUsername88%
findUserById88%
findSessionByRefreshToken88%
getAccountById88%
findByKey88%
findById88%

Project Risks

Method CRAP
findAll702
__construct210
validateSetting90
createTransaction90
registerComplete72
__invoke56
findById56
requestLoan56
__invoke42
__invoke42
validatePassword42
__construct42
getClientIp30
validateUsername30
validateDateOfBirth30
fromRow30
__invoke20
__invoke20
validateEmail20
validateRequiredString20
generateAccountNumber20
update20
determineLogLevel15
buildContext13
validateCompleteRegistrationInput12
__invoke12
validateOptionalString12
validatePhone12
validateState12
validateZipCode12
resolve12
deleteByIds12
getCountsByLevel12
checkEligibility12
findById12
findByInvestorId12
findActive12
getConfig12
getInvestorAccountId12
findAll12
update12
create12
getAccountStatus12
getAccountAvailableBalance12
extractErrorCode9
sanitize6
getClientIp6
getClientIp6
setContext6
handleCompleteRegistration6
__invoke6
investorEmailExists6
createInvestor6
createAccount6
getUnresolvedCount6
createActiveLoan6
generatePaymentSchedule6
getPaymentSchedule6
getLoan6
updateLogLevelThreshold6
generateTransactionDescription5
updateInvestorStatus5
logAccountStatusChange5
generateUniqueAccountNumber4
updateInvestor4
updateInterestRate4
updateLoanToValueRatio4
generateUniqueAccountNumber3
getTotalAccounts3
getTotalBalance3
freezeAccount3
unfreezeAccount3
getInvestorDetail3
getPasswordHash3
findInvestorById3
findInvestorByEmail3
findInvestorByUserId3
__invoke3
__invoke3
findUserByEmail3
findUserByUsername3
findUserById3
findSessionByRefreshToken3
getAccountById3
findByKey3
findById3
formatStackTrace2
__invoke2
getAccountSummary2
logImpersonation2
getStats2
getUserActivity2
emailExists2
usernameExists2
revokeRefreshToken2
revokeAllUserTokens2
cleanupExpiredTokens2
updateLastLogin2
incrementFailedLoginAttempts2
isAccountLocked2
emailExists2
getAccountBalance2
getAllAccountsWithInvestors2
emailExistsInUsers2
emailExistsInInvestors2
getLogLevelThreshold2
accountExists2