| Conditions | 4 |
| Paths | 4 |
| Total Lines | 25 |
| Code Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| 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', |
||
| 45 | 'code' => 200 |
||
| 46 | ]; |
||
| 47 | case 'getAutologinUrl': |
||
| 48 | return [ |
||
| 49 | 'url' => '/1.0/security/autologinUrl', |
||
| 50 | 'method' => 'GET', |
||
| 51 | 'code' => 200 |
||
| 52 | ]; |
||
| 53 | default: |
||
| 54 | throw new Exception('Route for ' . $method . ' not found'); |
||
| 55 | } |
||
| 56 | } |
||
| 57 | |||
| 75 | } |