From 46b77928f746a4231d064774b5b67fd892c7ce86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Sun, 4 Aug 2013 17:50:34 +0200 Subject: rm vendor --- .../form/Symfony/Component/Form/Util/FormUtil.php | 42 ---------------------- 1 file changed, 42 deletions(-) delete mode 100644 vendor/symfony/form/Symfony/Component/Form/Util/FormUtil.php (limited to 'vendor/symfony/form/Symfony/Component/Form/Util/FormUtil.php') diff --git a/vendor/symfony/form/Symfony/Component/Form/Util/FormUtil.php b/vendor/symfony/form/Symfony/Component/Form/Util/FormUtil.php deleted file mode 100644 index 7647691e..00000000 --- a/vendor/symfony/form/Symfony/Component/Form/Util/FormUtil.php +++ /dev/null @@ -1,42 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Form\Util; - -/** - * @author Bernhard Schussek - */ -class FormUtil -{ - /** - * This class should not be instantiated - */ - private function __construct() {} - - /** - * Returns whether the given data is empty. - * - * This logic is reused multiple times throughout the processing of - * a form and needs to be consistent. PHP's keyword `empty` cannot - * be used as it also considers 0 and "0" to be empty. - * - * @param mixed $data - * - * @return Boolean - */ - public static function isEmpty($data) - { - // Should not do a check for array() === $data!!! - // This method is used in occurrences where arrays are - // not considered to be empty, ever. - return null === $data || '' === $data; - } -} -- cgit v1.2.3