<commit_before><?php
/**
 * Joomla! entity library.
 *
 * @copyright  Copyright (C) 2017 <NAME>, Inc. All rights reserved.
 * @license    See COPYING.txt
 */

namespace Phproberto\Joomla\Entity\Validation\Rule;

use Phproberto\Joomla\Entity\Validation\Rule;
use Phproberto\Joomla\Entity\Validation\Contracts\Rule as RuleContract;

/**
 * Check that a column is null or an empty string.
 *
 * @since   __DEPLOY_VERSION__
 */
class IsNullOrEmptyString extends Rule implements RuleContract
{
	/**
	 * Check if a value is valid.
	 *
	 * @param   mixed  $value  Value to check
	 *
	 * @return  boolean
	 */
	public function passes($value)
	{
		$isNullValidator = new IsNull;
		$emptyStringValidator = new EmptyString;

		return $isNullValidator->passes($value) || $emptyStringValidator->passes($value);
	}
}<commit_msg>[fix] missing use in isNullOrEmptyString<commit_after><?php
/**
 * Joomla! entity library.
 *
 * @copyright  Copyright (C) 2017 <NAME>, Inc. All rights reserved.
 * @license    See COPYING.txt
 */

namespace Phproberto\Joomla\Entity\Validation\Rule;

use Phproberto\Joomla\Entity\Validation\Rule;
use Phproberto\Joomla\Entity\Validation\Rule\IsNull;
use Phproberto\Joomla\Entity\Validation\Rule\IsEmptyString;
use Phproberto\Joomla\Entity\Validation\Contracts\Rule as RuleContract;

/**
 * Check that a column is null or an empty string.
 *
 * @since   __DEPLOY_VERSION__
 */
class IsNullOrEmptyString extends Rule implements RuleContract
{
	/**
	 * Check if a value is valid.
	 *
	 * @param   mixed  $value  Value to check
	 *
	 * @return  boolean
	 */
	public function passes($value)
	{
		$isNullValidator = new IsNull;
		$emptyStringValidator = new IsEmptyString;

		return $isNullValidator->passes($value) || $emptyStringValidator->passes($value);
	}
}
{'fraction_non_alphanumeric': 0.11412429378531073, 'fraction_numerical': 0.004519774011299435, 'mean_word_length': 4.074498567335244, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6530182', 'n_tokens_mistral': 597, 'n_tokens_neox': 566, 'n_words': 144}