summaryrefslogtreecommitdiffstats
path: root/src/Exporter/SkipNullValuesFormatter.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Exporter/SkipNullValuesFormatter.php')
-rw-r--r--src/Exporter/SkipNullValuesFormatter.php37
1 files changed, 0 insertions, 37 deletions
diff --git a/src/Exporter/SkipNullValuesFormatter.php b/src/Exporter/SkipNullValuesFormatter.php
deleted file mode 100644
index 62987a4..0000000
--- a/src/Exporter/SkipNullValuesFormatter.php
+++ /dev/null
@@ -1,37 +0,0 @@
-<?php
-/**
-* This file is part of the League.csv library
-*
-* @license http://opensource.org/licenses/MIT
-* @link https://github.com/thephpleague/csv/
-* @version 7.0.0
-* @package League.csv
-*
-* For the full copyright and license information, please view the LICENSE
-* file that was distributed with this source code.
-*/
-namespace League\Csv\Exporter;
-
-/**
- * A class to remove null value from data before insertion into a CSV
- *
- * @package League.csv
- * @since 7.0.0
- *
- */
-class SkipNullValuesFormatter
-{
- /**
- * remove null value form the submitted array
- *
- * @param array $row
- *
- * @return array
- */
- public function __invoke(array $row)
- {
- return array_filter($row, function ($value) {
- return ! is_null($value);
- });
- }
-}