Completed
Pull Request — master (#3)
by Denis
01:34
created
src/GridViewServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 
18 18
 		require_once __DIR__ . '/functions.php';
19 19
 
20
-        \Blade::directive('grid', function ($expression) {
20
+        \Blade::directive('grid', function($expression) {
21 21
             return "<?php echo grid($expression)->render() ?>";
22 22
         });
23 23
 
Please login to merge, or discard this patch.
src/GridViewRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $request = Request::instance();
33 33
 
34 34
         return new GridViewRequest([
35
-            'page' => (int)$request->input($gridId == 0 ? 'page' : 'grid.' . $gridId . '.page', 1),
35
+            'page' => (int) $request->input($gridId == 0 ? 'page' : 'grid.' . $gridId . '.page', 1),
36 36
             'sortColumn' => $request->input($gridId == 0 ? 'sort' : 'grid.' . $gridId . '.sort'),
37 37
             'sortOrder' => $request->input($gridId == 0 ? 'order' : 'grid.' . $gridId . '.order'),
38 38
             'filters' => $request->input($gridId == 0 ? 'filters' : 'grid.' . $gridId . '.filters', []),
Please login to merge, or discard this patch.
src/DataProviders/ArrayDataProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,6 +28,6 @@
 block discarded – undo
28 28
      */
29 29
     public function getData(array $filters, string $orderBy, string $orderSort, int $page, int $perPage)
30 30
     {
31
-        return array_splice($this->data, ($page -1) * $perPage, $perPage);
31
+        return array_splice($this->data, ($page - 1) * $perPage, $perPage);
32 32
     }
33 33
 }
34 34
\ No newline at end of file
Please login to merge, or discard this patch.
src/Columns/Actions/EditAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,6 +8,6 @@
 block discarded – undo
8 8
 {
9 9
     public function __construct(string $url, string $content = '<i class="fa fa-edit"></i>')
10 10
     {
11
-        parent::__construct($url,  $content, 'GET');
11
+        parent::__construct($url, $content, 'GET');
12 12
     }
13 13
 }
14 14
\ No newline at end of file
Please login to merge, or discard this patch.