| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 49 | public static function vendorPath(string $path = '', string $package = 'framework'): string |
||
| 50 | { |
||
| 51 | if ($package !== 'framework') { |
||
| 52 | throw new BadMethodCallException('Cannot use vendorPath() outside of the framework package when running from a Phar archive.'); |
||
| 53 | } |
||
| 54 | |||
| 55 | return rtrim(str_replace('/', DIRECTORY_SEPARATOR, rtrim(dirname(__DIR__, 2).'/'.$path, '/\\')), '/\\'); |
||
| 56 | } |
||
| 58 |