Completed
Branch master (f3e226)
by Timo
07:27
created
src/Helpers/UrlHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
      * @return array
19 19
      * @throws \RuntimeException
20 20
      */
21
-    public static function parameterizeQuery(?string $queryString = null)
21
+    public static function parameterizeQuery(? string $queryString = null)
22 22
     {
23 23
         if (empty($queryString))
24 24
         {
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
@@ -254,11 +254,11 @@
 block discarded – undo
254 254
         }
255 255
 
256 256
         return '<ul class="pagination">' .
257
-               $this->_renderListItem($this->_currentPage - 1, $this->_getFirstPageUrl(), $this->_firstPageSymbol) .
258
-               $this->_renderListItem($this->_currentPage - 1, $this->_getPreviousPageUrl(), $this->_previousPageSymbol) .
259
-               $this->_renderPageList() .
260
-               $this->_renderListItem($this->_currentPage + 1, $this->_getNextPageUrl(), $this->_nextPageSymbol) .
261
-               $this->_renderListItem($this->_currentPage + 1, $this->_getLastPageUrl(), $this->_lastPageSymbol) .
262
-               '</ul>';
257
+                $this->_renderListItem($this->_currentPage - 1, $this->_getFirstPageUrl(), $this->_firstPageSymbol) .
258
+                $this->_renderListItem($this->_currentPage - 1, $this->_getPreviousPageUrl(), $this->_previousPageSymbol) .
259
+                $this->_renderPageList() .
260
+                $this->_renderListItem($this->_currentPage + 1, $this->_getNextPageUrl(), $this->_nextPageSymbol) .
261
+                $this->_renderListItem($this->_currentPage + 1, $this->_getLastPageUrl(), $this->_lastPageSymbol) .
262
+                '</ul>';
263 263
     }
264 264
 }
265 265
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
      *
190 190
      * @return string
191 191
      */
192
-    private function _renderListItem(string $pagenumber, ?string $url, ?string $symbol = null): string
192
+    private function _renderListItem(string $pagenumber, ? string $url, ? string $symbol = null) : string
193 193
     {
194 194
         if ($url === null)
195 195
         {
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
         }
203 203
 
204 204
         $class = '';
205
-        if (+ $pagenumber === $this->_currentPage)
205
+        if (+$pagenumber === $this->_currentPage)
206 206
         {
207 207
             $class = ' class="active"';
208 208
         }
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
         }
233 233
 
234 234
         $pageList = '';
235
-        for ($i = $start; $i <= $end; $i ++)
235
+        for ($i = $start; $i <= $end; $i++)
236 236
         {
237 237
             $pageList .= $this->_renderListItem($i, $this->_buildPageUrl($i));
238 238
         }
Please login to merge, or discard this patch.
src/Models/DataComponents/DataScout.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -136,8 +136,8 @@
 block discarded – undo
136 136
     public function render(): string
137 137
     {
138 138
         return '<form method="get" action="' . $this->_buildSearchUrl() .
139
-               '"><div class="row"><div class="col-md-10"><input name="search" class="form-control data-scout-input" placeholder="' .
140
-               $this->_placeholder . '"/></div><div class="col-md-2"><button type="submit" class="btn btn-primary">' .
141
-               $this->_buttonText . '</button></div></div></form>';
139
+                '"><div class="row"><div class="col-md-10"><input name="search" class="form-control data-scout-input" placeholder="' .
140
+                $this->_placeholder . '"/></div><div class="col-md-2"><button type="submit" class="btn btn-primary">' .
141
+                $this->_buttonText . '</button></div></div></form>';
142 142
     }
143 143
 }
144 144
\ No newline at end of file
Please login to merge, or discard this patch.
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.
src/Models/DataTable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@
 block discarded – undo
194 194
         }
195 195
 
196 196
         $headers = array_map(
197
-            function ($name)
197
+            function($name)
198 198
             {
199 199
                 return new Header($name);
200 200
             },
Please login to merge, or discard this patch.
src/DataTablesServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,12 +30,12 @@
 block discarded – undo
30 30
      */
31 31
     public function register()
32 32
     {
33
-        $this->app->bind('datatable', function ($app)
33
+        $this->app->bind('datatable', function($app)
34 34
         {
35 35
             return new DataTable($app->request);
36 36
         });
37 37
 
38
-        $this->app->booting(function ()
38
+        $this->app->booting(function()
39 39
         {
40 40
             $loader = AliasLoader::getInstance();
41 41
             $loader->alias('DataTable', DataTableFacade::class);
Please login to merge, or discard this patch.