original_string: public function apply( $rules ) {
  		$satisfied = true;
  
  		if ( empty( $rules ) || ! is_array( $rules ) ) {
  			return $satisfied;
  		}
  
  		// If no any valid rules, consider as satisfied.
  		if ( ! is_null( $rule = $this->get_rule( $rules ) ) ) {
  			return $rule->apply( $this->data );
  		}
  
  		return $satisfied;
  	}
code: public function apply( $rules ) {
  		$satisfied = true;
  
  		if ( empty( $rules ) || ! is_array( $rules ) ) {
  			return $satisfied;
  		}
  
  		// If no any valid rules, consider as satisfied.
  		if ( ! is_null( $rule = $this->get_rule( $rules ) ) ) {
  			return $rule->apply( $this->data );
  		}
  
  		return $satisfied;
  	}
code_tokens: public function apply ( $ rules ) { $ satisfied = true ; if ( empty ( $ rules ) || ! is_array ( $ rules ) ) { return $ satisfied ; } // If no any valid rules, consider as satisfied. if ( ! is_null ( $ rule = $ this -> get_rule ( $ rules ) ) ) { return $ rule -> apply ( $ this -> data ) ; } return $ satisfied ; }
docstring: Check rules is satisfied the conditions.
  
  @param  array $rules
  @return bool
docstring_tokens: Check rules is satisfied the conditions .