| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | protected function createAdapter(): AdapterInterface |
||
| 21 | { |
||
| 22 | return Container::getInstance()->get('aliyun.oss.adapter'); |
||
| 23 | // $permissions = $this->config['permissions'] ?? []; |
||
| 24 | // |
||
| 25 | // $links = ($this->config['links'] ?? null) === 'skip' |
||
| 26 | // ? LocalAdapter::SKIP_LINKS |
||
| 27 | // : LocalAdapter::DISALLOW_LINKS; |
||
| 28 | // |
||
| 29 | // return new LocalAdapter( |
||
| 30 | // $this->config['root'], |
||
| 31 | // LOCK_EX, |
||
| 32 | // $links, |
||
| 33 | // $permissions |
||
| 34 | // ); |
||
| 35 | } |
||
| 36 | } |
||
| 37 |