Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | public function createOne($data) |
||
33 | { |
||
34 | /** |
||
35 | * @var Row $row |
||
36 | */ |
||
37 | $row = $this->getTable()->create(); |
||
38 | |||
39 | $data = $this->filterData($data); |
||
40 | |||
41 | $row->setFromArray($data); |
||
42 | |||
43 | /** |
||
44 | * Process HTTP File |
||
45 | */ |
||
46 | $row = Service::upload($row, Request::getFile('file')); |
||
47 | |||
48 | return $row->save(); |
||
49 | } |
||
51 |