Conditions | 2 |
Paths | 2 |
Total Lines | 18 |
Code Lines | 12 |
Lines | 16 |
Ratio | 88.89 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
42 | View Code Duplication | public static function getMarathonBridge( |
|
43 | ApiClientInterface $oApiClient, |
||
44 | CacheInterface $oCache, |
||
45 | JobValidatorServiceInterface $oJobEntityValidatorService, |
||
46 | LoggerInterface $oLogger |
||
47 | ) |
||
48 | { |
||
49 | if ($oApiClient->ping()) |
||
50 | { |
||
51 | return new BridgeMarathon( |
||
52 | $oApiClient, |
||
53 | $oCache, |
||
54 | $oJobEntityValidatorService, |
||
55 | $oLogger); |
||
56 | } |
||
57 | |||
58 | return new DummyBridge($oLogger); |
||
59 | } |
||
60 | |||
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.