Conditions | 3 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
37 | function url(string $path = ''): string |
||
38 | { |
||
39 | if (Scrawler\App::engine()->config()->has('https') && Scrawler\App::engine()->config()->get('https')) { |
||
40 | return 'https://'.Scrawler\App::engine()->request()->getHttpHost().Scrawler\App::engine()->request()->getBasePath().$path; |
||
41 | } |
||
42 | |||
43 | return Scrawler\App::engine()->request()->getSchemeAndHttpHost().Scrawler\App::engine()->request()->getBasePath().$path; |
||
44 | } |
||
69 |