Applied fixes from StyleCI

This commit is contained in:
Manish Verma
2016-10-10 13:35:24 +00:00
committed by StyleCI Bot
parent 8943243c85
commit c64bc8c465
2 changed files with 2 additions and 4 deletions

View File

@@ -120,7 +120,6 @@ class MailController extends Controller
$mail = $mailbox->getMail($mailId); $mail = $mailbox->getMail($mailId);
try { try {
$mail = $mailbox->getMail($mailId); $mail = $mailbox->getMail($mailId);
} catch (\PhpImap\Exception $e) { } catch (\PhpImap\Exception $e) {
echo 'Connection error'; echo 'Connection error';
} }
@@ -172,7 +171,7 @@ class MailController extends Controller
} else { } else {
$subject = 'No Subject'; $subject = 'No Subject';
} }
$to = $mail->to; $to = $mail->to;
$fromname = $mail->fromName; $fromname = $mail->fromName;
$fromaddress = $mail->fromAddress; $fromaddress = $mail->fromAddress;

View File

@@ -52,7 +52,7 @@ class TicketWorkflowController extends Controller
if ($workflow) { if ($workflow) {
// get all the rules of workflow which has a foreign key of those workflow which are applied to creating any ticket from any source // get all the rules of workflow which has a foreign key of those workflow which are applied to creating any ticket from any source
$workflow_rules = WorkflowRules::where('workflow_id', '=', $workflow->id)->get(); $workflow_rules = WorkflowRules::where('workflow_id', '=', $workflow->id)->get();
foreach ($workflow_rules as $workflow_rule) { foreach ($workflow_rules as $workflow_rule) {
// checking for the workflow rules to which workflow rule type it is // checking for the workflow rules to which workflow rule type it is
if ($workflow_rule->matching_scenario == 'email') { if ($workflow_rule->matching_scenario == 'email') {
@@ -124,7 +124,6 @@ class TicketWorkflowController extends Controller
$ticket_settings_details = $this->applyActionCondition($workflows_email->id, $ticket_settings_details); $ticket_settings_details = $this->applyActionCondition($workflows_email->id, $ticket_settings_details);
} }
} elseif ($workflow_rule->matching_scenario == 'email_to') { } elseif ($workflow_rule->matching_scenario == 'email_to') {
foreach ($contact_details['email_to'] as $email_toaddress => $email_toname) { foreach ($contact_details['email_to'] as $email_toaddress => $email_toname) {
if ($rule_condition = $this->checkRuleCondition($email_toaddress, $workflow_rule->matching_relation, $workflow_rule->matching_value) == true) { if ($rule_condition = $this->checkRuleCondition($email_toaddress, $workflow_rule->matching_relation, $workflow_rule->matching_value) == true) {
$ticket_settings_details = $this->applyActionCondition($workflows_email->id, $ticket_settings_details); $ticket_settings_details = $this->applyActionCondition($workflows_email->id, $ticket_settings_details);