Skip to content

Commit 3e91406

Browse files
php-cs-fixer round
1 parent 9aad043 commit 3e91406

11 files changed

+27
-27
lines changed

src/Bridge/FormFactory/ConsoleFormWithDefaultValuesAndOptionsFactory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function create($formType, InputInterface $input, array $options = [])
4444
$formBuilder = $this->formFactory->createBuilder($formType, null, $options);
4545

4646
foreach ($formBuilder as $name => $childBuilder) {
47-
/** @var FormBuilderInterface $childBuilder */
47+
/* @var FormBuilderInterface $childBuilder */
4848
if (!$input->hasOption($name)) {
4949
continue;
5050
}

test/AppKernel.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,22 @@ public function registerBundles()
1313
{
1414
return array(
1515
new FrameworkBundle(),
16-
new SymfonyConsoleFormBundle()
16+
new SymfonyConsoleFormBundle(),
1717
);
1818
}
1919

2020
public function registerContainerConfiguration(LoaderInterface $loader)
2121
{
22-
$loader->load(__DIR__ . '/config.yml');
22+
$loader->load(__DIR__.'/config.yml');
2323
}
2424

2525
public function getCacheDir()
2626
{
27-
return __DIR__ . '/temp/cache';
27+
return __DIR__.'/temp/cache';
2828
}
2929

3030
public function getLogDir()
3131
{
32-
return __DIR__ . '/temp/logs';
32+
return __DIR__.'/temp/logs';
3333
}
3434
}

test/Command/PrintFormDataCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ class PrintFormDataCommand extends DynamicFormBasedCommand
1010
{
1111
protected function execute(InputInterface $input, OutputInterface $output)
1212
{
13-
$output->write(print_r($this->formData(),true));
13+
$output->write(print_r($this->formData(), true));
1414
}
1515
}

test/Form/AddressType.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function buildForm(FormBuilderInterface $builder, array $options)
1515
'street',
1616
'text',
1717
[
18-
'label' => 'Street'
18+
'label' => 'Street',
1919
]
2020
);
2121
}
@@ -24,7 +24,7 @@ public function setDefaultOptions(OptionsResolverInterface $resolver)
2424
{
2525
$resolver->setDefaults(
2626
[
27-
'data_class' => 'Matthias\SymfonyConsoleForm\Tests\Form\Data\Address'
27+
'data_class' => 'Matthias\SymfonyConsoleForm\Tests\Form\Data\Address',
2828
]
2929
);
3030
}

test/Form/ColorType.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ public function buildForm(FormBuilderInterface $builder, array $options)
1515
'choices' => array(
1616
'red' => 'Red',
1717
'blue' => 'Blue',
18-
'yellow' => 'Yellow'
18+
'yellow' => 'Yellow',
1919
),
20-
'data' => 'red'
20+
'data' => 'red',
2121
));
2222
}
2323

test/Form/ColorWithChoicesAsValuesType.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ public function buildForm(FormBuilderInterface $builder, array $options)
1515
'choices' => array(
1616
'Red' => 'red',
1717
'Blue' => 'blue',
18-
'Yellow' => 'yellow'
18+
'Yellow' => 'yellow',
1919
),
2020
'data' => 'red',
21-
'choices_as_values' => true
21+
'choices_as_values' => true,
2222
));
2323
}
2424

test/Form/DemoType.php

+7-7
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function buildForm(FormBuilderInterface $builder, array $options)
1919
[
2020
'label' => 'Your name',
2121
'required' => true,
22-
'data' => 'Matthias'
22+
'data' => 'Matthias',
2323
]
2424
)
2525
->add(
@@ -28,7 +28,7 @@ public function buildForm(FormBuilderInterface $builder, array $options)
2828
[
2929
'type' => new AddressType(),
3030
'allow_add' => true,
31-
'label' => 'Addresses'
31+
'label' => 'Addresses',
3232
]
3333
)
3434
->add(
@@ -37,8 +37,8 @@ public function buildForm(FormBuilderInterface $builder, array $options)
3737
[
3838
'label' => 'Your email address',
3939
'constraints' => [
40-
new Email()
41-
]
40+
new Email(),
41+
],
4242
]
4343
)
4444
->add(
@@ -47,8 +47,8 @@ public function buildForm(FormBuilderInterface $builder, array $options)
4747
[
4848
'label' => 'Where do you live?',
4949
'constraints' => [
50-
new Country()
51-
]
50+
new Country(),
51+
],
5252
]
5353
)
5454
;
@@ -58,7 +58,7 @@ public function setDefaultOptions(OptionsResolverInterface $resolver)
5858
{
5959
$resolver->setDefaults(
6060
[
61-
'data_class' => 'Matthias\SymfonyConsoleForm\Tests\Form\Data\Demo'
61+
'data_class' => 'Matthias\SymfonyConsoleForm\Tests\Form\Data\Demo',
6262
]
6363
);
6464
}

test/Form/NameType.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ public function buildForm(FormBuilderInterface $builder, array $options)
1717
'label' => 'Your name',
1818
'data' => 'Matthias',
1919
'constraints' => array(
20-
new Length(array('min' => 4))
21-
)
20+
new Length(array('min' => 4)),
21+
),
2222
]
2323
)->add(
2424
'submit',
2525
'submit',
2626
[
27-
'label' => 'Submit'
27+
'label' => 'Submit',
2828
]
2929
);
3030
}

test/Helper/ApplicationTester.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Symfony\Component\Console\Output\StreamOutput;
1111

1212
/**
13-
* Copied and modified from https://github.com/phpspec/phpspec/blob/master/features/bootstrap/Console/ApplicationTester.php
13+
* Copied and modified from https://github.com/phpspec/phpspec/blob/master/features/bootstrap/Console/ApplicationTester.php.
1414
*/
1515
class ApplicationTester
1616
{
@@ -54,7 +54,7 @@ public function run($input, array $options = array())
5454
}
5555

5656
/**
57-
* @param boolean
57+
* @param bool
5858
*
5959
* @return string
6060
*/
@@ -118,7 +118,7 @@ public function getStatusCode()
118118
private function setInputStream($inputStream)
119119
{
120120
$helper = $this->application->getHelperSet()->get('question');
121-
/** @var $helper QuestionHelper */
121+
/* @var $helper QuestionHelper */
122122
$helper->setInputStream($inputStream);
123123
}
124124

test/Helper/InteractiveStringInput.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Symfony\Component\Console\Input\StringInput;
66

77
/**
8-
* Copied from https://github.com/phpspec/phpspec/blob/master/features/bootstrap/Console/InteractiveStringInput.php
8+
* Copied from https://github.com/phpspec/phpspec/blob/master/features/bootstrap/Console/InteractiveStringInput.php.
99
*/
1010
class InteractiveStringInput extends StringInput
1111
{

test/console.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
require __DIR__ . '/../vendor/autoload.php';
3+
require __DIR__.'/../vendor/autoload.php';
44

55
use Matthias\SymfonyConsoleForm\Tests\AppKernel;
66
use Symfony\Bundle\FrameworkBundle\Console\Application;

0 commit comments

Comments
 (0)