| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 57 | public static function getFilesystemBridge( |
||
| 58 | Filesystem $fileSystemService, |
||
| 59 | CacheInterface $cache, |
||
| 60 | $repositoryDir, |
||
| 61 | LoggerInterface $logger |
||
| 62 | ) { |
||
| 63 | if (empty($repositoryDir)) { |
||
| 64 | return new DummyBridge($logger); |
||
| 65 | } |
||
| 66 | |||
| 67 | return new BridgeFileSystem( |
||
| 68 | $fileSystemService, |
||
| 69 | $cache, |
||
| 70 | $repositoryDir |
||
| 71 | ); |
||
| 72 | } |
||
| 73 | } |
||
| 74 |