Skip to content

Commit

Permalink
Use print instead of echo
Browse files Browse the repository at this point in the history
- use of echo is discouraged according to codacy
  • Loading branch information
gregcorbett committed Aug 26, 2021
1 parent 7a55ff8 commit f64884e
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("<!--\n");
print( "Sending mail disabled, but would have sent:\n");
print( "$additionalHeaders\n");
print( "To: $to\n");
print( "Subject: $subject\n");
print( "\n$message\n");
print( "\nAdditional Parameters: $additionalParameters\n");
print( "-->\n");
return True;
}
}

0 comments on commit f64884e

Please sign in to comment.