@@ -32,8 +32,8 @@ |
||
| 32 | 32 | ) |
| 33 | 33 | ->addTypeGuesser( |
| 34 | 34 | $this->getMockBuilder('Symfony\Component\Form\Extension\Validator\ValidatorTypeGuesser') |
| 35 | - ->disableOriginalConstructor() |
|
| 36 | - ->getMock() |
|
| 35 | + ->disableOriginalConstructor() |
|
| 36 | + ->getMock() |
|
| 37 | 37 | ) |
| 38 | 38 | ->getFormFactory(); |
| 39 | 39 | |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | return $this->defaultFormManipulator; |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | - $config = Setup::createAnnotationMetadataConfiguration([__DIR__ . '/../Fixtures/Entity'], true, null, null, false); |
|
| 50 | + $config = Setup::createAnnotationMetadataConfiguration([__DIR__.'/../Fixtures/Entity'], true, null, null, false); |
|
| 51 | 51 | $entityManager = EntityManager::create(['driver' => 'pdo_sqlite'], $config); |
| 52 | 52 | $doctrineInfo = new \A2lix\AutoFormBundle\ObjectInfo\DoctrineInfo($entityManager->getMetadataFactory()); |
| 53 | 53 | |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | 'excluded_fields' => [], |
| 44 | 44 | ]); |
| 45 | 45 | |
| 46 | - $resolver->setNormalizer('data_class', function (Options $options, $value) { |
|
| 46 | + $resolver->setNormalizer('data_class', function(Options $options, $value) { |
|
| 47 | 47 | if (empty($value)) { |
| 48 | 48 | throw new \RuntimeException(sprintf('Missing "data_class" option of "AutoFormType".')); |
| 49 | 49 | } |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | $processor = new Processor(); |
| 23 | 23 | $config = $processor->processConfiguration(new Configuration(), $configs); |
| 24 | 24 | |
| 25 | - $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 25 | + $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 26 | 26 | $loader->load('a2lix_form.xml'); |
| 27 | 27 | $loader->load('object_info.xml'); |
| 28 | 28 | |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | ->defaultValue(['id', 'locale', 'translatable']) |
| 31 | 31 | ->beforeNormalization() |
| 32 | 32 | ->ifString() |
| 33 | - ->then(function ($v) { |
|
| 33 | + ->then(function($v) { |
|
| 34 | 34 | return preg_split('/\s*,\s*/', $v); |
| 35 | 35 | }) |
| 36 | 36 | ->end() |
@@ -26,10 +26,10 @@ |
||
| 26 | 26 | // Creation |
| 27 | 27 | $media1 = new Media(); |
| 28 | 28 | $media1->setUrl('http://example.org/media1') |
| 29 | - ->setDescription('media1 desc'); |
|
| 29 | + ->setDescription('media1 desc'); |
|
| 30 | 30 | $media2 = new Media(); |
| 31 | 31 | $media2->setUrl('http://example.org/media2') |
| 32 | - ->setDescription('media2 desc'); |
|
| 32 | + ->setDescription('media2 desc'); |
|
| 33 | 33 | |
| 34 | 34 | $product = new Product(); |
| 35 | 35 | $product->setUrl('a2lix.fr') |