Total Complexity | 5 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
21 | class Zend implements \Aimeos\MW\Mail\Iface |
||
22 | { |
||
23 | private $object; |
||
24 | private $transport; |
||
25 | |||
26 | |||
27 | /** |
||
28 | * Initializes the instance of the class. |
||
29 | * |
||
30 | * @param \Zend_Mail $object Zend mail object |
||
31 | * @param \Zend_Mail_Transport_Base|null $transport Mail transport object |
||
32 | */ |
||
33 | public function __construct( \Zend_Mail $object, \Zend_Mail_Transport_Base $transport = null ) |
||
37 | } |
||
38 | |||
39 | |||
40 | /** |
||
41 | * Creates a new e-mail message object. |
||
42 | * |
||
43 | * @param string $charset Default charset of the message |
||
44 | * @return \Aimeos\MW\Mail\Message\Iface E-mail message object |
||
45 | */ |
||
46 | public function createMessage( $charset = 'UTF-8' ) |
||
47 | { |
||
48 | return new \Aimeos\MW\Mail\Message\Zend( clone $this->object ); |
||
49 | } |
||
50 | |||
51 | |||
52 | /** |
||
53 | * Sends the e-mail message to the mail server. |
||
54 | * |
||
55 | * @param \Aimeos\MW\Mail\Message\Iface $message E-mail message object |
||
56 | */ |
||
57 | public function send( \Aimeos\MW\Mail\Message\Iface $message ) |
||
58 | { |
||
59 | $message->getObject()->send( $this->transport ); |
||
60 | } |
||
61 | |||
62 | |||
63 | /** |
||
64 | * Clones the internal objects. |
||
65 | */ |
||
66 | public function __clone() |
||
70 | } |
||
71 | } |
||
72 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths