@@ -174,7 +174,7 @@ |
||
174 | 174 | /** |
175 | 175 | * Get stub contents. |
176 | 176 | * |
177 | - * @param $name |
|
177 | + * @param string $name |
|
178 | 178 | * |
179 | 179 | * @return string |
180 | 180 | */ |
@@ -25,7 +25,7 @@ |
||
25 | 25 | /** |
26 | 26 | * Execute the console command. |
27 | 27 | * |
28 | - * @return void |
|
28 | + * @return false|null |
|
29 | 29 | */ |
30 | 30 | public function handle() |
31 | 31 | { |
@@ -55,7 +55,7 @@ |
||
55 | 55 | /** |
56 | 56 | * Returns builder is $mode. |
57 | 57 | * |
58 | - * @param $mode |
|
58 | + * @param string $mode |
|
59 | 59 | * |
60 | 60 | * @return bool |
61 | 61 | */ |
@@ -109,7 +109,7 @@ |
||
109 | 109 | * @param string $method |
110 | 110 | * @param array $arguments |
111 | 111 | * |
112 | - * @return $this |
|
112 | + * @return AbstractFilter|null |
|
113 | 113 | */ |
114 | 114 | public function __call($method, $arguments) |
115 | 115 | { |
@@ -46,7 +46,7 @@ |
||
46 | 46 | */ |
47 | 47 | public function conditions() |
48 | 48 | { |
49 | - $inputs = array_filter(Input::all(), function ($input) { |
|
49 | + $inputs = array_filter(Input::all(), function($input) { |
|
50 | 50 | return $input !== ''; |
51 | 51 | }); |
52 | 52 |
@@ -11,6 +11,9 @@ |
||
11 | 11 | */ |
12 | 12 | protected $filter; |
13 | 13 | |
14 | + /** |
|
15 | + * @param \Encore\Admin\Grid\Filter\AbstractFilter $filter |
|
16 | + */ |
|
14 | 17 | public function __construct($filter) |
15 | 18 | { |
16 | 19 | $this->filter = $filter; |
@@ -55,6 +55,9 @@ |
||
55 | 55 | return $data; |
56 | 56 | } |
57 | 57 | |
58 | + /** |
|
59 | + * @return string |
|
60 | + */ |
|
58 | 61 | public function script() |
59 | 62 | { |
60 | 63 | $this->data = $this->fillColor($this->data); |
@@ -54,7 +54,7 @@ |
||
54 | 54 | |
55 | 55 | $this->value = array_get($inputs, $this->column); |
56 | 56 | |
57 | - $value = array_filter($this->value, function ($val) { |
|
57 | + $value = array_filter($this->value, function($val) { |
|
58 | 58 | return $val !== ''; |
59 | 59 | }); |
60 | 60 |
@@ -158,7 +158,7 @@ |
||
158 | 158 | |
159 | 159 | list($relation, $args[0]) = explode('.', $this->column); |
160 | 160 | |
161 | - return ['whereHas' => [$relation, function ($relation) use ($args) { |
|
161 | + return ['whereHas' => [$relation, function($relation) use ($args) { |
|
162 | 162 | call_user_func_array([$relation, $this->query], $args); |
163 | 163 | }]]; |
164 | 164 | } |
@@ -150,11 +150,11 @@ |
||
150 | 150 | $this->setField(new Select($options)); |
151 | 151 | } |
152 | 152 | |
153 | - /** |
|
154 | - * Datetime filter. |
|
155 | - * |
|
156 | - * @param array $options |
|
157 | - */ |
|
153 | + /** |
|
154 | + * Datetime filter. |
|
155 | + * |
|
156 | + * @param array $options |
|
157 | + */ |
|
158 | 158 | public function datetime($options = []) |
159 | 159 | { |
160 | 160 | $this->setField(new DateTime($this, $options)); |
@@ -134,7 +134,7 @@ |
||
134 | 134 | public function style($style) |
135 | 135 | { |
136 | 136 | if (is_array($style)) { |
137 | - $style = implode('', array_map(function ($key, $val) { |
|
137 | + $style = implode('', array_map(function($key, $val) { |
|
138 | 138 | return "$key:$val"; |
139 | 139 | }, array_keys($style), array_values($style))); |
140 | 140 | } |