Completed
Push — master ( 6fdad0...29d188 )
by Roman
04:14
created
src/Table.php 1 patch
Braces   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -34,13 +34,15 @@  discard block
 block discarded – undo
34 34
      * @return int
35 35
      */
36 36
     public function getColumnsMaxLenght($columnIndex) {
37
-        if (isset($this->columnsMaxLenght[$columnIndex]))
38
-            return $this->columnsMaxLenght[$columnIndex];
37
+        if (isset($this->columnsMaxLenght[$columnIndex])) {
38
+                    return $this->columnsMaxLenght[$columnIndex];
39
+        }
39 40
         $width = 0;
40 41
         for ($y = 0; $y < $this->dimensionY; $y++) {
41 42
             $len = strlen($this->getCell($columnIndex, $y));
42
-            if ($len > $width)
43
-                $width = $len;
43
+            if ($len > $width) {
44
+                            $width = $len;
45
+            }
44 46
         }
45 47
 
46 48
         $this->columnsMaxLenght[$columnIndex] = $width;
@@ -59,8 +61,9 @@  discard block
 block discarded – undo
59 61
 
60 62
         foreach ($this->data as $row) {
61 63
             $cnt = count($row);
62
-            if ($cnt > $this->dimensionX)
63
-                $this->dimensionX = $cnt;
64
+            if ($cnt > $this->dimensionX) {
65
+                            $this->dimensionX = $cnt;
66
+            }
64 67
         }
65 68
         $this->dimensionY = count($this->data);
66 69
     }
Please login to merge, or discard this patch.