@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | |
66 | 66 | $this->value = Arr::get($inputs, $this->column); |
67 | 67 | |
68 | - $value = array_filter($this->value, function ($val) { |
|
68 | + $value = array_filter($this->value, function($val) { |
|
69 | 69 | return $val !== ''; |
70 | 70 | }); |
71 | 71 | |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | */ |
106 | 106 | protected function setupDatetime($options = []) |
107 | 107 | { |
108 | - $endDay=$options['endDay']??false;unset($options['endDay']); |
|
108 | + $endDay = $options['endDay']??false; unset($options['endDay']); |
|
109 | 109 | |
110 | 110 | $options['format'] = Arr::get($options, 'format', 'YYYY-MM-DD HH:mm:ss'); |
111 | 111 | $options['locale'] = Arr::get($options, 'locale', config('app.locale')); |
@@ -113,8 +113,8 @@ discard block |
||
113 | 113 | $startOptions = json_encode($options); |
114 | 114 | $endOptions = json_encode($options + ['useCurrent' => false]); |
115 | 115 | |
116 | - if($endDay){ |
|
117 | - $options['format']='YYYY-MM-DD 23:59:59'; |
|
116 | + if ($endDay) { |
|
117 | + $options['format'] = 'YYYY-MM-DD 23:59:59'; |
|
118 | 118 | $endOptions = json_encode($options + ['useCurrent' => false]); |
119 | 119 | } |
120 | 120 |
@@ -297,7 +297,7 @@ discard block |
||
297 | 297 | */ |
298 | 298 | public function date($options = []) |
299 | 299 | { |
300 | - return $this->datetime($options+['format' => 'YYYY-MM-DD']); |
|
300 | + return $this->datetime($options + ['format' => 'YYYY-MM-DD']); |
|
301 | 301 | } |
302 | 302 | |
303 | 303 | /** |
@@ -453,7 +453,7 @@ discard block |
||
453 | 453 | |
454 | 454 | list($relation, $args[0]) = explode('.', $this->column); |
455 | 455 | |
456 | - return ['whereHas' => [$relation, function ($relation) use ($args) { |
|
456 | + return ['whereHas' => [$relation, function($relation) use ($args) { |
|
457 | 457 | call_user_func_array([$relation, $this->query], $args); |
458 | 458 | }]]; |
459 | 459 | } |