@@ -55,7 +55,7 @@ |
||
55 | 55 | return $this->_queryBuilder; |
56 | 56 | } |
57 | 57 | |
58 | - $this->_queryBuilder->where(function ($query) |
|
58 | + $this->_queryBuilder->where(function($query) |
|
59 | 59 | { |
60 | 60 | foreach ($this->_searchQueries as $value) |
61 | 61 | { |
@@ -118,9 +118,9 @@ |
||
118 | 118 | public function render(): string |
119 | 119 | { |
120 | 120 | return '<form method="get" action="' . $this->_buildSearchUrl() . |
121 | - '"><div class="row"><div class="col-md-10"><input name="search" class="form-control data-scout-input" placeholder="' . |
|
122 | - $this->_placeholder . '"/></div><div class="col-md-2"><button type="submit" class="btn btn-primary">' . |
|
123 | - $this->_buttonText . '</button></div></div></form>'; |
|
121 | + '"><div class="row"><div class="col-md-10"><input name="search" class="form-control data-scout-input" placeholder="' . |
|
122 | + $this->_placeholder . '"/></div><div class="col-md-2"><button type="submit" class="btn btn-primary">' . |
|
123 | + $this->_buttonText . '</button></div></div></form>'; |
|
124 | 124 | } |
125 | 125 | |
126 | 126 | /** |
@@ -96,12 +96,12 @@ |
||
96 | 96 | } |
97 | 97 | |
98 | 98 | return '<ul class="pagination">' . |
99 | - $this->_renderListItem($this->_currentPage - 1, $this->_getFirstPageUrl(), $this->_firstPageSymbol) . |
|
100 | - $this->_renderListItem($this->_currentPage - 1, $this->_getPreviousPageUrl(), $this->_previousPageSymbol) . |
|
101 | - $this->_renderPageList() . |
|
102 | - $this->_renderListItem($this->_currentPage + 1, $this->_getNextPageUrl(), $this->_nextPageSymbol) . |
|
103 | - $this->_renderListItem($this->_currentPage + 1, $this->_getLastPageUrl(), $this->_lastPageSymbol) . |
|
104 | - '</ul>'; |
|
99 | + $this->_renderListItem($this->_currentPage - 1, $this->_getFirstPageUrl(), $this->_firstPageSymbol) . |
|
100 | + $this->_renderListItem($this->_currentPage - 1, $this->_getPreviousPageUrl(), $this->_previousPageSymbol) . |
|
101 | + $this->_renderPageList() . |
|
102 | + $this->_renderListItem($this->_currentPage + 1, $this->_getNextPageUrl(), $this->_nextPageSymbol) . |
|
103 | + $this->_renderListItem($this->_currentPage + 1, $this->_getLastPageUrl(), $this->_lastPageSymbol) . |
|
104 | + '</ul>'; |
|
105 | 105 | } |
106 | 106 | |
107 | 107 | /** |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | * |
114 | 114 | * @return string |
115 | 115 | */ |
116 | - private function _renderListItem(int $pagenumber, ? string $url, ? string $symbol = null): string |
|
116 | + private function _renderListItem(int $pagenumber, ? string $url, ? string $symbol = null) : string |
|
117 | 117 | { |
118 | 118 | if ($url === null) |
119 | 119 | { |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | $end = $this->_getEndPage(); |
180 | 180 | |
181 | 181 | $pageList = ''; |
182 | - for ($i = $this->_getStartPage(); $i <= $end; $i ++) |
|
182 | + for ($i = $this->_getStartPage(); $i <= $end; $i++) |
|
183 | 183 | { |
184 | 184 | $pageList .= $this->_renderListItem($i, $this->_buildPageUrl($i)); |
185 | 185 | } |
@@ -16,7 +16,7 @@ |
||
16 | 16 | * @return array |
17 | 17 | * @throws \RuntimeException |
18 | 18 | */ |
19 | - public function parameterizeQuery(? string $queryString = null): array |
|
19 | + public function parameterizeQuery(? string $queryString = null) : array |
|
20 | 20 | { |
21 | 21 | if (empty($queryString)) |
22 | 22 | { |
@@ -59,7 +59,7 @@ |
||
59 | 59 | /** |
60 | 60 | * @return null|Relation |
61 | 61 | */ |
62 | - public function getRelation(): ?Relation |
|
62 | + public function getRelation(): ? Relation |
|
63 | 63 | { |
64 | 64 | return $this->_relation; |
65 | 65 | } |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | /** @var Column $column */ |
154 | 154 | $column = \array_first( |
155 | 155 | $this->_columns, |
156 | - function ($index, $column) use ($columnName) |
|
156 | + function($index, $column) use ($columnName) |
|
157 | 157 | { |
158 | 158 | /** @var Column $column */ |
159 | 159 | return $column->getName() === $columnName; |
@@ -293,7 +293,7 @@ discard block |
||
293 | 293 | private function _fetchHeaders(): array |
294 | 294 | { |
295 | 295 | return array_map( |
296 | - function ($column) |
|
296 | + function($column) |
|
297 | 297 | { |
298 | 298 | /** @var Column $column */ |
299 | 299 | return new Header($column); |
@@ -367,7 +367,7 @@ discard block |
||
367 | 367 | */ |
368 | 368 | private function _getColumnNames(): array |
369 | 369 | { |
370 | - return \array_map(function ($column) |
|
370 | + return \array_map(function($column) |
|
371 | 371 | { |
372 | 372 | /** @var Column $column */ |
373 | 373 | return $column->getName(); |
@@ -385,7 +385,7 @@ discard block |
||
385 | 385 | { |
386 | 386 | return \array_filter( |
387 | 387 | $this->_columns, |
388 | - function ($column) |
|
388 | + function($column) |
|
389 | 389 | { |
390 | 390 | /** @var Column $column */ |
391 | 391 | return $column->getRelation() === null; |