| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 10 | 
| Code Lines | 5 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 6 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 16 | public function createPlugin(array $config = []): Plugin  | 
            ||
| 17 |     { | 
            ||
| 18 |         if (! class_exists(RecordPlugin::class)) { | 
            ||
| 19 |             throw new LogicException('To use the vcr record plugin you need to install the "php-http/vcr-plugin" package.'); | 
            ||
| 20 | }  | 
            ||
| 21 | |||
| 22 | $recorder = $this->getRecorder($config['recorder'] ?? 'filesystem', $config);  | 
            ||
| 23 | $namingStrategy = $this->getNamingStrategy($config['naming_strategy'] ?? 'default', $config);  | 
            ||
| 24 | |||
| 25 | return new RecordPlugin($namingStrategy, $recorder);  | 
            ||
| 26 | }  | 
            ||
| 28 |