# fluent-boards/trunk/app/Services/Libs/csv/src/Plugin/SkipNullValuesFormatter.php

FluentBoards – Project Management, Task Management, Goal Tracking, Kanban Board, and, Team Collaboration, version trunk. 38 lines.

- Page: https://pluginprobe.com/plugins/fluent-boards/trunk/code/app/Services/Libs/csv/src/Plugin/SkipNullValuesFormatter.php
- Raw: https://pluginprobe.com/plugins/fluent-boards/trunk/raw/app/Services/Libs/csv/src/Plugin/SkipNullValuesFormatter.php
- Modified: 2024-05-31T06:41:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluent-boards/trunk/code/app/Services/Libs/csv/src/Plugin/SkipNullValuesFormatter.php#L10-L20`.

```php
<?php
/**
* This file is part of the League.csv library
*
* @license http://opensource.org/licenses/MIT
* @link https://github.com/thephpleague/csv/
* @version 7.2.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\Plugin;

/**
 *  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);
        });
    }
}

```
