Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | public function send() |
||
15 | { |
||
16 | if (!$this->check()) { |
||
17 | return; |
||
18 | } |
||
19 | |||
20 | $data = $this->data; |
||
21 | |||
22 | $data['exegutor'] = implode('<br>', array_map($data['exegutor'], function ($item) { |
||
|
|||
23 | return $item['wrap_left'] . $item['line'] . $item['wrap_right']; |
||
24 | })); |
||
25 | $data['lines'] = implode("\n", $data['lines']); |
||
26 | $data['storage'] = json_encode($data['storage']); |
||
27 | |||
28 | $model = $this->config['model']; |
||
29 | $model::create($data); |
||
30 | } |
||
32 |