Conditions | 3 |
Paths | 3 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
27 | public function getBody() |
||
28 | { |
||
29 | $body = $this->request->getBody(); |
||
30 | |||
31 | if ($this->fields !== null) { |
||
32 | $fields = $this->fields->getFields(); |
||
33 | |||
34 | if (is_array($fields)) { |
||
35 | $fields = implode(' ', $fields); |
||
36 | } |
||
37 | |||
38 | $body[FieldsInterface::NAME] = $fields; |
||
39 | } |
||
40 | |||
41 | return $body; |
||
42 | } |
||
43 | |||
52 |