Conditions | 1 |
Paths | 1 |
Total Lines | 23 |
Lines | 0 |
Ratio | 0 % |
Tests | 16 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
22 | 4 | public function createInconsistencyFinder(ReferencesConfiguration $referencesConfiguration): InconsistencyFinder |
|
23 | { |
||
24 | 4 | $queryExecutor = new QueryExecutor(); |
|
25 | 4 | $intervalManager = new IntervalManager($this->sizeForSeeking, $this->sizeForJobDistribution); |
|
26 | 4 | return new InconsistencyFinder( |
|
27 | 4 | $referencesConfiguration, |
|
28 | 4 | $queryExecutor, |
|
29 | 4 | $intervalManager, |
|
30 | 4 | new SynchronousJobDistributorFactory( |
|
31 | 4 | new Worker( |
|
32 | 4 | new FastConsistencyValidator( |
|
33 | 4 | $referencesConfiguration, |
|
34 | 4 | $queryExecutor |
|
35 | ), |
||
36 | 4 | new InconsistencySeeker( |
|
37 | 4 | $referencesConfiguration, |
|
38 | 4 | $queryExecutor |
|
39 | ), |
||
40 | 4 | $intervalManager |
|
41 | ) |
||
42 | ) |
||
43 | ); |
||
44 | } |
||
45 | } |
||
46 |