| Conditions | 1 |
| Paths | 1 |
| Total Lines | 33 |
| Code Lines | 23 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | public function createScoper(Configuration $configuration): Scoper |
||
| 38 | { |
||
| 39 | $prefix = $configuration->getPrefix(); |
||
| 40 | $whitelist = $configuration->getWhitelist(); |
||
| 41 | |||
| 42 | $autoloadPrefix = new AutoloadPrefixer($prefix, $whitelist); |
||
| 43 | |||
| 44 | return new PatchScoper( |
||
| 45 | new PhpScoper( |
||
| 46 | $this->parser, |
||
| 47 | new JsonFileScoper( |
||
| 48 | new InstalledPackagesScoper( |
||
| 49 | new SymfonyScoper( |
||
| 50 | new NullScoper(), |
||
| 51 | $prefix, |
||
| 52 | $whitelist, |
||
| 53 | ), |
||
| 54 | $autoloadPrefix |
||
| 55 | ), |
||
| 56 | $autoloadPrefix |
||
| 57 | ), |
||
| 58 | new TraverserFactory( |
||
| 59 | Reflector::createWithPhpStormStubs()->withSymbols( |
||
| 60 | $configuration->getInternalClasses(), |
||
| 61 | $configuration->getInternalFunctions(), |
||
| 62 | $configuration->getInternalConstants(), |
||
| 63 | ), |
||
| 64 | ), |
||
| 65 | $prefix, |
||
| 66 | $whitelist, |
||
| 67 | ), |
||
| 68 | $prefix, |
||
| 69 | $configuration->getPatcher(), |
||
| 70 | ); |
||
| 73 |