Passed
Push — master ( 9dc093...de7a06 )
by Andreas
24:11
created
lib/org/openpsa/relatedto/suspect.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -79,14 +79,14 @@  discard block
 block discarded – undo
79 79
 
80 80
         $properties = ['fromClass', 'toClass', 'fromGuid', 'toGuid', 'fromComponent', 'toComponent', 'status', 'toExtra', 'toExtra'];
81 81
         foreach ($properties as $property) {
82
-            if (   !empty($defaults->$property)
82
+            if (!empty($defaults->$property)
83 83
                 && empty($link->$property)) {
84 84
                 debug_add("Copying property '{$property}' ('{$defaults->$property}') from defaults");
85 85
                 $link->$property = $defaults->$property;
86 86
             }
87 87
         }
88 88
 
89
-        if (   empty($link->toComponent)
89
+        if (empty($link->toComponent)
90 90
             && !empty($link->fromComponent)) {
91 91
             debug_add("Setting property 'toComponent' to '{$component}'");
92 92
             $link->toComponent = $component;
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
             $link->fromComponent = $component;
96 96
         }
97 97
 
98
-        if (   empty($link->toGuid)
98
+        if (empty($link->toGuid)
99 99
             && !empty($link->fromGuid)) {
100 100
             $link->toClass = get_class($obj);
101 101
             $link->toGuid = $obj->guid;
Please login to merge, or discard this patch.