@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | $this->variables = $variables; |
| 23 | 23 | |
| 24 | 24 | $this->externalReader = null; |
| 25 | - if(! empty($externalVariables)) |
|
| 25 | + if( ! empty($externalVariables)) |
|
| 26 | 26 | { |
| 27 | 27 | $this->externalReader = new Reader($externalVariables, array()); |
| 28 | 28 | } |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | |
| 41 | 41 | private function readVariable($variable, $environment) |
| 42 | 42 | { |
| 43 | - if(! array_key_exists($variable, $this->variables)) |
|
| 43 | + if( ! array_key_exists($variable, $this->variables)) |
|
| 44 | 44 | { |
| 45 | 45 | throw new \RuntimeException(sprintf( |
| 46 | 46 | 'Unknown variable %s', |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | |
| 75 | 75 | private function processExternal($variable, $environment) |
| 76 | 76 | { |
| 77 | - if(! $this->externalReader instanceof Reader) |
|
| 77 | + if( ! $this->externalReader instanceof Reader) |
|
| 78 | 78 | { |
| 79 | 79 | throw new \RuntimeException(sprintf( |
| 80 | 80 | 'There is no external variables. %s can not be resolve for environment %s', |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | if(in_array($environment, $this->groupNames)) |
| 58 | 58 | { |
| 59 | 59 | throw new \RuntimeException(sprintf( |
| 60 | - 'Group can not be used as environment (try with group %s detected)', |
|
| 60 | + 'Group can not be used as environment (try with group %s detected)', |
|
| 61 | 61 | $environment |
| 62 | 62 | )); |
| 63 | 63 | } |
@@ -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 | } |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | { |
| 133 | 133 | foreach($newValues as $row) |
| 134 | 134 | { |
| 135 | - if(! is_array($row)) |
|
| 135 | + if( ! is_array($row)) |
|
| 136 | 136 | { |
| 137 | 137 | throw new \InvalidArgumentException('Rows must be arrays'); |
| 138 | 138 | } |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | |
| 183 | 183 | private function stripTags($value) |
| 184 | 184 | { |
| 185 | - return preg_replace ('/<[^>]*>/', '', $value); |
|
| 185 | + return preg_replace('/<[^>]*>/', '', $value); |
|
| 186 | 186 | } |
| 187 | 187 | |
| 188 | 188 | private function renderLine(array $row) |