Passed
Push — master ( 95ad5c...b60db5 )
by Churakov
03:31
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
         $this->loadViewsFrom(__DIR__ . '/../resources/views', 'churakovmike_easygrid');
18 18
         $this->loadTranslationsFrom(__DIR__ . '/../resources/lang', 'churakovmike_easygrid');
19 19
         require_once __DIR__ . '/functions.php';
20
-        Blade::directive('easy_grid', function ($config) {
20
+        Blade::directive('easy_grid', function($config) {
21 21
             return "<?php echo grid($config) ?>";
22 22
         });
23 23
     }
Please login to merge, or discard this patch.
src/Helpers/PaginationHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,6 +34,6 @@
 block discarded – undo
34 34
     public function getNextUrl(): string
35 35
     {
36 36
         //TODO: доделать подстановку параметров
37
-        return url()->current() . '/?page=' .  ($this->paginator->currentPage() - 1);
37
+        return url()->current() . '/?page=' . ($this->paginator->currentPage() - 1);
38 38
     }
39 39
 }
Please login to merge, or discard this patch.
src/Grid.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
             }
124 124
 
125 125
             if (is_array($column)) {
126
-                if (isset($column['class']) && class_exists($column['class']) ) {
126
+                if (isset($column['class']) && class_exists($column['class'])) {
127 127
                     $column = new $column['class']($column);
128 128
                     if (!is_a($column, ActionColumn::class)) {
129 129
                         throw new \Exception('Column class must inherit from BaseColumn class');
Please login to merge, or discard this patch.
src/Columns/ActionColumn.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
                 continue;
87 87
             }
88 88
 
89
-            if(is_string($button)) {
89
+            if (is_string($button)) {
90 90
                 if (in_array($button, self::ACTIONS)) {
91 91
                     $class = self::BASE_ACTIONS[$button];
92 92
                     $button = new $class;
Please login to merge, or discard this patch.