@@ -15,7 +15,7 @@ |
||
15 | 15 | */ |
16 | 16 | public static function clearArray($data) |
17 | 17 | { |
18 | - return array_filter($data, function ($item) { |
|
18 | + return array_filter($data, function($item) { |
|
19 | 19 | if ($item === null) |
20 | 20 | return false; |
21 | 21 | return true; |
@@ -16,8 +16,9 @@ |
||
16 | 16 | public static function clearArray($data) |
17 | 17 | { |
18 | 18 | return array_filter($data, function ($item) { |
19 | - if ($item === null) |
|
20 | - return false; |
|
19 | + if ($item === null) { |
|
20 | + return false; |
|
21 | + } |
|
21 | 22 | return true; |
22 | 23 | }); |
23 | 24 | } |
@@ -6,7 +6,7 @@ |
||
6 | 6 | |
7 | 7 | function clear_array($data) |
8 | 8 | { |
9 | - return array_filter($data, function ($item) { |
|
9 | + return array_filter($data, function($item) { |
|
10 | 10 | if ($item === null) |
11 | 11 | return false; |
12 | 12 | return true; |
@@ -7,8 +7,9 @@ |
||
7 | 7 | function clear_array($data) |
8 | 8 | { |
9 | 9 | return array_filter($data, function ($item) { |
10 | - if ($item === null) |
|
11 | - return false; |
|
10 | + if ($item === null) { |
|
11 | + return false; |
|
12 | + } |
|
12 | 13 | return true; |
13 | 14 | }); |
14 | 15 | } |