Total Complexity | 3 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | class Symfony extends Base implements \Aimeos\Base\Mail\Iface |
||
|
|||
21 | { |
||
22 | private \Closure $closure; |
||
23 | |||
24 | /** |
||
25 | * Initializes the instance of the class. |
||
26 | * |
||
27 | * @param \Closure $closure Closure generating TYPO3 mail message objects |
||
28 | */ |
||
29 | public function __construct( \Closure $closure ) |
||
30 | { |
||
31 | $this->closure = $closure; |
||
32 | } |
||
33 | |||
34 | |||
35 | /** |
||
36 | * Creates a new e-mail message object. |
||
37 | * |
||
38 | * @param string $charset Default charset of the message |
||
39 | * @return \Aimeos\Base\Mail\Message\Iface E-mail message object |
||
40 | */ |
||
41 | public function create( string $charset = 'UTF-8' ) : \Aimeos\Base\Mail\Message\Iface |
||
42 | { |
||
43 | $closure = $this->closure; |
||
44 | return new \Aimeos\Base\Mail\Message\Symfony( $closure(), new \Symfony\Component\Mime\Email(), $charset ); |
||
45 | } |
||
46 | |||
47 | |||
48 | /** |
||
49 | * Sends the e-mail message to the mail server. |
||
50 | * |
||
51 | * @param \Aimeos\Base\Mail\Message\Iface $message E-mail message object |
||
52 | */ |
||
53 | public function send( \Aimeos\Base\Mail\Message\Iface $message ) : Iface |
||
59 | } |
||
60 | } |
||
61 |
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