Showing 4 of 6 total issues
Method getErrors
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getErrors(): array
{
$errors = [];
$errors[1]['title'] = 'INVALID_RECIPIENT_NUMBER';
$errors[1]['desc'] = 'the string you presented as recipient numbers are not valid phone numbers, please check them again';
Method send
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function send(): bool
{
try {
if ($this->message->usesTemplate()) {
$template = $this->message->getTemplate();
Method register
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function register(): void
{
$this->mergeConfigFiles();
$this->app->register(RouteServiceProvider::class);
Avoid too many return
statements within this method. Open
Open
return new Avanak($config);