We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | 44 | public function addSolution($name, $solution, $options = []) |
|
27 | { |
||
28 | 44 | if (!$this->supportsSolution($solution)) { |
|
29 | 1 | throw new UnsupportedResolverException( |
|
30 | 1 | sprintf('Resolver "%s" must be "%s" "%s" given.', $name, $this->supportedSolutionClass(), get_class($solution)) |
|
31 | 1 | ); |
|
32 | } |
||
33 | |||
34 | 44 | $this->solutions[$name] = $solution; |
|
35 | 44 | $this->solutionOptions[$name] = $options; |
|
36 | |||
37 | 44 | return $this; |
|
38 | } |
||
39 | |||
82 |