Driver_None::send()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 2
dl 0
loc 9
rs 9.6666
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * Provides mail functionality as a mock-up
5
 *
6
 * PHP Version 5
7
 *
8
 * @category  Core
9
 * @package   Mail
10
 * @author    Hans-Joachim Piepereit <[email protected]>
11
 * @copyright 2013 cSphere Team
12
 * @license   http://opensource.org/licenses/bsd-license Simplified BSD License
13
 * @link      http://www.csphere.eu
14
 **/
15
16
namespace csphere\core\mail;
17
18
/**
19
 * Provides mail functionality as a mock-up
20
 *
21
 * @category  Core
22
 * @package   Mail
23
 * @author    Hans-Joachim Piepereit <[email protected]>
24
 * @copyright 2013 cSphere Team
25
 * @license   http://opensource.org/licenses/bsd-license Simplified BSD License
26
 * @link      http://www.csphere.eu
27
 **/
28
29
class Driver_None extends Base
30
{
31
    /**
32
     * Sends the prepared content to a given email
33
     *
34
     * @param string  $email Email target
35
     * @param boolean $clear Defaults to true which keeps mail data
36
     *
37
     * @return boolean
38
     **/
0 ignored issues
show
Coding Style introduced by
There must be no blank lines after the function comment
Loading history...
39
40
    public function send($email, $clear = true)
41
    {
42
        // Log mail and handle clear status
43
        $this->log($email, false);
44
45
        $this->clear($clear);
46
47
        return true;
48
    }
49
}
50