Various typos
This commit is contained in:
parent
9960c86db9
commit
391744719a
@ -143,7 +143,6 @@ class EntityChoiceList extends ArrayChoiceList
|
||||
$entities = $this->em->getRepository($this->class)->findAll();
|
||||
}
|
||||
|
||||
$propertyPath = null;
|
||||
$this->choices = array();
|
||||
$this->entities = array();
|
||||
|
||||
|
@ -32,7 +32,6 @@ class TransTokenParser extends \Twig_TokenParser
|
||||
$lineno = $token->getLine();
|
||||
$stream = $this->parser->getStream();
|
||||
|
||||
$body = null;
|
||||
$vars = new \Twig_Node_Expression_Array(array(), $lineno);
|
||||
$domain = new \Twig_Node_Expression_Constant('messages', $lineno);
|
||||
if (!$stream->test(\Twig_Token::BLOCK_END_TYPE)) {
|
||||
|
@ -40,7 +40,7 @@ class RegisterEventListenersAndSubscribersPass implements CompilerPassInterface
|
||||
}
|
||||
|
||||
foreach ($connections as $name) {
|
||||
$this->getEventManager($name)->addMethodCall('addEventSubscriber', array(new Reference($subscriberId)));
|
||||
$this->getEventManager($name, $subscriberId)->addMethodCall('addEventSubscriber', array(new Reference($subscriberId)));
|
||||
}
|
||||
}
|
||||
|
||||
@ -67,14 +67,14 @@ class RegisterEventListenersAndSubscribersPass implements CompilerPassInterface
|
||||
}
|
||||
|
||||
foreach ($connections as $name => $events) {
|
||||
$this->getEventManager($name)->addMethodCall('addEventListener', array(
|
||||
$this->getEventManager($name, $listenerId)->addMethodCall('addEventListener', array(
|
||||
array_unique($events),
|
||||
new Reference($listenerId),
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
private function getEventManager($name)
|
||||
private function getEventManager($name, $listenerId = null)
|
||||
{
|
||||
if (null === $this->eventManagers) {
|
||||
$this->eventManagers = array();
|
||||
|
@ -23,7 +23,6 @@ class RegisterKernelListenersPass implements CompilerPassInterface
|
||||
return;
|
||||
}
|
||||
|
||||
$listeners = array();
|
||||
$definition = $container->getDefinition('event_dispatcher');
|
||||
|
||||
foreach ($container->findTaggedServiceIds('kernel.listener') as $id => $events) {
|
||||
|
@ -445,7 +445,6 @@ class FrameworkExtension extends Extension
|
||||
}
|
||||
|
||||
// Register translation resources
|
||||
$resources = array();
|
||||
if ($dirs) {
|
||||
$finder = new Finder();
|
||||
$finder->files()->filter(function (\SplFileInfo $file) { return 2 === substr_count($file->getBasename(), '.'); })->in($dirs);
|
||||
|
@ -82,8 +82,6 @@ class ProfilerListener
|
||||
*/
|
||||
public function onCoreResponse(FilterResponseEvent $event)
|
||||
{
|
||||
$response = $event->getResponse();
|
||||
|
||||
if ($this->onlyMasterRequests && HttpKernelInterface::MASTER_REQUEST !== $event->getRequestType()) {
|
||||
return;
|
||||
}
|
||||
|
@ -55,7 +55,6 @@ abstract class WebTestCase extends BaseWebTestCase
|
||||
*/
|
||||
protected function getPhpUnitXmlDir()
|
||||
{
|
||||
$dir = null;
|
||||
if (!isset($_SERVER['argv']) || false === strpos($_SERVER['argv'][0], 'phpunit')) {
|
||||
throw new \RuntimeException('You must override the WebTestCase::createKernel() method.');
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ class PhpEngineTest extends TestCase
|
||||
{
|
||||
$container = new Container();
|
||||
$loader = $this->getMockForAbstractClass('Symfony\Component\Templating\Loader\Loader');
|
||||
$engine = new PhpEngine(new TemplateNameParser(), $container, $loader, $app = new GlobalVariables($container));
|
||||
$engine = new PhpEngine(new TemplateNameParser(), $container, $loader, new GlobalVariables($container));
|
||||
|
||||
$container->set('request', null);
|
||||
|
||||
|
@ -244,7 +244,6 @@ class SecurityExtension extends Extension
|
||||
|
||||
// Register listeners
|
||||
$listeners = array();
|
||||
$providers = array();
|
||||
|
||||
// Channel listener
|
||||
$listeners[] = new Reference('security.channel_listener');
|
||||
|
@ -23,10 +23,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
|
||||
|
||||
class TwigExtensionTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @dataProvider getFormats
|
||||
*/
|
||||
public function testLoadEmptyConfiguration($format)
|
||||
public function testLoadEmptyConfiguration()
|
||||
{
|
||||
$container = $this->createContainer();
|
||||
$container->registerExtension(new TwigExtension());
|
||||
|
@ -10,7 +10,7 @@ use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
* into account which is contained in the definition itself.
|
||||
*
|
||||
* Later passes can rely on the following, and specifically do not need to
|
||||
* perform these checks themself:
|
||||
* perform these checks themselves:
|
||||
*
|
||||
* - non synthetic, non abstract services always have a class set
|
||||
* - synthetic services are always public
|
||||
|
@ -166,7 +166,6 @@ class PdoSessionStorage extends NativeSessionStorage
|
||||
$dbTable = $this->dbOptions['db_table'];
|
||||
$dbDataCol = $this->dbOptions['db_data_col'];
|
||||
$dbIdCol = $this->dbOptions['db_id_col'];
|
||||
$dbTimeCol = $this->dbOptions['db_time_col'];
|
||||
|
||||
try {
|
||||
$sql = 'SELECT '.$dbDataCol.' FROM '.$dbTable.' WHERE '.$dbIdCol.'=?';
|
||||
|
@ -180,7 +180,6 @@ abstract class PdoProfilerStorage implements ProfilerStorageInterface
|
||||
|
||||
protected function fetch($db, $query, array $args = array())
|
||||
{
|
||||
$return = array();
|
||||
$stmt = $this->prepareStatement($db, $query);
|
||||
|
||||
foreach ($args as $arg => $val) {
|
||||
|
Reference in New Issue
Block a user