Test Setup Failed
Push — a-simpler-manager ( bb5122...22727d )
by Ben
05:51
created
src/ManagedModels/Application/DuplicateContext.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,9 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.