@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | $lines = array(); |
68 | 68 | $lines[] = $separatorRow; |
69 | 69 | |
70 | - if(! empty($this->headers)) |
|
70 | + if( ! empty($this->headers)) |
|
71 | 71 | { |
72 | 72 | $lines[] = $this->renderLine($this->headers); |
73 | 73 | $lines[] = $separatorRow; |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | return; |
91 | 91 | } |
92 | 92 | |
93 | - if(! empty($this->headers)) |
|
93 | + if( ! empty($this->headers)) |
|
94 | 94 | { |
95 | 95 | array_unshift($this->headers, ''); |
96 | 96 | } |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | |
109 | 109 | $this->columnsSize = array_pad(array(), $this->nbColumns, -1); |
110 | 110 | |
111 | - if(! empty($this->headers)) |
|
111 | + if( ! empty($this->headers)) |
|
112 | 112 | { |
113 | 113 | $this->updateColumnsSize(array($this->headers)); |
114 | 114 | } |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | |
123 | 123 | foreach($this->rows as $row) |
124 | 124 | { |
125 | - if(is_array($row) ||$row instanceof \Countable) |
|
125 | + if(is_array($row) || $row instanceof \Countable) |
|
126 | 126 | { |
127 | 127 | $this->nbColumns = max($this->nbColumns, count($row)); |
128 | 128 | } |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | { |
136 | 136 | foreach($newValues as $row) |
137 | 137 | { |
138 | - if(! is_array($row)) |
|
138 | + if( ! is_array($row)) |
|
139 | 139 | { |
140 | 140 | throw new \InvalidArgumentException('Rows must be arrays'); |
141 | 141 | } |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | |
186 | 186 | private function stripTags($value) |
187 | 187 | { |
188 | - return preg_replace ('/<[^>]*>/', '', $value); |
|
188 | + return preg_replace('/<[^>]*>/', '', $value); |
|
189 | 189 | } |
190 | 190 | |
191 | 191 | private function renderLine(array $row) |