PluginProbe
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder / 1.2.4
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder v1.2.4
6.2.14 6.2.13 6.2.12 6.2.10 6.2.11 6.2.9 6.2.8 6.2.7 6.2.6 6.2.5 6.2.4 6.2.3 6.2.2 3.6.22 3.6.31 3.6.40 3.6.41 3.6.42 3.6.50 3.6.51 3.6.60 3.6.61 3.6.62 3.6.64 3.6.65 All 196 releases
fluentform / app / Services / csv / src / Plugin / ForbiddenNullValuesValidator.php

ForbiddenNullValuesValidator.php in Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder 1.2.4, at app/Services/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 8.2.2
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 null === $value;
35 });
36
37 return !$res;
38 }
39 }
40