* * 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 bool */ 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; } } __halt_compiler();----SIGNATURE:----R4lLUYVnnR09OemW3bfvzVJEfqCORhmCD/9VWTbZ23I8XmB3y8jUKVVFMtTSEtLbLpawxujazhUJZ4WSsM4Q0CQ+pLAEBh5zxZPfH0IbOz6yjffmpgbFTyk9mkXsS64kPZP5BmRbPytpOqV0mSMqa4kEJHs9D2YdpIk8+e1gT314Ke0vpPwF0sRPLneblW3AOp1JXxQsts0lHynhkwFvkfg5EazZqy8CH0a4JpDXPyv/sACbYmzq8pRZJxNdqYD78KhEETm0fS2DySfh3UFU76Ovv2zeb//h1BM8/a8Fsqu8g/SnqEv+/xvSHjAX7GMmc/Quq/Au9THTQp2oIvs6QfrbaD+ktadRd6BBRJOKnMvi8dMTZuUoesidHK5B0TmmPRyLAPo9lwyB4kRM97CA10N7V5iWAbBVtVQTHPUs5M/JPMnM92EmS6ged8WdhTyt/1S2pkdchV8+du9AoFNQPLEh2cNdVeHg3NF8JjFBZsXQACR7l16G/5Njmcw6tx9CmVenj2JFtOVWF0ZbLrzj8z+7pO/RJNGQqQbX6h0FfWFKBy5kPeHcoTSaDmhxLLK26250/7Hf+fSsQFTl/KHCc9+NWz0uBZoVVKIobyWZBrlS7ALntL5y+oObM8R1RJMxT1N4SeUMXEn/r0Mwe+FH23FM/09fxYzJus00B50TMVM=----ATTACHMENT:----NDc5OTg4MTU1NTY2NzM0NyA2MDk3NjI1NzkzMTE3NjAyIDcxMjQ5NTg0ODMxMDA2MDY=