Skip to content

Commit

Permalink
fixes CS
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Aug 24, 2015
1 parent c0f0ad2 commit d83582a
Show file tree
Hide file tree
Showing 25 changed files with 31 additions and 20 deletions.
2 changes: 0 additions & 2 deletions Button.php
Expand Up @@ -336,8 +336,6 @@ public function isSynchronized()

/**
* Unsupported method.
*
* @return null Always returns null
*/
public function getTransformationFailure()
{
Expand Down
12 changes: 6 additions & 6 deletions ChoiceList/Loader/ChoiceLoaderInterface.php
Expand Up @@ -48,9 +48,9 @@ public function loadChoiceList($value = null);
* The callable receives the choice as first and the array key as the second
* argument.
*
* @param string[] $values An array of choice values. Non-existing
* values in this array are ignored
* @param null|callable $value The callable generating the choice values
* @param string[] $values An array of choice values. Non-existing
* values in this array are ignored
* @param null|callable $value The callable generating the choice values
*
* @return array An array of choices
*/
Expand All @@ -66,9 +66,9 @@ public function loadChoicesForValues(array $values, $value = null);
* The callable receives the choice as first and the array key as the second
* argument.
*
* @param array $choices An array of choices. Non-existing choices in
* this array are ignored
* @param null|callable $value The callable generating the choice values
* @param array $choices An array of choices. Non-existing choices in
* this array are ignored
* @param null|callable $value The callable generating the choice values
*
* @return string[] An array of choice values
*/
Expand Down
6 changes: 3 additions & 3 deletions ChoiceList/View/ChoiceGroupView.php
Expand Up @@ -19,14 +19,14 @@
class ChoiceGroupView implements \IteratorAggregate
{
/**
* The label of the group
* The label of the group.
*
* @var string
*/
public $label;

/**
* The choice views in the group
* The choice views in the group.
*
* @var ChoiceGroupView[]|ChoiceView[]
*/
Expand All @@ -35,7 +35,7 @@ class ChoiceGroupView implements \IteratorAggregate
/**
* Creates a new choice group view.
*
* @param string $label The label of the group.
* @param string $label The label of the group.
* @param ChoiceGroupView[]|ChoiceView[] $choices The choice views in the
* group.
*/
Expand Down
1 change: 1 addition & 0 deletions Deprecated/FormEvents.php
Expand Up @@ -15,6 +15,7 @@

/**
* @deprecated since version 2.7, to be removed in 3.0.
*
* @internal
*/
final class FormEvents
Expand Down
1 change: 0 additions & 1 deletion Extension/Core/DataMapper/CheckboxListMapper.php
Expand Up @@ -13,7 +13,6 @@

use Symfony\Component\Form\ChoiceList\ChoiceListInterface;
use Symfony\Component\Form\DataMapperInterface;
use Symfony\Component\Form\Exception;
use Symfony\Component\Form\Exception\TransformationFailedException;

/**
Expand Down
2 changes: 1 addition & 1 deletion Extension/Core/View/ChoiceView.php
Expand Up @@ -13,7 +13,7 @@

@trigger_error('The '.__NAMESPACE__.'\ChoiceView class is deprecated since version 2.7 and will be removed in 3.0. Use Symfony\Component\Form\ChoiceList\View\ChoiceView instead.', E_USER_DEPRECATED);

/**
/*
* Represents a choice in templates.
*
* @author Bernhard Schussek <bschussek@gmail.com>
Expand Down
1 change: 1 addition & 0 deletions Extension/Csrf/CsrfProvider/CsrfProviderAdapter.php
Expand Up @@ -22,6 +22,7 @@
* is expected.
*
* @since 2.4
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
* @deprecated since version 2.4, to be removed in 3.0.
Expand Down
1 change: 1 addition & 0 deletions Extension/Csrf/CsrfProvider/CsrfTokenManagerAdapter.php
Expand Up @@ -18,6 +18,7 @@
* Adapter for using the new token generator with the old interface.
*
* @since 2.4
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
* @deprecated since version 2.4, to be removed in 3.0.
Expand Down
1 change: 1 addition & 0 deletions Extension/DataCollector/DataCollectorExtension.php
Expand Up @@ -18,6 +18,7 @@
* Extension for collecting data of the forms on a page.
*
* @since 2.4
*
* @author Robert Schönthal <robert.schoenthal@gmail.com>
* @author Bernhard Schussek <bschussek@gmail.com>
*/
Expand Down
Expand Up @@ -21,6 +21,7 @@
* and {@link FormEvents::POST_SUBMIT} events.
*
* @since 2.4
*
* @author Bernhard Schussek <bschussek@gmail.com>
*/
class DataCollectorListener implements EventSubscriberInterface
Expand Down
1 change: 1 addition & 0 deletions Extension/DataCollector/FormDataCollector.php
Expand Up @@ -21,6 +21,7 @@
* Data collector for {@link FormInterface} instances.
*
* @since 2.4
*
* @author Robert Schönthal <robert.schoenthal@gmail.com>
* @author Bernhard Schussek <bschussek@gmail.com>
*/
Expand Down
1 change: 1 addition & 0 deletions Extension/DataCollector/FormDataCollectorInterface.php
Expand Up @@ -19,6 +19,7 @@
* Collects and structures information about forms.
*
* @since 2.4
*
* @author Bernhard Schussek <bschussek@gmail.com>
*/
interface FormDataCollectorInterface extends DataCollectorInterface
Expand Down
1 change: 1 addition & 0 deletions Extension/DataCollector/FormDataExtractor.php
Expand Up @@ -20,6 +20,7 @@
* Default implementation of {@link FormDataExtractorInterface}.
*
* @since 2.4
*
* @author Bernhard Schussek <bschussek@gmail.com>
*/
class FormDataExtractor implements FormDataExtractorInterface
Expand Down
1 change: 1 addition & 0 deletions Extension/DataCollector/FormDataExtractorInterface.php
Expand Up @@ -18,6 +18,7 @@
* Extracts arrays of information out of forms.
*
* @since 2.4
*
* @author Bernhard Schussek <bschussek@gmail.com>
*/
interface FormDataExtractorInterface
Expand Down
Expand Up @@ -22,6 +22,7 @@
* Proxy that invokes a data collector when creating a form and its view.
*
* @since 2.4
*
* @author Bernhard Schussek <bschussek@gmail.com>
*/
class ResolvedTypeDataCollectorProxy implements ResolvedFormTypeInterface
Expand Down
Expand Up @@ -21,6 +21,7 @@
* instances.
*
* @since 2.4
*
* @author Bernhard Schussek <bschussek@gmail.com>
*/
class ResolvedTypeFactoryDataCollectorProxy implements ResolvedFormTypeFactoryInterface
Expand Down
Expand Up @@ -20,6 +20,7 @@
* Type extension for collecting data of a form with this type.
*
* @since 2.4
*
* @author Robert Schönthal <robert.schoenthal@gmail.com>
* @author Bernhard Schussek <bschussek@gmail.com>
*/
Expand Down
2 changes: 1 addition & 1 deletion Extension/Validator/ValidatorExtension.php
Expand Up @@ -50,7 +50,7 @@ public function __construct($validator)
// the DIC, where the XML file is loaded automatically. Thus the following
// code must be kept synchronized with validation.xml

/** @var $metadata ClassMetadata */
/* @var $metadata ClassMetadata */
$metadata->addConstraint(new Form());
$metadata->addPropertyConstraint('children', new Valid());

Expand Down
2 changes: 1 addition & 1 deletion FormErrorIterator.php
Expand Up @@ -87,7 +87,7 @@ public function __toString()
if ($error instanceof FormError) {
$string .= 'ERROR: '.$error->getMessage()."\n";
} else {
/** @var $error FormErrorIterator */
/* @var $error FormErrorIterator */
$string .= $error->form->getName().":\n";
$string .= self::indent((string) $error);
}
Expand Down
1 change: 1 addition & 0 deletions Tests/Extension/DataCollector/FormDataCollectorTest.php
@@ -1,4 +1,5 @@
<?php

/*
* This file is part of the Symfony package.
*
Expand Down
@@ -1,4 +1,5 @@
<?php

/*
* This file is part of the Symfony package.
*
Expand Down
Expand Up @@ -18,7 +18,6 @@
use Symfony\Component\Form\Extension\Validator\Constraints\Form;
use Symfony\Component\Form\Extension\Validator\Constraints\FormValidator;
use Symfony\Component\Form\SubmitButtonBuilder;
use Symfony\Component\Validator\Context\ExecutionContextInterface;
use Symfony\Component\Validator\Constraints\NotNull;
use Symfony\Component\Validator\Constraints\NotBlank;
use Symfony\Component\Validator\Tests\Constraints\AbstractConstraintValidatorTest;
Expand Down
Expand Up @@ -15,6 +15,7 @@

/**
* @since 2.5.3
*
* @author Bernhard Schussek <bschussek@gmail.com>
* @group legacy
*/
Expand Down
4 changes: 2 additions & 2 deletions Tests/FormIntegrationTestCase.php
Expand Up @@ -20,8 +20,8 @@
abstract class FormIntegrationTestCase extends BaseFormIntegrationTestCase
{
/**
* {@inheritdoc}
*/
* {@inheritdoc}
*/
protected function setUp()
{
@trigger_error('The '.__CLASS__.' class is deprecated since version 2.3 and will be removed in 3.0. Use the Symfony\Component\Form\Test\FormIntegrationTestCase class instead.', E_USER_DEPRECATED);
Expand Down
4 changes: 2 additions & 2 deletions Tests/FormPerformanceTestCase.php
Expand Up @@ -20,8 +20,8 @@
abstract class FormPerformanceTestCase extends BaseFormPerformanceTestCase
{
/**
* {@inheritdoc}
*/
* {@inheritdoc}
*/
protected function setUp()
{
@trigger_error('The '.__CLASS__.' class is deprecated since version 2.3 and will be removed in 3.0. Use the Symfony\Component\Form\Test\FormPerformanceTestCase class instead.', E_USER_DEPRECATED);
Expand Down

0 comments on commit d83582a

Please sign in to comment.