| Conditions | 5 |
| Paths | 16 |
| Total Lines | 24 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 5.7283 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | 10 | protected function setValue(string $value, int $precision = null, int $base = 10) |
|
| 32 | {
|
||
| 33 | 10 | $imaginary = false; |
|
| 34 | |||
| 35 | 10 | if (strpos($value, 'i') !== false) {
|
|
| 36 | $value = str_replace('i', '', $value);
|
||
| 37 | $imaginary = true; |
||
| 38 | } |
||
| 39 | |||
| 40 | 10 | if ($base != 10) {
|
|
| 41 | $value = $this->convertValue($value, 10, $base); |
||
| 42 | } |
||
| 43 | |||
| 44 | 10 | if ($imaginary) {
|
|
| 45 | $value .= 'i'; |
||
| 46 | } |
||
| 47 | |||
| 48 | 10 | if (is_null($precision)) {
|
|
| 49 | 9 | $this->precision = $this->getPrecision(); |
|
| 50 | } |
||
| 51 | |||
| 52 | 10 | $this->value = $this->translateValue($value); |
|
| 53 | |||
| 54 | 10 | return $this; |
|
| 55 | } |
||
| 65 | } |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.