| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | public static function providerContent($correctNamespace, $className, $prefix) |
||
| 8 | { |
||
| 9 | $template = file_get_contents(__DIR__.'/microscopeServiceProvider.stub'); |
||
| 10 | |||
| 11 | $mapping = [ |
||
| 12 | '$correctNamespace' => $correctNamespace, |
||
| 13 | '$className' => $className, |
||
| 14 | '$name' => $prefix, |
||
| 15 | ]; |
||
| 16 | |||
| 17 | return '<?php'.str_replace(array_keys($mapping), array_values($mapping), $template); |
||
| 18 | } |
||
| 19 | } |
||
| 20 |