@@ -22,7 +22,9 @@ |
||
| 22 | 22 | |
| 23 | 23 | public function handle($sourceModel, $targetModel): void |
| 24 | 24 | { |
| 25 | - if(!$sourceModel instanceof FragmentsOwner || !$context = ContextModel::ownedBy($sourceModel)) return; |
|
| 25 | + if(!$sourceModel instanceof FragmentsOwner || !$context = ContextModel::ownedBy($sourceModel)) { |
|
| 26 | + return; |
|
| 27 | + } |
|
| 26 | 28 | |
| 27 | 29 | $copiedContext = ContextModel::createForOwner($targetModel); |
| 28 | 30 | |