for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Starkerxp\CampaignBundle\Form\Type;
use Starkerxp\StructureBundle\Form\Type\AbstractType;
use Symfony\Component\Form\Extension\Core\Type;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Validator\Constraints;
class TemplateType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
$builder
->add(
'type',
Type\ChoiceType::class,
[
"choices" => [
"email",
"sms",
"courrier",
],
]
)
'name',
Type\TextType::class,
'constraints' => [
new Constraints\NotBlank(),
new Constraints\Length(['min' => 3]),
'object',
'message',
Type\TextareaType::class,
new Constraints\Length(['min' => 10]),
);
}
This check marks files that end in a newline character, i.e. an empy line.
This check marks files that end in a newline character, i.e. an empy line.