<commit_before><?php

namespace AppBundle\Form\Type;

use AppBundle\Entity as Entity;

use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Form\Extension\Core\Type as Type;

/**
 * Class CustomerOrderStatusBookedType
 * @package AppBundle\Form\Type
 */
class CustomerOrderStatusCancelledType extends CustomerOrderType
{
	/**
	 * {@inheritdoc}
	 */
	public function buildForm(FormBuilderInterface $builder, array $options)
	{
		$builder->add('cancelledOn', UserDateTimePickerType::class, ['label' => 'customerOrder.label.cancelledOn']);

		if ($builder->getData()->getCancellationNotes()) {
			$builder->add('cancellationNotes', UserTextAreaPrependType::class, [
				'label' => 'customerOrder.label.cancellationNotes', 'trim' => true, 'data' => $builder->getData(), 'data_class' => Entity\CustomerOrder::class]);
		} else {
			$builder->add('cancellationNotes', UserTextAreaType::class, ['label' => 'customerOrder.label.cancellationNotes', 'trim' => true]);
		}
    }
}<commit_msg>cancelledAt<commit_after><?php

namespace AppBundle\Form\Type;

use AppBundle\Entity as Entity;

use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Form\Extension\Core\Type as Type;

/**
 * Class CustomerOrderStatusBookedType
 * @package AppBundle\Form\Type
 */
class CustomerOrderStatusCancelledType extends CustomerOrderType
{
	/**
	 * {@inheritdoc}
	 */
	public function buildForm(FormBuilderInterface $builder, array $options)
	{
		$builder->add('cancelledAt', UserDateTimePickerType::class, ['label' => 'customerOrder.label.cancelledAt']);

		if ($builder->getData()->getCancellationNotes()) {
			$builder->add('cancellationNotes', UserTextAreaPrependType::class, [
				'label' => 'customerOrder.label.cancellationNotes', 'trim' => true, 'data' => $builder->getData(), 'data_class' => Entity\CustomerOrder::class]);
		} else {
			$builder->add('cancellationNotes', UserTextAreaType::class, ['label' => 'customerOrder.label.cancellationNotes', 'trim' => true]);
		}
    }
}
{'fraction_non_alphanumeric': 0.15731462925851702, 'fraction_numerical': 0.0, 'mean_word_length': 6.106761565836299, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 29, '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': '2140965', 'n_tokens_mistral': 638, 'n_tokens_neox': 606, 'n_words': 102}