Completed
Pull Request — master (#1855)
by Rico
12:14 queued 01:54
created
app/Module/InteractiveTree/TreeView.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
         // Fixing the width for td to the box initial width when the person is the root person fix a rare bug that happen when a person without child and without known parents is the root person : an unwanted white rectangle appear at the right of the person’s boxes, otherwise.
255 255
         $html .= '<td' . ($isRoot ? ' style="width:1px"' : '') . '><div class="tv_box' . ($isRoot ? ' rootPerson' : '') . '" dir="' . I18N::direction() . '" style="text-align: ' . (I18N::direction() === 'rtl' ? 'right' : 'left') . '; direction: ' . I18N::direction() . '" abbr="' . $person->getXref() . '" onclick="' . $this->name . 'Handler.expandBox(this, event);">';
256 256
         $html .= $this->drawPersonName($person);
257
-        $fop  = []; // $fop is fathers of partners
257
+        $fop = []; // $fop is fathers of partners
258 258
         if ($partner !== null) {
259 259
             $dashed = '';
260 260
             foreach ($person->getSpouseFamilies() as $family) {
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
                             $spouse_parents,
273 273
                         ];
274 274
                     }
275
-                    $html   .= $this->drawPersonName($spouse, $dashed);
275
+                    $html .= $this->drawPersonName($spouse, $dashed);
276 276
                     $dashed = 'dashed';
277 277
                 }
278 278
             }
@@ -292,9 +292,9 @@  discard block
 block discarded – undo
292 292
         /* draw the parents */
293 293
         if ($state >= 0 && (!empty($parent) || count($fop))) {
294 294
             $unique = (empty($parent) || count($fop) == 0);
295
-            $html   .= '<td align="left"><table class="tv_tree"><tbody>';
295
+            $html .= '<td align="left"><table class="tv_tree"><tbody>';
296 296
             if (!empty($parent)) {
297
-                $u    = $unique ? 'c' : 't';
297
+                $u = $unique ? 'c' : 't';
298 298
                 $html .= '<tr><td ' . ($gen == 0 ? ' abbr="p' . $primaryChildFamily->getXref() . '@' . $u . '"' : '') . '>';
299 299
                 $html .= $this->drawPerson($parent, $gen - 1, 1, $primaryChildFamily, $u);
300 300
                 $html .= '</td></tr>';
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
                 $nb = count($fop);
305 305
                 foreach ($fop as $p) {
306 306
                     $n++;
307
-                    $u    = $unique ? 'c' : ($n == $nb || empty($p[1]) ? 'b' : 'h');
307
+                    $u = $unique ? 'c' : ($n == $nb || empty($p[1]) ? 'b' : 'h');
308 308
                     $html .= '<tr><td ' . ($gen == 0 ? ' abbr="p' . $p[1]->getXref() . '@' . $u . '"' : '') . '>' . $this->drawPerson($p[0], $gen - 1, 1, $p[1], $u) . '</td></tr>';
309 309
                 }
310 310
             }
Please login to merge, or discard this patch.