| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 1 |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 11 | 16 | public function register() |
|
| 12 | { |
||
| 13 | 16 | $this->app->bind( |
|
| 14 | 16 | 'Flaviozantut\Storage\Posts\PostRepositoryInterface', |
|
| 15 | 16 | function () { |
|
| 16 | 1 | switch (Config::get('skorry.storage')) { |
|
| 17 | 1 | default: |
|
| 18 | 1 | return new FilePostRepository(Config::get('skorry.path')); |
|
| 19 | break; |
||
| 20 | 1 | } |
|
| 21 | } |
||
| 22 | 16 | ); |
|
|
|
|||
| 23 | 16 | } |
|
| 24 | } |
||
| 25 |