We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function warmUp($cacheDir) |
||
| 30 | { |
||
| 31 | // use warm up cache dir if type generator cache dir not already explicitly declare |
||
| 32 | $baseCacheDir = $this->typeGenerator->getBaseCacheDir(); |
||
| 33 | if (null === $this->typeGenerator->getCacheDir(false)) { |
||
| 34 | $this->typeGenerator->setBaseCacheDir($cacheDir); |
||
| 35 | } |
||
| 36 | $this->typeGenerator->compile(TypeGenerator::MODE_WRITE | TypeGenerator::MODE_OVERRIDE); |
||
| 37 | $this->typeGenerator->setBaseCacheDir($baseCacheDir); |
||
| 38 | } |
||
| 39 | } |
||
| 40 |