This commit is contained in:
Fabien Potencier 2012-01-17 11:23:46 +01:00
parent 9c3c53a5c1
commit e8f9a55012
10 changed files with 8 additions and 15 deletions

View File

@ -11,8 +11,6 @@
namespace Symfony\Bridge\Doctrine\Form\ChoiceList;
use Doctrine\DBAL\Connection;
use Symfony\Component\Form\Exception\FormException;
use Symfony\Component\Form\Exception\UnexpectedTypeException;
use Doctrine\ORM\QueryBuilder;

View File

@ -12,9 +12,6 @@
namespace Symfony\Bridge\Doctrine\Form\Type;
use Doctrine\Common\Persistence\ObjectManager;
use Symfony\Component\Form\FormBuilder;
use Symfony\Bridge\Doctrine\Form\ChoiceList\EntityChoiceList;
use Symfony\Bridge\Doctrine\Form\ChoiceList\EntityLoaderInterface;
use Symfony\Bridge\Doctrine\Form\ChoiceList\ORMQueryBuilderLoader;
class EntityType extends DoctrineType

View File

@ -12,7 +12,6 @@
namespace Symfony\Bundle\WebProfilerBundle\Controller;
use Symfony\Component\DependencyInjection\ContainerAware;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Matcher\TraceableUrlMatcher;

View File

@ -74,7 +74,7 @@ class CollectionValidator extends ConstraintValidator
}
unset($extraFields[$field]);
} else if (!$fieldConstraint instanceof Optional) {
} elseif (!$fieldConstraint instanceof Optional) {
$missingFields[] = $field;
}
}

View File

@ -24,7 +24,7 @@ class FormThemeTest extends TestCase
$this->markTestSkipped('Requires Twig version to be at least 1.5.0.');
}
}
public function testConstructor()
{
$form = new \Twig_Node_Expression_Name('form', 0);
@ -68,4 +68,4 @@ class FormThemeTest extends TestCase
return sprintf('$this->getContext($context, "%s")', $name);
}
}
}

View File

@ -25,7 +25,7 @@ class FormThemeTokenParserTest extends TestCase
$this->markTestSkipped('Requires Twig version to be at least 1.5.0.');
}
}
/**
* @dataProvider getTestsForFormTheme
*/
@ -67,4 +67,4 @@ class FormThemeTokenParserTest extends TestCase
),
);
}
}
}

View File

@ -17,4 +17,4 @@ class CollectionValidatorArrayObjectTest extends CollectionValidatorTest
{
return new \ArrayObject($contents);
}
}
}

View File

@ -17,4 +17,4 @@ class CollectionValidatorArrayTest extends CollectionValidatorTest
{
return $contents;
}
}
}

View File

@ -77,4 +77,4 @@ class CollectionValidatorCustomArrayObjectTest extends CollectionValidatorTest
{
return new CustomArrayObject($contents);
}
}
}

View File

@ -13,7 +13,6 @@ namespace Symfony\Tests\Component\Validator\Constraints;
use Symfony\Component\Validator\ExecutionContext;
use Symfony\Component\Validator\Constraints\Min;
use Symfony\Component\Validator\Constraints\NotBlank;
use Symfony\Component\Validator\Constraints\NotNull;
use Symfony\Component\Validator\Constraints\Collection\Required;
use Symfony\Component\Validator\Constraints\Collection\Optional;