minor #21814 fixed CS (fabpot)

This PR was merged into the 2.7 branch.

Discussion
----------

fixed CS

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | n/a

Commits
-------

ad0bb6ac53 fixed CS
This commit is contained in:
Fabien Potencier 2017-03-02 13:32:57 -08:00
commit cb12e323a5
14 changed files with 38 additions and 16 deletions

View File

@ -11,7 +11,9 @@
namespace Symfony\Bundle\FrameworkBundle\Tests; namespace Symfony\Bundle\FrameworkBundle\Tests;
class CustomPathBundle extends \Symfony\Component\HttpKernel\Bundle\Bundle use Symfony\Component\HttpKernel\Bundle\Bundle;
class CustomPathBundle extends Bundle
{ {
public function getPath() public function getPath()
{ {

View File

@ -11,6 +11,8 @@
namespace Symfony\Bundle\FrameworkBundle\Tests; namespace Symfony\Bundle\FrameworkBundle\Tests;
class TestBundle extends \Symfony\Component\HttpKernel\Bundle\Bundle use Symfony\Component\HttpKernel\Bundle\Bundle;
class TestBundle extends Bundle
{ {
} }

View File

@ -11,9 +11,11 @@
namespace Symfony\Component\Form\Extension\Validator\Util; namespace Symfony\Component\Form\Extension\Validator\Util;
use Symfony\Component\Form\Util\ServerParams as BaseServerParams;
/** /**
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
*/ */
class ServerParams extends \Symfony\Component\Form\Util\ServerParams class ServerParams extends BaseServerParams
{ {
} }

View File

@ -14,8 +14,9 @@ namespace Symfony\Component\Form\Tests;
use Symfony\Component\Form\FormError; use Symfony\Component\Form\FormError;
use Symfony\Component\Form\FormView; use Symfony\Component\Form\FormView;
use Symfony\Component\Form\Extension\Csrf\CsrfExtension; use Symfony\Component\Form\Extension\Csrf\CsrfExtension;
use Symfony\Component\Form\Test\FormIntegrationTestCase;
abstract class AbstractLayoutTest extends \Symfony\Component\Form\Test\FormIntegrationTestCase abstract class AbstractLayoutTest extends FormIntegrationTestCase
{ {
protected $csrfTokenManager; protected $csrfTokenManager;
protected $testableFeatures = array(); protected $testableFeatures = array();

View File

@ -11,10 +11,12 @@
namespace Symfony\Component\Form\Tests; namespace Symfony\Component\Form\Tests;
use Symfony\Component\Form\Test\FormPerformanceTestCase;
/** /**
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
*/ */
class CompoundFormPerformanceTest extends \Symfony\Component\Form\Test\FormPerformanceTestCase class CompoundFormPerformanceTest extends FormPerformanceTestCase
{ {
/** /**
* Create a compound form multiple times, as happens in a collection form. * Create a compound form multiple times, as happens in a collection form.

View File

@ -11,10 +11,12 @@
namespace Symfony\Component\Form\Tests\Extension\Core\Type; namespace Symfony\Component\Form\Tests\Extension\Core\Type;
use Symfony\Component\Form\Test\TypeTestCase;
/** /**
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
*/ */
abstract class BaseTypeTest extends \Symfony\Component\Form\Test\TypeTestCase abstract class BaseTypeTest extends TypeTestCase
{ {
public function testPassDisabledAsOption() public function testPassDisabledAsOption()
{ {

View File

@ -12,8 +12,9 @@
namespace Symfony\Component\Form\Tests\Extension\Core\Type; namespace Symfony\Component\Form\Tests\Extension\Core\Type;
use Symfony\Component\Form\CallbackTransformer; use Symfony\Component\Form\CallbackTransformer;
use Symfony\Component\Form\Test\TypeTestCase;
class CheckboxTypeTest extends \Symfony\Component\Form\Test\TypeTestCase class CheckboxTypeTest extends TypeTestCase
{ {
public function testDataIsFalseByDefault() public function testDataIsFalseByDefault()
{ {

View File

@ -11,10 +11,11 @@
namespace Symfony\Component\Form\Tests\Extension\Core\Type; namespace Symfony\Component\Form\Tests\Extension\Core\Type;
use Symfony\Component\Form\Test\TypeTestCase;
use Symfony\Component\Form\Tests\Fixtures\Author; use Symfony\Component\Form\Tests\Fixtures\Author;
use Symfony\Component\Form\Tests\Fixtures\AuthorType; use Symfony\Component\Form\Tests\Fixtures\AuthorType;
class CollectionTypeTest extends \Symfony\Component\Form\Test\TypeTestCase class CollectionTypeTest extends TypeTestCase
{ {
public function testContainsNoChildByDefault() public function testContainsNoChildByDefault()
{ {

View File

@ -11,7 +11,9 @@
namespace Symfony\Component\Form\Tests\Extension\Core\Type; namespace Symfony\Component\Form\Tests\Extension\Core\Type;
class FileTypeTest extends \Symfony\Component\Form\Test\TypeTestCase use Symfony\Component\Form\Test\TypeTestCase;
class FileTypeTest extends TypeTestCase
{ {
// https://github.com/symfony/symfony/pull/5028 // https://github.com/symfony/symfony/pull/5028
public function testSetData() public function testSetData()

View File

@ -11,7 +11,9 @@
namespace Symfony\Component\Form\Tests\Extension\Core\Type; namespace Symfony\Component\Form\Tests\Extension\Core\Type;
class PasswordTypeTest extends \Symfony\Component\Form\Test\TypeTestCase use Symfony\Component\Form\Test\TypeTestCase;
class PasswordTypeTest extends TypeTestCase
{ {
public function testEmptyIfNotSubmitted() public function testEmptyIfNotSubmitted()
{ {

View File

@ -11,7 +11,9 @@
namespace Symfony\Component\Form\Tests\Extension\Core\Type; namespace Symfony\Component\Form\Tests\Extension\Core\Type;
class RepeatedTypeTest extends \Symfony\Component\Form\Test\TypeTestCase use Symfony\Component\Form\Test\TypeTestCase;
class RepeatedTypeTest extends TypeTestCase
{ {
protected $form; protected $form;

View File

@ -12,8 +12,9 @@
namespace Symfony\Component\Form\Tests\Extension\Core\Type; namespace Symfony\Component\Form\Tests\Extension\Core\Type;
use Symfony\Component\Form\ChoiceList\View\ChoiceView; use Symfony\Component\Form\ChoiceList\View\ChoiceView;
use Symfony\Component\Form\Test\TypeTestCase;
class TimezoneTypeTest extends \Symfony\Component\Form\Test\TypeTestCase class TimezoneTypeTest extends TypeTestCase
{ {
public function testTimezonesAreSelectable() public function testTimezonesAreSelectable()
{ {

View File

@ -11,7 +11,6 @@
namespace Symfony\Component\Security\Acl\Tests\Domain namespace Symfony\Component\Security\Acl\Tests\Domain
{ {
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use Symfony\Component\Security\Acl\Domain\ObjectIdentity; use Symfony\Component\Security\Acl\Domain\ObjectIdentity;
use Symfony\Component\Security\Acl\Model\DomainObjectInterface; use Symfony\Component\Security\Acl\Model\DomainObjectInterface;
@ -131,7 +130,9 @@ namespace Symfony\Component\Security\Acl\Tests\Domain
namespace Acme\DemoBundle\Proxy\__CG__\Symfony\Component\Security\Acl\Tests\Domain namespace Acme\DemoBundle\Proxy\__CG__\Symfony\Component\Security\Acl\Tests\Domain
{ {
class TestDomainObject extends \Symfony\Component\Security\Acl\Tests\Domain\TestDomainObject use Symfony\Component\Security\Acl\Tests\Domain\TestDomainObject as BaseTestDomainObject;
class TestDomainObject extends BaseTestDomainObject
{ {
} }
} }

View File

@ -11,7 +11,6 @@
namespace Symfony\Component\Security\Core\Tests\Util namespace Symfony\Component\Security\Core\Tests\Util
{ {
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use Symfony\Component\Security\Core\Util\ClassUtils; use Symfony\Component\Security\Core\Util\ClassUtils;
@ -46,7 +45,9 @@ namespace Symfony\Component\Security\Core\Tests\Util
namespace Acme\DemoBundle\Proxy\__CG__\Symfony\Component\Security\Core\Tests\Util namespace Acme\DemoBundle\Proxy\__CG__\Symfony\Component\Security\Core\Tests\Util
{ {
class TestObject extends \Symfony\Component\Security\Core\Tests\Util\TestObject use Symfony\Component\Security\Core\Tests\Util\TestObject as BaseTestObject;
class TestObject extends BaseTestObject
{ {
} }
} }