| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 41 | private function loadCoreIndex() |
||
| 42 | { |
||
| 43 | if (self::$coreIndex) { |
||
| 44 | return; |
||
| 45 | } |
||
| 46 | self::$coreIndex = $this->read(STUBS_DIR)->getIndex(); |
||
| 47 | $indexClass = new \ReflectionClass(InMemoryIndex::class); |
||
| 48 | $coreIndexProperty = $indexClass->getProperty("coreIndex"); |
||
| 49 | $coreIndexProperty->setAccessible(true); |
||
| 50 | $coreIndexProperty->setValue(self::$coreIndex); |
||
| 51 | } |
||
| 52 | |||
| 57 |