Skip to content

Commit

Permalink
Use print_r instead of echo
Browse files Browse the repository at this point in the history
- use of `echo` and `print` is discouraged according to codacy
  • Loading branch information
gregcorbett committed Aug 26, 2021
1 parent 7a55ff8 commit 3aabc41
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/Gocdb_Services/EmailService.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ private function getConfigSendEmail() {
}

private function mockMail($to, $subject, $message, $additionalHeaders = "", $additionalParameters = "") {
echo "<!--\n";
echo "Sending mail disabled, but would have sent:\n";
echo "$additionalHeaders\n";
echo "To: $to\n";
echo "Subject: $subject\n";
echo "\n$message\n";
echo "\nAdditional Parameters: $additionalParameters\n";
echo "-->\n";
print_r("<!--\n");
print_r( "Sending mail disabled, but would have sent:\n");
print_r( "$additionalHeaders\n");
print_r( "To: $to\n");
print_r( "Subject: $subject\n");
print_r( "\n$message\n");
print_r( "\nAdditional Parameters: $additionalParameters\n");
print_r( "-->\n");
return True;
}
}

0 comments on commit 3aabc41

Please sign in to comment.