@@ -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'); |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | public function buildButtons($config) |
| 73 | 73 | { |
| 74 | 74 | foreach ($this->buttons as $key => &$button) { |
| 75 | - if(is_string($button)) { |
|
| 75 | + if (is_string($button)) { |
|
| 76 | 76 | if (in_array($button, self::ACTIONS)) { |
| 77 | 77 | $class = self::BASE_ACTIONS[$button]; |
| 78 | 78 | $button = new $class; |