Completed
Push — master ( a35e5d...c48d7b )
by Timo
03:03
created
src/Models/DataComponents/DataScout.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
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
             {
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -118,9 +118,9 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Models/DataTable.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
         /** @var Column $column */
162 162
         $column = \array_first(
163 163
             $this->_columns,
164
-            function ($index, $column) use ($columnName)
164
+            function($index, $column) use ($columnName)
165 165
             {
166 166
                 return $column->name === $columnName;
167 167
             }
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
         }
274 274
 
275 275
         $headers = array_map(
276
-            function ($column)
276
+            function($column)
277 277
             {
278 278
                 return Header::createFromColumn($column);
279 279
             },
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
      */
360 360
     private function _getColumnNames(): array
361 361
     {
362
-        return \array_map(function ($column) { return $column->name; }, $this->_columns);
362
+        return \array_map(function($column) { return $column->name; }, $this->_columns);
363 363
     }
364 364
 
365 365
     /**
Please login to merge, or discard this patch.
src/Models/DataComponents/Paginator.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -96,12 +96,12 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Helpers/UrlHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
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
         {
Please login to merge, or discard this patch.