| Conditions | 5 |
| Paths | 4 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 30 |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function __toError() |
||
| 15 | { |
||
| 16 | $missing = []; |
||
| 17 | if (\property_exists($this, 'waitScope')) { |
||
| 18 | foreach ($this->waitScope ?? [] as $name => $n) { |
||
| 19 | $missing[] = "scope:{$name}"; |
||
| 20 | } |
||
| 21 | } |
||
| 22 | |||
| 23 | if (\property_exists($this, 'waitContext')) { |
||
| 24 | foreach ($this->waitContext ?? [] as $name => $n) { |
||
| 25 | $missing[] = "{$name}"; |
||
| 26 | } |
||
| 27 | } |
||
| 28 | |||
| 29 | return \sprintf('%s(%s)', $this::class, \implode(', ', $missing)); |
||
| 30 | } |
||
| 32 |