| Conditions | 3 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3.2098 |
| Changes | 2 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 42 | 7 | protected function hydrateMediaRepository($mediaRepository) |
|
| 43 | { |
||
| 44 | 7 | $mediaRepository->setRecord($this); |
|
| 45 | |||
| 46 | 7 | if (method_exists($this, 'registerMediaCollections')) { |
|
| 47 | $this->registerMediaCollections($mediaRepository); |
||
| 48 | } |
||
| 49 | |||
| 50 | 7 | if (method_exists($this, 'hydrateMediaRepositoryCustom')) { |
|
| 51 | $this->hydrateMediaRepositoryCustom($mediaRepository); |
||
| 52 | } |
||
| 53 | |||
| 54 | 7 | return $mediaRepository; |
|
| 55 | } |
||
| 57 |