| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3.2098 |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | 20 | public function isParameterPresent($parameter) |
|
| 29 | { |
||
| 30 | 20 | if ($this->isKeyExists($parameter, $this->sendData)) { |
|
| 31 | 20 | if ($parameter === 'authkey') { |
|
| 32 | 20 | return $this->hasAuthKey($parameter); |
|
| 33 | } else { |
||
| 34 | 20 | return $this->hasMobile($parameter); |
|
| 35 | } |
||
| 36 | } else { |
||
| 37 | $message = "Parameter ".$parameter." missing"; |
||
| 38 | throw ParameterException::missinglogic($message); |
||
| 39 | } |
||
| 60 |