Fixes for codacy (#3150)

This commit is contained in:
David Bomba 2019-12-16 22:53:16 +11:00 committed by GitHub
parent 104e8728c2
commit 2895e6df2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View File

@ -31,15 +31,13 @@ trait InvoiceEmailBuilder
public function getEmailData($reminder_template = null) :array public function getEmailData($reminder_template = null) :array
{ {
//client //client
$client = $this->client; //$client = $this->client;
if(!$reminder_template) if(!$reminder_template)
$reminder_template = $this->calculateTemplate(); $reminder_template = $this->calculateTemplate();
//Need to determine which email template we are producing //Need to determine which email template we are producing
$email_data = $this->generateTemplateData($reminder_template); return $this->generateTemplateData($reminder_template);
return $email_data;
} }

View File

@ -55,7 +55,7 @@ class InvoiceEmailTest extends TestCase
$message_array['title'] = &$message_array['subject']; $message_array['title'] = &$message_array['subject'];
$message_array['footer'] = 'The Footer'; $message_array['footer'] = 'The Footer';
$template_style = $this->client->getSetting('email_style'); // $template_style = $this->client->getSetting('email_style');
$template_style = 'light'; $template_style = 'light';
//iterate through the senders list and send from here //iterate through the senders list and send from here