@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | $from_input = $this |
85 | 85 | ->grid |
86 | 86 | ->getInputProcessor() |
87 | - ->getFilterValue($this->name . '_start'); |
|
87 | + ->getFilterValue($this->name.'_start'); |
|
88 | 88 | if ($from_input === null) { |
89 | 89 | return $this->getDefaultStartValue(); |
90 | 90 | } else { |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | $from_input = $this |
99 | 99 | ->grid |
100 | 100 | ->getInputProcessor() |
101 | - ->getFilterValue($this->name . '_end'); |
|
101 | + ->getFilterValue($this->name.'_end'); |
|
102 | 102 | if ($from_input === null) { |
103 | 103 | return $this->getDefaultEndValue(); |
104 | 104 | } else { |
@@ -139,14 +139,14 @@ discard block |
||
139 | 139 | 'format' => 'YYYY-MM-DD', |
140 | 140 | 'ranges' => [ |
141 | 141 | 'previous_month' => [ |
142 | - 'Previous month (' . $prev_month->format('F') . ')', |
|
142 | + 'Previous month ('.$prev_month->format('F').')', |
|
143 | 143 | [ |
144 | 144 | $prev_month->startOfMonth()->format('Y-m-d'), |
145 | 145 | $prev_month->endOfMonth()->format('Y-m-d'), |
146 | 146 | ] |
147 | 147 | ], |
148 | 148 | 'current_month' => [ |
149 | - 'Cur. month (' . date('F'). ')', |
|
149 | + 'Cur. month ('.date('F').')', |
|
150 | 150 | [ |
151 | 151 | $carbon->startOfMonth()->format('Y-m-d'), |
152 | 152 | $carbon->endOfMonth()->format('Y-m-d') |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | if (empty($trace['class']) || !$this instanceof $trace['class']) { |
99 | 99 | # may be closure |
100 | 100 | if (isset($trace['file'], $trace['line'])) { |
101 | - $str .= $trace['file'] . $trace['line']; |
|
101 | + $str .= $trace['file'].$trace['line']; |
|
102 | 102 | } |
103 | 103 | } |
104 | 104 | } |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | */ |
126 | 126 | protected function sortColumns() |
127 | 127 | { |
128 | - $this->config->getColumns()->sort(function (FieldConfig $a, FieldConfig $b) { |
|
128 | + $this->config->getColumns()->sort(function(FieldConfig $a, FieldConfig $b) { |
|
129 | 129 | return $a->getOrder() > $b->getOrder(); |
130 | 130 | }); |
131 | 131 | } |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | */ |
68 | 68 | public function getSorting() |
69 | 69 | { |
70 | - return $_ =& $this->input['sort']; |
|
70 | + return $_ = & $this->input['sort']; |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | public function getSortingHiddenInputsHtml() |
@@ -95,11 +95,11 @@ discard block |
||
95 | 95 | $cookies_str = ''; |
96 | 96 | foreach ($_COOKIE as $key => $val) { |
97 | 97 | if (strpos($key, $this->getKey()) !== false) { |
98 | - $cookies_str .= $key . json_encode($val); |
|
98 | + $cookies_str .= $key.json_encode($val); |
|
99 | 99 | } |
100 | 100 | } |
101 | 101 | |
102 | - return md5($cookies_str . $this->getKey() . json_encode($this->getInput())); |
|
102 | + return md5($cookies_str.$this->getKey().json_encode($this->getInput())); |
|
103 | 103 | } |
104 | 104 | |
105 | 105 | /** |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | public function getUrl(array $new_params = []) |
190 | 190 | { |
191 | 191 | if (null !== $query_string = $this->getQueryString($new_params)) { |
192 | - $query_string = '?' . $query_string; |
|
192 | + $query_string = '?'.$query_string; |
|
193 | 193 | } |
194 | 194 | $request = Request::instance(); |
195 | 195 | return $request->getSchemeAndHttpHost() |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | public function boot() |
32 | 32 | { |
33 | 33 | $pkg_path = dirname(__DIR__); |
34 | - $views_path = $pkg_path . '/resources/views'; |
|
34 | + $views_path = $pkg_path.'/resources/views'; |
|
35 | 35 | |
36 | 36 | # only for Laravel 4 & some of 5-dev |
37 | 37 | if (version_compare(Application::VERSION, '5.0.0', '<')) { |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | $this->app['view']->addNamespace('grids', $views_path); |
40 | 40 | } else { |
41 | 41 | $this->loadViewsFrom($views_path, 'grids'); |
42 | - $this->loadTranslationsFrom($pkg_path . '/resources/lang', 'grids'); |
|
42 | + $this->loadTranslationsFrom($pkg_path.'/resources/lang', 'grids'); |
|
43 | 43 | $this->publishes([ |
44 | 44 | $views_path => base_path('resources/views/vendor/grids') |
45 | 45 | ]); |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | public function initialize(Grid $grid) |
64 | 64 | { |
65 | 65 | parent::initialize($grid); |
66 | - Event::listen(Grid::EVENT_PREPARE, function (Grid $grid) { |
|
66 | + Event::listen(Grid::EVENT_PREPARE, function(Grid $grid) { |
|
67 | 67 | if ($this->grid !== $grid) { |
68 | 68 | return; |
69 | 69 | } |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | public function getOnFileCreate() |
265 | 265 | { |
266 | 266 | if ($this->on_file_create === null) { |
267 | - $this->on_file_create = function (LaravelExcelWriter $excel) { |
|
267 | + $this->on_file_create = function(LaravelExcelWriter $excel) { |
|
268 | 268 | $excel->sheet($this->getSheetName(), $this->getOnSheetCreate()); |
269 | 269 | }; |
270 | 270 | } |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | public function getOnSheetCreate() |
289 | 289 | { |
290 | 290 | if ($this->on_sheet_create === null) { |
291 | - $this->on_sheet_create = function (LaravelExcelWorksheet $sheet) { |
|
291 | + $this->on_sheet_create = function(LaravelExcelWorksheet $sheet) { |
|
292 | 292 | $sheet->fromArray($this->getData(), null, 'A1', false, false); |
293 | 293 | }; |
294 | 294 | } |