| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 12 |
| Lines | 16 |
| Ratio | 94.12 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | View Code Duplication | public static function getMarathonBridge( |
|
| 39 | ApiClientInterface $apiClient, |
||
| 40 | CacheInterface $cache, |
||
| 41 | JobValidatorServiceInterface $jobEntityValidatorService, |
||
| 42 | LoggerInterface $logger |
||
| 43 | ) { |
||
| 44 | if ($apiClient->ping()) { |
||
| 45 | return new BridgeMarathon( |
||
| 46 | $apiClient, |
||
| 47 | $cache, |
||
| 48 | $jobEntityValidatorService, |
||
| 49 | $logger |
||
| 50 | ); |
||
| 51 | } |
||
| 52 | |||
| 53 | return new DummyBridge($logger); |
||
| 54 | } |
||
| 55 | |||
| 74 |