Conditions | 2 |
Paths | 2 |
Total Lines | 18 |
Code Lines | 12 |
Lines | 16 |
Ratio | 88.89 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
23 | View Code Duplication | public static function getChronosBridge( |
|
24 | ApiClientInterface $oApiClient, |
||
25 | CacheInterface $oCache, |
||
26 | JobValidatorServiceInterface $oJobEntityValidatorService, |
||
27 | LoggerInterface $oLogger |
||
28 | ) |
||
29 | { |
||
30 | if ($oApiClient->ping()) |
||
31 | { |
||
32 | return new BridgeChronos( |
||
33 | $oApiClient, |
||
34 | $oCache, |
||
35 | $oJobEntityValidatorService, |
||
36 | $oLogger); |
||
37 | } |
||
38 | |||
39 | return new DummyBridge($oLogger); |
||
40 | } |
||
41 | |||
81 |
This check examines a number of code elements and verifies that they conform to the given naming conventions.
You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.