Improved build log, added more debug info

This commit is contained in:
Dmitry Khomutov 2016-07-10 14:05:10 +06:00
commit 82e73281e4
43 changed files with 247 additions and 87 deletions

View file

@ -10,6 +10,7 @@
namespace PHPCI\Helper;
use b8\Config;
use PHPCI\Builder;
/**
* Helper class for sending emails using PHPCI's email configuration.
@ -98,11 +99,15 @@ class Email
/**
* Send the email.
*
* @param Builder $phpci
*
* @return bool|int
*/
public function send()
public function send(Builder $phpci)
{
$smtpServer = $this->config->get('phpci.email_settings.smtp_address');
$phpci->logDebug(sprintf("SMTP: '%s'", !empty($smtpServer) ? 'true' : 'false'));
if (empty($smtpServer)) {
return $this->sendViaMail();