We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | 29 | public function resolve($alias) |
|
| 22 | { |
||
| 23 | 29 | if (null !== $solution = $this->cache->fetch($alias)) { |
|
| 24 | 8 | return $solution; |
|
| 25 | } |
||
| 26 | 29 | $solution = $this->getSolution($alias); |
|
| 27 | 29 | if (null === $solution) { |
|
| 28 | 2 | throw new UnresolvableException($this->unresolvableMessage($alias)); |
|
| 29 | } |
||
| 30 | |||
| 31 | 27 | $this->cache->save($alias, $solution); |
|
| 32 | |||
| 33 | 27 | return $solution; |
|
| 34 | } |
||
| 35 | |||
| 38 |