PluginProbe
FluentBoards – Project Management, Task Management, Goal Tracking, Kanban Board, and, Team Collaboration / 1.21
FluentBoards – Project Management, Task Management, Goal Tracking, Kanban Board, and, Team Collaboration v1.21
2.1.0 2.0.15 2.0.12 2.0.10 2.0.4 2.0.1 2.0.0 1.95.3 1.95.2 1.95 1.91.6 trunk 1.11 1.12 1.13 1.20 1.21 1.22 1.23 1.30 1.31 1.32 1.35 1.40 1.41 All 42 releases
fluent-boards / app / Services / Libs / csv / src / Plugin / ForbiddenNullValuesValidator.php

ForbiddenNullValuesValidator.php in FluentBoards – Project Management, Task Management, Goal Tracking, Kanban Board, and, Team Collaboration 1.21, at app/Services/Libs/csv/src/Plugin/ForbiddenNullValuesValidator.php

40 lines 801 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * This file is part of the League.csv library
4 *
5 * @license http://opensource.org/licenses/MIT
6 * @link https://github.com/thephpleague/csv/
7 * @version 7.2.0
8 * @package League.csv
9 *
10 * For the full copyright and license information, please view the LICENSE
11 * file that was distributed with this source code.
12 */
13 namespace League\Csv\Plugin;
14
15 /**
16 * A class to validate null value handling on data insertion into a CSV
17 *
18 * @package League.csv
19 * @since 7.0.0
20 *
21 */
22 class ForbiddenNullValuesValidator
23 {
24 /**
25 * Is the submitted row valid
26 *
27 * @param array $row
28 *
29 * @return bool
30 */
31 public function __invoke(array $row)
32 {
33 $res = array_filter($row, function ($value) {
34 return is_null($value);
35 });
36
37 return !$res;
38 }
39 }
40