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 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | public function resolve($alias) |
||
22 | { |
||
23 | if (null !== $solution = $this->cache->fetch($alias)) { |
||
24 | return $solution; |
||
25 | } |
||
26 | $solution = $this->getSolution($alias); |
||
27 | if (null === $solution) { |
||
28 | throw new UnresolvableException($this->unresolvableMessage($alias)); |
||
29 | } |
||
30 | |||
31 | $this->cache->save($alias, $solution); |
||
32 | |||
33 | return $solution; |
||
34 | } |
||
35 | |||
38 |