Passed
Push — EXTRACT_CLASSES ( 0382f2...c25e41 )
by Rafael
52:18
created
Dolibarr/Code/Core/Classes/CommonOrder.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,9 @@
 block discarded – undo
89 89
                 $return++;
90 90
             } elseif ((int) $line->fk_product > 0) {
91 91
                 if ($product->fetch($line->fk_product) > 0) {
92
-                    if ($product->status_buy) $return++;
92
+                    if ($product->status_buy) {
93
+                        $return++;
94
+                    }
93 95
                 }
94 96
             }
95 97
         }
Please login to merge, or discard this patch.
Dolibarr/Code/Core/Classes/FormTicket.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -236,7 +236,9 @@
 block discarded – undo
236 236
         print '<form method="POST" ' . ($withdolfichehead ? '' : 'style="margin-bottom: 30px;" ') . 'name="ticket" id="form_create_ticket" enctype="multipart/form-data" action="' . (!empty($this->param["returnurl"]) ? $this->param["returnurl"] : $_SERVER['PHP_SELF']) . '">';
237 237
         print '<input type="hidden" name="token" value="' . newToken() . '">';
238 238
         print '<input type="hidden" name="action" value="' . $this->action . '">';
239
-        if (!empty($object->id)) print '<input type="hidden" name="id" value="' . $object->id . '">';
239
+        if (!empty($object->id)) {
240
+            print '<input type="hidden" name="id" value="' . $object->id . '">';
241
+        }
240 242
         print '<input type="hidden" name="trackid" value="' . $this->trackid . '">';
241 243
         foreach ($this->param as $key => $value) {
242 244
             print '<input type="hidden" name="' . $key . '" value="' . $value . '">';
Please login to merge, or discard this patch.
Dolibarr/Code/Core/Classes/DolEditor.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,9 @@
 block discarded – undo
113 113
                     break;
114 114
                 }
115 115
             }
116
-            if ($posy != 0) $poscursor['y'] = $posy;
116
+            if ($posy != 0) {
117
+                $poscursor['y'] = $posy;
118
+            }
117 119
         }
118 120
 
119 121
         // Define some properties
Please login to merge, or discard this patch.