| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | 1 | public function api(string $env = '.env', SettingsInterface $settings = null, HttpInterface $http = null): FrostController |
|
| 29 | { |
||
| 30 | 1 | $settings = $settings ?? new DotenvAdapter(new Dotenv(dirname(__DIR__), $env)); |
|
| 31 | 1 | $http = $http ?? new GuzzleAdapter(new Client); |
|
| 32 | |||
| 33 | 1 | return new FrostController( |
|
| 34 | 1 | $settings, |
|
| 35 | 1 | $http |
|
| 36 | ); |
||
| 39 |