| Conditions | 2 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 2.003 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | 21 | public function updateSubscriberList(string $listHash, string $listName, string $description = '') |
|
| 29 | { |
||
| 30 | 21 | $getParameters = []; |
|
| 31 | 6 | $postParameters = [ |
|
| 32 | 21 | 'hash' => $listHash, |
|
| 33 | 21 | 'name' => $listName, |
|
| 34 | 'description' => $description ?: null |
||
| 35 | ]; |
||
| 36 | |||
| 37 | 15 | $postParameters = array_filter($postParameters, function ($value) { |
|
| 38 | 21 | return $value !== null; |
|
| 39 | 21 | }); |
|
| 40 | 21 | $this->processRequest($getParameters, $postParameters); |
|
| 41 | 7 | return null; |
|
| 42 | } |
||
| 52 |