Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
44 | protected function createRawResponseFromArray(array $request) |
||
45 | { |
||
46 | $rawResponse = ''; |
||
47 | $arrayCount = count($request); |
||
48 | $count = 1; |
||
49 | foreach ($request as $key => $value) { |
||
50 | $rawResponse .= $key . '=' . $value; |
||
51 | if ($count < $arrayCount) { |
||
52 | $rawResponse .= "\n"; |
||
53 | } |
||
54 | $count++; |
||
55 | } |
||
56 | |||
57 | return $rawResponse; |
||
58 | } |
||
81 |