| Conditions | 5 |
| Paths | 12 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public static function getInstance(callable $modules, string $scriptDir) : InjectorInterface |
||
| 26 | { |
||
| 27 | ! is_dir($scriptDir) && ! @mkdir($scriptDir) && ! is_dir($scriptDir); |
||
| 28 | $module = $modules(); |
||
| 29 | $rayInjector = new RayInjector($module, $scriptDir); |
||
| 30 | $isProd = false; |
||
| 31 | try { |
||
| 32 | $isProd = $rayInjector->getInstance('', Compile::class); |
||
| 33 | } catch (Unbound $e) { |
||
| 34 | } |
||
| 35 | |||
| 36 | return $isProd ? self::getScriptInjector($scriptDir, $module) : $rayInjector; |
||
| 37 | } |
||
| 38 | |||
| 46 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.