|
@@ -40,9 +40,9 @@ |
|
|
block discarded – undo |
|
40
|
40
|
*/ |
|
41
|
41
|
public function getData(): array |
|
42
|
42
|
{ |
|
43
|
|
- return collect(\get_object_vars($this))->filter(function ($value, $name) { |
|
|
43
|
+ return collect(\get_object_vars($this))->filter(function($value, $name) { |
|
44
|
44
|
return \in_array($name, $this->getFields()) && !empty($value); |
|
45
|
|
- })->map(function ($value, $name) { |
|
|
45
|
+ })->map(function($value, $name) { |
|
46
|
46
|
$methodName = $this->getCamelMethodName($name); |
|
47
|
47
|
|
|
48
|
48
|
return \method_exists($this, $methodName) ? $this->$methodName() : $value; |
Please login to merge, or discard this patch.