| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | 1 | public static function getCacheKeyCompat(Package\PackageInterface $p, $processedUrl) |
|
| 21 | { |
||
| 22 | 1 | static $rgetCacheKey, $my; |
|
| 23 | 1 | if (!$rgetCacheKey) { |
|
| 24 | 1 | $rgetCacheKey = new \ReflectionMethod('Composer\Downloader\FileDownloader', 'getCacheKey'); |
|
| 25 | 1 | $rgetCacheKey->setAccessible(true); |
|
| 26 | 1 | $my = new self; |
|
| 27 | } |
||
| 28 | |||
| 29 | 1 | return $rgetCacheKey->invoke($my, $p, $processedUrl); |
|
| 30 | } |
||
| 31 | } |
||
| 32 |