mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 09:54:34 -04:00
Fixes for codacy (#3150)
This commit is contained in:
parent
104e8728c2
commit
2895e6df2d
@ -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;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user