Conditions | 4 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
77 | private function data() : array |
||
78 | { |
||
79 | if ($this->request->getContentType() === 'json') { |
||
80 | return json_decode($this->request->getContent(), true) ?: []; |
||
81 | } |
||
82 | |||
83 | if ($this->request->getContentType() === 'form') { |
||
84 | return $this->request->request->all(); |
||
85 | } |
||
86 | |||
87 | return []; |
||
88 | } |
||
90 |