@@ -17,7 +17,7 @@ |
||
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 | } |
@@ -34,6 +34,6 @@ |
||
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 | } |
@@ -123,7 +123,7 @@ |
||
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'); |
@@ -86,7 +86,7 @@ |
||
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; |