| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2.004 |
| Changes | 3 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 29 | 6 | protected function createAdapter(): AdapterInterface |
|
| 30 | { |
||
| 31 | 6 | $permissions = $this->config['permissions'] ?? []; |
|
| 32 | |||
| 33 | 6 | $links = ($this->config['links'] ?? null) === 'skip' |
|
| 34 | ? LocalAdapter::SKIP_LINKS |
||
| 35 | 6 | : LocalAdapter::DISALLOW_LINKS; |
|
| 36 | |||
| 37 | 6 | return new LocalAdapter( |
|
| 38 | 6 | $this->config['root'], |
|
| 39 | 6 | LOCK_EX, |
|
| 40 | 4 | $links, |
|
| 41 | 4 | $permissions |
|
| 42 | ); |
||
| 53 |