@@ -7,6 +7,6 @@ |
||
7 | 7 | { |
8 | 8 | protected function appendContent(string $key, string $content): void |
9 | 9 | { |
10 | - $this->items[$key]->setValue( $this->items[$key]->getValue() . $content ); |
|
10 | + $this->items[$key]->setValue($this->items[$key]->getValue() . $content); |
|
11 | 11 | } |
12 | 12 | } |
@@ -139,9 +139,9 @@ |
||
139 | 139 | |
140 | 140 | $pages = []; |
141 | 141 | $pages['first'] = $this->positions->getFirstPage(); |
142 | - $pages['prev'] = $this->positions->prevPageExists() ? $this->positions->getPrevPage() : $this->positions->getFirstPage() ; |
|
142 | + $pages['prev'] = $this->positions->prevPageExists() ? $this->positions->getPrevPage() : $this->positions->getFirstPage(); |
|
143 | 143 | $pages['actual'] = $pager->getActualPage(); |
144 | - $pages['next'] = $this->positions->nextPageExists() ? $this->positions->getNextPage() : $this->positions->getLastPage() ; |
|
144 | + $pages['next'] = $this->positions->nextPageExists() ? $this->positions->getNextPage() : $this->positions->getLastPage(); |
|
145 | 145 | $pages['last'] = $this->positions->getLastPage(); |
146 | 146 | |
147 | 147 | $results = []; |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | |
203 | 203 | public function getFormName(): string |
204 | 204 | { |
205 | - return $this->headerFilter ? $this->headerFilter->getFormName() : ( $this->footerFilter ? $this->footerFilter->getFormName() : '' ); |
|
205 | + return $this->headerFilter ? $this->headerFilter->getFormName() : ($this->footerFilter ? $this->footerFilter->getFormName() : ''); |
|
206 | 206 | } |
207 | 207 | |
208 | 208 | public function setOutput(Table\AOutput $output): void |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | */ |
239 | 239 | public function getColumn(int $position): ?IColumn |
240 | 240 | { |
241 | - return $this->columns[$position] ?? null ; |
|
241 | + return $this->columns[$position] ?? null; |
|
242 | 242 | } |
243 | 243 | |
244 | 244 | /** |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | */ |
49 | 49 | public function getHeaderText(): string |
50 | 50 | { |
51 | - return is_null($this->headerText) ? $this->getFilterName() : $this->headerText ; |
|
51 | + return is_null($this->headerText) ? $this->getFilterName() : $this->headerText; |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | public function translate(IRow $source): string |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | |
59 | 59 | public function getFilterName(): string |
60 | 60 | { |
61 | - return empty($this->filterName) ? strval($this->getSourceName()) : $this->filterName ; |
|
61 | + return empty($this->filterName) ? strval($this->getSourceName()) : $this->filterName; |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | /** |
@@ -94,6 +94,6 @@ |
||
94 | 94 | { |
95 | 95 | return is_object($data) |
96 | 96 | ? ($data instanceof IRow ? $data->getValue($key) : $data->$key) |
97 | - : (is_array($data) ? $data[$key] : null ); |
|
97 | + : (is_array($data) ? $data[$key] : null); |
|
98 | 98 | } |
99 | 99 | } |
@@ -18,7 +18,7 @@ |
||
18 | 18 | { |
19 | 19 | if (preg_match('/([^\s]+)\s(.*)/i', strval($this->base), $matches)) { |
20 | 20 | return $this->compare($value, $matches[1], $matches[2]); |
21 | - } elseif(preg_match('/(<|>|<=|>=|=|==)(.*)/i', strval($this->base), $matches)) { |
|
21 | + } elseif (preg_match('/(<|>|<=|>=|=|==)(.*)/i', strval($this->base), $matches)) { |
|
22 | 22 | return $this->compare($value, $matches[1], $matches[2]); |
23 | 23 | } else { |
24 | 24 | throw new TableException('Unrecognized expression pattern'); |
@@ -34,7 +34,6 @@ |
||
34 | 34 | |
35 | 35 | $urlLink->setPageNumber(3); |
36 | 36 | echo $urlLink->getPageLink(); // got page 3 -> okay |
37 | - |
|
38 | 37 | */ |
39 | 38 | class PageLink implements ILink |
40 | 39 | { |
@@ -112,7 +112,7 @@ |
||
112 | 112 | |
113 | 113 | public static function register(?string $inputFormat = null, ?string $searchFormat = null) |
114 | 114 | { |
115 | - Container::extensionMethod('addRange', function ($container, $name, $label = null, $maxLength = null) use ($inputFormat, $searchFormat) { |
|
115 | + Container::extensionMethod('addRange', function($container, $name, $label = null, $maxLength = null) use ($inputFormat, $searchFormat) { |
|
116 | 116 | $picker = $container[$name] = new Range($name, $label, $maxLength); |
117 | 117 | |
118 | 118 | if (null !== $inputFormat) |
@@ -115,10 +115,12 @@ |
||
115 | 115 | Container::extensionMethod('addRange', function ($container, $name, $label = null, $maxLength = null) use ($inputFormat, $searchFormat) { |
116 | 116 | $picker = $container[$name] = new Range($name, $label, $maxLength); |
117 | 117 | |
118 | - if (null !== $inputFormat) |
|
119 | - $picker->setInputFormat($inputFormat); |
|
120 | - if (null !== $searchFormat) |
|
121 | - $picker->setSearchFormat($searchFormat); |
|
118 | + if (null !== $inputFormat) { |
|
119 | + $picker->setInputFormat($inputFormat); |
|
120 | + } |
|
121 | + if (null !== $searchFormat) { |
|
122 | + $picker->setSearchFormat($searchFormat); |
|
123 | + } |
|
122 | 124 | |
123 | 125 | return $picker; |
124 | 126 | }); |
@@ -131,7 +131,7 @@ |
||
131 | 131 | |
132 | 132 | public static function register(?string $inputFormat = null, ?string $searchFormat = null) |
133 | 133 | { |
134 | - Container::extensionMethod('addTbDateRange', function ($container, $name, $label = null, $maxLength = null) use ($inputFormat, $searchFormat) { |
|
134 | + Container::extensionMethod('addTbDateRange', function($container, $name, $label = null, $maxLength = null) use ($inputFormat, $searchFormat) { |
|
135 | 135 | $picker = $container[$name] = new DateRange($name, $label, $maxLength); |
136 | 136 | |
137 | 137 | if (null !== $inputFormat) |
@@ -134,10 +134,12 @@ |
||
134 | 134 | Container::extensionMethod('addTbDateRange', function ($container, $name, $label = null, $maxLength = null) use ($inputFormat, $searchFormat) { |
135 | 135 | $picker = $container[$name] = new DateRange($name, $label, $maxLength); |
136 | 136 | |
137 | - if (null !== $inputFormat) |
|
138 | - $picker->setInputFormat($inputFormat); |
|
139 | - if (null !== $searchFormat) |
|
140 | - $picker->setSearchFormat($searchFormat); |
|
137 | + if (null !== $inputFormat) { |
|
138 | + $picker->setInputFormat($inputFormat); |
|
139 | + } |
|
140 | + if (null !== $searchFormat) { |
|
141 | + $picker->setSearchFormat($searchFormat); |
|
142 | + } |
|
141 | 143 | |
142 | 144 | return $picker; |
143 | 145 | }); |