Passed
Push — master ( cc9ccb...5f5262 )
by
unknown
01:04
created
src/FrameReflower/Table.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -65,20 +65,20 @@  discard block
 block discarded – undo
65 65
         $absolute_used = $this->_state["absolute_used"];
66 66
         $auto_min = $this->_state["auto_min"];
67 67
 
68
-        $absolute =& $this->_state["absolute"];
69
-        $percent =& $this->_state["percent"];
70
-        $auto =& $this->_state["auto"];
68
+        $absolute = & $this->_state["absolute"];
69
+        $percent = & $this->_state["percent"];
70
+        $auto = & $this->_state["auto"];
71 71
 
72 72
         // Determine the actual width of the table (excluding borders and
73 73
         // padding)
74 74
         $cb = $this->_frame->get_containing_block();
75
-        $columns =& $this->_frame->get_cellmap()->get_columns();
75
+        $columns = & $this->_frame->get_cellmap()->get_columns();
76 76
 
77 77
         $width = $style->width;
78 78
         $min_table_width = $this->resolve_min_width($cb["w"]) - $delta;
79 79
 
80 80
         if ($width !== "auto") {
81
-            $preferred_width = (float) $style->length_in_pt($width, $cb["w"]) - $delta;
81
+            $preferred_width = (float)$style->length_in_pt($width, $cb["w"]) - $delta;
82 82
 
83 83
             if ($preferred_width < $min_table_width) {
84 84
                 $preferred_width = $min_table_width;
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
         $left = $style->length_in_pt($style->margin_left, $cb["w"]);
360 360
         $right = $style->length_in_pt($style->margin_right, $cb["w"]);
361 361
 
362
-        $diff = (float) $cb["w"] - (float) $width - $delta;
362
+        $diff = (float)$cb["w"] - (float)$width - $delta;
363 363
 
364 364
         if ($left === "auto" && $right === "auto") {
365 365
             if ($diff < 0) {
@@ -403,10 +403,10 @@  discard block
 block discarded – undo
403 403
         }
404 404
 
405 405
         $cellmap = $frame->get_cellmap();
406
-        $col =& $cellmap->get_column(0);
406
+        $col = & $cellmap->get_column(0);
407 407
         $col["x"] = $offset_x;
408 408
 
409
-        $row =& $cellmap->get_row(0);
409
+        $row = & $cellmap->get_row(0);
410 410
         $row["y"] = $offset_y;
411 411
 
412 412
         $cellmap->assign_x_positions();
@@ -476,7 +476,7 @@  discard block
 block discarded – undo
476 476
         $this->_state["percent"] = [];
477 477
         $this->_state["auto"] = [];
478 478
 
479
-        $columns =& $cellmap->get_columns();
479
+        $columns = & $cellmap->get_columns();
480 480
         foreach ($columns as $i => $col) {
481 481
             $this->_state["min_width"] += $col["min-width"];
482 482
             $this->_state["max_width"] += $col["max-width"];
@@ -495,8 +495,8 @@  discard block
 block discarded – undo
495 495
 
496 496
         // Account for margins, borders, padding, and border spacing
497 497
         $cb_w = $this->_frame->get_containing_block("w");
498
-        $lm = (float) $style->length_in_pt($style->margin_left, $cb_w);
499
-        $rm = (float) $style->length_in_pt($style->margin_right, $cb_w);
498
+        $lm = (float)$style->length_in_pt($style->margin_left, $cb_w);
499
+        $rm = (float)$style->length_in_pt($style->margin_right, $cb_w);
500 500
 
501 501
         $dims = [
502 502
             $style->border_left_width,
@@ -509,7 +509,7 @@  discard block
 block discarded – undo
509 509
             list($dims[]) = $style->border_spacing;
510 510
         }
511 511
 
512
-        $delta = (float) $style->length_in_pt($dims, $cb_w);
512
+        $delta = (float)$style->length_in_pt($dims, $cb_w);
513 513
 
514 514
         $this->_state["width_delta"] = $delta;
515 515
 
Please login to merge, or discard this patch.