Driver_None   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 21
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A send() 0 9 1
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