| Conditions | 4 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function getUrl($method, array $params = []) |
||
| 33 | { |
||
| 34 | switch ($method) { |
||
| 35 | case 'getSecretKey': |
||
| 36 | return [ |
||
| 37 | 'url' => '/1.0/security/secretKey', |
||
| 38 | 'method' => 'GET', |
||
| 39 | 'code' => 200 |
||
| 40 | ]; |
||
| 41 | case 'getDemoUrl': |
||
| 42 | return [ |
||
| 43 | 'url' => '/1.0/security/demoUrl', |
||
| 44 | 'method' => 'GET', |
||
| 75 | } |