@@ -21,12 +21,12 @@ |
||
21 | 21 | * @param Collection|string $collection |
22 | 22 | * @return MediaProperty|Record |
23 | 23 | */ |
24 | - public function for(Record $model, $collection) |
|
24 | + public function for (Record $model, $collection) |
|
25 | 25 | { |
26 | 26 | $collection = is_object($collection) ? $collection->getName() : $collection; |
27 | 27 | if ($model->hasRelation('MediaProperties')) { |
28 | 28 | return $model->getRelation('MediaProperties')->getResults()->filter( |
29 | - function ($item) use ($collection) { |
|
29 | + function($item) use ($collection) { |
|
30 | 30 | return $item->collection_name == $collection; |
31 | 31 | } |
32 | 32 | )->current(); |
@@ -23,13 +23,13 @@ |
||
23 | 23 | * @param $collection |
24 | 24 | * @return MediaProperty[]|Collection |
25 | 25 | */ |
26 | - public function for(Record $model, $collection) |
|
26 | + public function for (Record $model, $collection) |
|
27 | 27 | { |
28 | 28 | $collection = is_object($collection) ? $collection->getName() : $collection; |
29 | 29 | |
30 | 30 | if ($model->hasRelation('Media')) { |
31 | 31 | return $model->getRelation('Media')->getResults()->filter( |
32 | - function ($item) use ($collection) { |
|
32 | + function($item) use ($collection) { |
|
33 | 33 | return $item->collection_name == $collection; |
34 | 34 | } |
35 | 35 | ); |