| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 31 | protected function generateMediaProperties($collection) |
||
| 32 | { |
||
| 33 | $propertiesRecord = MediaModels::properties()->createFor($this, $collection); |
||
| 34 | |||
| 35 | if ($this->hasRelation('MediaProperties')) { |
||
| 36 | $this->getRelation('MediaProperties')->getResults()->add($propertiesRecord); |
||
| 37 | } |
||
| 38 | return $propertiesRecord; |
||
| 39 | } |
||
| 40 | } |