fix psr2 violations in EmailPlugin

This commit is contained in:
steve.brazier 2014-02-27 14:04:08 +00:00
commit 6431ef501e

View file

@ -41,13 +41,13 @@ class Email implements \PHPCI\Plugin
*/
protected $fromAddress;
public function __construct(Builder $phpci,
Build $build,
\Swift_Mailer $mailer,
array $options = array()
public function __construct(
Builder $phpci,
Build $build,
\Swift_Mailer $mailer,
array $options = array()
)
{
) {
$this->phpci = $phpci;
$this->build = $build;
$this->options = $options;
@ -168,14 +168,14 @@ class Email implements \PHPCI\Plugin
protected function getCcAddresses()
{
$cc = array();
$ccAddresses = array();
if (isset($this->options['cc'])) {
foreach ($this->options['cc'] as $address) {
$cc[] = $address;
$ccAddresses[] = $address;
}
}
return $cc;
return $ccAddresses;
}
}
}