Commit 2ddb803
committed
Improve array value handling
Added:
- Condition to ignore attribute if an array is empty after its filtered.
- Conditions to accept only numbers and (trimmed) strings.
Changed:
- Replaced `array_filter()` with `array_reduce()` to preserve only acceptable values.
Removed:
- Unnecessary usage of custom `is_blank()` function and rely on the fallback filter.1 parent b945157 commit 2ddb803
1 file changed
+16
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
65 | 73 | | |
66 | | - | |
67 | 74 | | |
68 | 75 | | |
69 | 76 | | |
| |||
0 commit comments