@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | |
| 38 | 38 | protected function countColumns() |
| 39 | 39 | { |
| 40 | - return count($this->columns); |
|
| 40 | + return count($this->columns); |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | public function addRow(array $cells, $style = null) |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | $strings[] = $this->getRow($i, $with_style); |
| 98 | 98 | |
| 99 | 99 | if ($i < 0) { |
| 100 | - $strings[] = $this->getLine(); |
|
| 100 | + $strings[] = $this->getLine(); |
|
| 101 | 101 | } |
| 102 | 102 | } |
| 103 | 103 | |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | protected function getRowStyle($i) |
| 146 | 146 | { |
| 147 | 147 | if (!isset($this->row_style[$i]) || $this->row_style[$i] === '#') { |
| 148 | - return null; |
|
| 148 | + return null; |
|
| 149 | 149 | } |
| 150 | 150 | |
| 151 | 151 | return $this->row_style[$i]; |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | protected function getCell($column, $row) |
| 155 | 155 | { |
| 156 | 156 | if (!isset($this->rows[$row][$column])) { |
| 157 | - throw new CommandException("Their is no value for column '$column', row '$row'"); |
|
| 157 | + throw new CommandException("Their is no value for column '$column', row '$row'"); |
|
| 158 | 158 | } |
| 159 | 159 | |
| 160 | 160 | return $this->rows[$row][$column]; |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | $count = 0; |
| 166 | 166 | |
| 167 | 167 | foreach ($this->getColumnTitles() as $title) { |
| 168 | - $count += $this->getColumnWidth($title); |
|
| 168 | + $count += $this->getColumnWidth($title); |
|
| 169 | 169 | } |
| 170 | 170 | |
| 171 | 171 | $count += $this->countColumns() * 3; |
@@ -447,10 +447,12 @@ |
||
| 447 | 447 | |
| 448 | 448 | // recursively add children's progressions |
| 449 | 449 | $progress = $task->getProgress(); |
| 450 | - foreach ($task->getChildren() as $child) /* @var $child Task */ |
|
| 450 | + foreach ($task->getChildren() as $child) { |
|
| 451 | + /* @var $child Task */ |
|
| 451 | 452 | { |
| 452 | 453 | $progress += $this->getProgress($child, false); |
| 453 | 454 | } |
| 455 | + } |
|
| 454 | 456 | |
| 455 | 457 | $global = $progress / ($task->countChildren() + 1); |
| 456 | 458 | |