| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 12 |
| Lines | 16 |
| Ratio | 94.12 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | View Code Duplication | public static function getChronosBridge( |
|
| 21 | ApiClientInterface $apiClient, |
||
| 22 | CacheInterface $cache, |
||
| 23 | JobValidatorServiceInterface $jobEntityValidatorService, |
||
| 24 | LoggerInterface $logger |
||
| 25 | ) { |
||
| 26 | if ($apiClient->ping()) { |
||
| 27 | return new BridgeChronos( |
||
| 28 | $apiClient, |
||
| 29 | $cache, |
||
| 30 | $jobEntityValidatorService, |
||
| 31 | $logger |
||
| 32 | ); |
||
| 33 | } |
||
| 34 | |||
| 35 | return new DummyBridge($logger); |
||
| 36 | } |
||
| 37 | |||
| 74 |