| Conditions | 3 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 46 | protected function findDefaultImplementation() |
||
| 47 | { |
||
| 48 | $implementationBindings = config( 'repositories.bindings' ); |
||
| 49 | |||
| 50 | $filtered = array_filter( $implementationBindings, function( $k ) { |
||
| 51 | return $k === 'default'; |
||
| 52 | }); |
||
| 53 | |||
| 54 | $default = array_keys($filtered); |
||
| 55 | $default = is_array( $default ) ? $default[0] : $default; |
||
| 56 | |||
| 57 | return $default ? $default : 'eloquent'; |
||
| 58 | } |
||
| 60 | } |