diff --git a/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php b/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php
index 95decc6f31..a11acfc45b 100644
--- a/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php
+++ b/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php
@@ -207,11 +207,11 @@ abstract class AbstractDoctrineExtension extends Extension
} elseif ($driverType == 'annotation') {
$mappingDriverDef = new Definition('%'.$this->getObjectManagerElementName('metadata.'.$driverType.'.class%'), array(
new Reference($this->getObjectManagerElementName('metadata.annotation_reader')),
- array_values($driverPaths)
+ array_values($driverPaths),
));
} else {
$mappingDriverDef = new Definition('%'.$this->getObjectManagerElementName('metadata.'.$driverType.'.class%'), array(
- array_values($driverPaths)
+ array_values($driverPaths),
));
}
$mappingDriverDef->setPublic(false);
@@ -320,7 +320,7 @@ abstract class AbstractDoctrineExtension extends Extension
$cacheDef = new Definition($memcacheClass);
$memcacheInstance = new Definition($memcacheInstanceClass);
$memcacheInstance->addMethodCall('connect', array(
- $memcacheHost, $memcachePort
+ $memcacheHost, $memcachePort,
));
$container->setDefinition($this->getObjectManagerElementName(sprintf('%s_memcache_instance', $objectManager['name'])), $memcacheInstance);
$cacheDef->addMethodCall('setMemcache', array(new Reference($this->getObjectManagerElementName(sprintf('%s_memcache_instance', $objectManager['name'])))));
@@ -333,7 +333,7 @@ abstract class AbstractDoctrineExtension extends Extension
$cacheDef = new Definition($memcachedClass);
$memcachedInstance = new Definition($memcachedInstanceClass);
$memcachedInstance->addMethodCall('addServer', array(
- $memcachedHost, $memcachedPort
+ $memcachedHost, $memcachedPort,
));
$container->setDefinition($this->getObjectManagerElementName(sprintf('%s_memcached_instance', $objectManager['name'])), $memcachedInstance);
$cacheDef->addMethodCall('setMemcached', array(new Reference($this->getObjectManagerElementName(sprintf('%s_memcached_instance', $objectManager['name'])))));
@@ -346,7 +346,7 @@ abstract class AbstractDoctrineExtension extends Extension
$cacheDef = new Definition($redisClass);
$redisInstance = new Definition($redisInstanceClass);
$redisInstance->addMethodCall('connect', array(
- $redisHost, $redisPort
+ $redisHost, $redisPort,
));
$container->setDefinition($this->getObjectManagerElementName(sprintf('%s_redis_instance', $objectManager['name'])), $redisInstance);
$cacheDef->addMethodCall('setRedis', array(new Reference($this->getObjectManagerElementName(sprintf('%s_redis_instance', $objectManager['name'])))));
diff --git a/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php b/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php
index cc8ac9891a..ce9dce875f 100644
--- a/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php
+++ b/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php
@@ -452,7 +452,7 @@ class EntityChoiceList extends ObjectChoiceList
{
if (!$this->em->contains($entity)) {
throw new RuntimeException(
- 'Entities passed to the choice field must be managed. Maybe ' .
+ 'Entities passed to the choice field must be managed. Maybe '.
'persist them in the entity manager?'
);
}
diff --git a/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php b/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php
index 83ce96f0fa..7a027df1e7 100644
--- a/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php
+++ b/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php
@@ -60,7 +60,7 @@ abstract class DoctrineType extends AbstractType
public function setDefaultOptions(OptionsResolverInterface $resolver)
{
- $choiceListCache =& $this->choiceListCache;
+ $choiceListCache = & $this->choiceListCache;
$registry = $this->registry;
$propertyAccessor = $this->propertyAccessor;
$type = $this;
@@ -121,7 +121,7 @@ abstract class DoctrineType extends AbstractType
$loaderHash,
$choiceHashes,
$preferredChoiceHashes,
- $groupByHash
+ $groupByHash,
)));
if (!isset($choiceListCache[$hash])) {
@@ -150,7 +150,7 @@ abstract class DoctrineType extends AbstractType
if (null === $em) {
throw new RuntimeException(sprintf(
- 'Class "%s" seems not to be a managed Doctrine entity. ' .
+ 'Class "%s" seems not to be a managed Doctrine entity. '.
'Did you forget to map it?',
$options['class']
));
diff --git a/src/Symfony/Bridge/Doctrine/HttpFoundation/DbalSessionHandler.php b/src/Symfony/Bridge/Doctrine/HttpFoundation/DbalSessionHandler.php
index d0c0577bec..88260a5270 100644
--- a/src/Symfony/Bridge/Doctrine/HttpFoundation/DbalSessionHandler.php
+++ b/src/Symfony/Bridge/Doctrine/HttpFoundation/DbalSessionHandler.php
@@ -218,18 +218,18 @@ class DbalSessionHandler implements \SessionHandlerInterface
switch ($platform) {
case 'mysql':
- return "INSERT INTO $this->table ($this->idCol, $this->dataCol, $this->timeCol) VALUES (:id, :data, :time) " .
+ return "INSERT INTO $this->table ($this->idCol, $this->dataCol, $this->timeCol) VALUES (:id, :data, :time) ".
"ON DUPLICATE KEY UPDATE $this->dataCol = VALUES($this->dataCol), $this->timeCol = VALUES($this->timeCol)";
case 'oracle':
// DUAL is Oracle specific dummy table
- return "MERGE INTO $this->table USING DUAL ON ($this->idCol = :id) " .
- "WHEN NOT MATCHED THEN INSERT ($this->idCol, $this->dataCol, $this->timeCol) VALUES (:id, :data, :time) " .
+ return "MERGE INTO $this->table USING DUAL ON ($this->idCol = :id) ".
+ "WHEN NOT MATCHED THEN INSERT ($this->idCol, $this->dataCol, $this->timeCol) VALUES (:id, :data, :time) ".
"WHEN MATCHED THEN UPDATE SET $this->dataCol = :data, $this->timeCol = :time";
case $this->con->getDatabasePlatform() instanceof SQLServer2008Platform:
// MERGE is only available since SQL Server 2008 and must be terminated by semicolon
// It also requires HOLDLOCK according to http://weblogs.sqlteam.com/dang/archive/2009/01/31/UPSERT-Race-Condition-With-MERGE.aspx
- return "MERGE INTO $this->table WITH (HOLDLOCK) USING (SELECT 1 AS dummy) AS src ON ($this->idCol = :id) " .
- "WHEN NOT MATCHED THEN INSERT ($this->idCol, $this->dataCol, $this->timeCol) VALUES (:id, :data, :time) " .
+ return "MERGE INTO $this->table WITH (HOLDLOCK) USING (SELECT 1 AS dummy) AS src ON ($this->idCol = :id) ".
+ "WHEN NOT MATCHED THEN INSERT ($this->idCol, $this->dataCol, $this->timeCol) VALUES (:id, :data, :time) ".
"WHEN MATCHED THEN UPDATE SET $this->dataCol = :data, $this->timeCol = :time;";
case 'sqlite':
return "INSERT OR REPLACE INTO $this->table ($this->idCol, $this->dataCol, $this->timeCol) VALUES (:id, :data, :time)";
diff --git a/src/Symfony/Bridge/Doctrine/Security/RememberMe/DoctrineTokenProvider.php b/src/Symfony/Bridge/Doctrine/Security/RememberMe/DoctrineTokenProvider.php
index c96201cd21..d2e4b00726 100644
--- a/src/Symfony/Bridge/Doctrine/Security/RememberMe/DoctrineTokenProvider.php
+++ b/src/Symfony/Bridge/Doctrine/Security/RememberMe/DoctrineTokenProvider.php
@@ -61,7 +61,7 @@ class DoctrineTokenProvider implements TokenProviderInterface
public function loadTokenBySeries($series)
{
$sql = 'SELECT class, username, value, lastUsed'
- . ' FROM rememberme_token WHERE series=:series';
+ .' FROM rememberme_token WHERE series=:series';
$paramValues = array('series' => $series);
$paramTypes = array('series' => \PDO::PARAM_STR);
$stmt = $this->conn->executeQuery($sql, $paramValues, $paramTypes);
@@ -95,13 +95,13 @@ class DoctrineTokenProvider implements TokenProviderInterface
public function updateToken($series, $tokenValue, \DateTime $lastUsed)
{
$sql = 'UPDATE rememberme_token SET value=:value, lastUsed=:lastUsed'
- . ' WHERE series=:series';
+ .' WHERE series=:series';
$paramValues = array('value' => $tokenValue,
'lastUsed' => $lastUsed,
- 'series' => $series);
+ 'series' => $series,);
$paramTypes = array('value' => \PDO::PARAM_STR,
'lastUsed' => DoctrineType::DATETIME,
- 'series' => \PDO::PARAM_STR);
+ 'series' => \PDO::PARAM_STR,);
$updated = $this->conn->executeUpdate($sql, $paramValues, $paramTypes);
if ($updated < 1) {
throw new TokenNotFoundException('No token found.');
@@ -114,18 +114,18 @@ class DoctrineTokenProvider implements TokenProviderInterface
public function createNewToken(PersistentTokenInterface $token)
{
$sql = 'INSERT INTO rememberme_token'
- . ' (class, username, series, value, lastUsed)'
- . ' VALUES (:class, :username, :series, :value, :lastUsed)';
+ .' (class, username, series, value, lastUsed)'
+ .' VALUES (:class, :username, :series, :value, :lastUsed)';
$paramValues = array('class' => $token->getClass(),
'username' => $token->getUsername(),
'series' => $token->getSeries(),
'value' => $token->getTokenValue(),
- 'lastUsed' => $token->getLastUsed());
+ 'lastUsed' => $token->getLastUsed(),);
$paramTypes = array('class' => \PDO::PARAM_STR,
'username' => \PDO::PARAM_STR,
'series' => \PDO::PARAM_STR,
'value' => \PDO::PARAM_STR,
- 'lastUsed' => DoctrineType::DATETIME);
+ 'lastUsed' => DoctrineType::DATETIME,);
$this->conn->executeUpdate($sql, $paramValues, $paramTypes);
}
}
diff --git a/src/Symfony/Bridge/Doctrine/Security/User/EntityUserProvider.php b/src/Symfony/Bridge/Doctrine/Security/User/EntityUserProvider.php
index 53b1a01675..0385a1dd7f 100644
--- a/src/Symfony/Bridge/Doctrine/Security/User/EntityUserProvider.php
+++ b/src/Symfony/Bridge/Doctrine/Security/User/EntityUserProvider.php
@@ -87,7 +87,7 @@ class EntityUserProvider implements UserProviderInterface
if (!$id = $this->metadata->getIdentifierValues($user)) {
throw new \InvalidArgumentException("You cannot refresh a user ".
"from the EntityUserProvider that does not contain an identifier. ".
- "The user object has to be serialized with its own identifier " .
+ "The user object has to be serialized with its own identifier ".
"mapped by Doctrine."
);
}
diff --git a/src/Symfony/Bridge/Doctrine/Tests/DataCollector/DoctrineDataCollectorTest.php b/src/Symfony/Bridge/Doctrine/Tests/DataCollector/DoctrineDataCollectorTest.php
index 067935608e..175cc560b7 100644
--- a/src/Symfony/Bridge/Doctrine/Tests/DataCollector/DoctrineDataCollectorTest.php
+++ b/src/Symfony/Bridge/Doctrine/Tests/DataCollector/DoctrineDataCollectorTest.php
@@ -50,7 +50,7 @@ class DoctrineDataCollectorTest extends \PHPUnit_Framework_TestCase
$this->assertEquals(0, $c->getQueryCount());
$queries = array(
- array('sql' => "SELECT * FROM table1", 'params' => array(), 'types' => array(), 'executionMS' => 0)
+ array('sql' => "SELECT * FROM table1", 'params' => array(), 'types' => array(), 'executionMS' => 0),
);
$c = $this->createCollector($queries);
$c->collect(new Request(), new Response());
@@ -64,7 +64,7 @@ class DoctrineDataCollectorTest extends \PHPUnit_Framework_TestCase
$this->assertEquals(0, $c->getTime());
$queries = array(
- array('sql' => "SELECT * FROM table1", 'params' => array(), 'types' => array(), 'executionMS' => 1)
+ array('sql' => "SELECT * FROM table1", 'params' => array(), 'types' => array(), 'executionMS' => 1),
);
$c = $this->createCollector($queries);
$c->collect(new Request(), new Response());
@@ -72,7 +72,7 @@ class DoctrineDataCollectorTest extends \PHPUnit_Framework_TestCase
$queries = array(
array('sql' => "SELECT * FROM table1", 'params' => array(), 'types' => array(), 'executionMS' => 1),
- array('sql' => "SELECT * FROM table2", 'params' => array(), 'types' => array(), 'executionMS' => 2)
+ array('sql' => "SELECT * FROM table2", 'params' => array(), 'types' => array(), 'executionMS' => 2),
);
$c = $this->createCollector($queries);
$c->collect(new Request(), new Response());
@@ -85,7 +85,7 @@ class DoctrineDataCollectorTest extends \PHPUnit_Framework_TestCase
public function testCollectQueries($param, $types, $expected, $explainable)
{
$queries = array(
- array('sql' => "SELECT * FROM table1 WHERE field1 = ?1", 'params' => array($param), 'types' => $types, 'executionMS' => 1)
+ array('sql' => "SELECT * FROM table1 WHERE field1 = ?1", 'params' => array($param), 'types' => $types, 'executionMS' => 1),
);
$c = $this->createCollector($queries);
$c->collect(new Request(), new Response());
@@ -101,7 +101,7 @@ class DoctrineDataCollectorTest extends \PHPUnit_Framework_TestCase
public function testSerialization($param, $types, $expected, $explainable)
{
$queries = array(
- array('sql' => "SELECT * FROM table1 WHERE field1 = ?1", 'params' => array($param), 'types' => $types, 'executionMS' => 1)
+ array('sql' => "SELECT * FROM table1 WHERE field1 = ?1", 'params' => array($param), 'types' => $types, 'executionMS' => 1),
);
$c = $this->createCollector($queries);
$c->collect(new Request(), new Response());
diff --git a/src/Symfony/Bridge/Doctrine/Tests/Form/ChoiceList/GenericEntityChoiceListTest.php b/src/Symfony/Bridge/Doctrine/Tests/Form/ChoiceList/GenericEntityChoiceListTest.php
index c5910195ca..e54968ed0d 100644
--- a/src/Symfony/Bridge/Doctrine/Tests/Form/ChoiceList/GenericEntityChoiceListTest.php
+++ b/src/Symfony/Bridge/Doctrine/Tests/Form/ChoiceList/GenericEntityChoiceListTest.php
@@ -201,7 +201,7 @@ class GenericEntityChoiceListTest extends \PHPUnit_Framework_TestCase
$this->assertSame(array(1 => $entity1, 2 => $entity2), $choiceList->getChoices());
$this->assertEquals(array(
'group1' => array(1 => new ChoiceView($entity1, '1', 'Foo')),
- 'group2' => array(2 => new ChoiceView($entity2, '2', 'Bar'))
+ 'group2' => array(2 => new ChoiceView($entity2, '2', 'Bar')),
), $choiceList->getRemainingViews());
}
@@ -236,7 +236,7 @@ class GenericEntityChoiceListTest extends \PHPUnit_Framework_TestCase
$this->assertEquals(array(
'Group1' => array(1 => new ChoiceView($item1, '1', 'Foo'), 2 => new ChoiceView($item2, '2', 'Bar')),
'Group2' => array(3 => new ChoiceView($item3, '3', 'Baz')),
- 4 => new ChoiceView($item4, '4', 'Boo!')
+ 4 => new ChoiceView($item4, '4', 'Boo!'),
), $choiceList->getRemainingViews());
}
@@ -263,7 +263,7 @@ class GenericEntityChoiceListTest extends \PHPUnit_Framework_TestCase
$this->assertEquals(array(
1 => $item1,
- 2 => $item2
+ 2 => $item2,
), $choiceList->getChoices());
}
diff --git a/src/Symfony/Bridge/Doctrine/Tests/Form/DoctrineOrmTypeGuesserTest.php b/src/Symfony/Bridge/Doctrine/Tests/Form/DoctrineOrmTypeGuesserTest.php
index 82c587aaff..0cb900f6d0 100644
--- a/src/Symfony/Bridge/Doctrine/Tests/Form/DoctrineOrmTypeGuesserTest.php
+++ b/src/Symfony/Bridge/Doctrine/Tests/Form/DoctrineOrmTypeGuesserTest.php
@@ -59,7 +59,7 @@ class DoctrineOrmTypeGuesserTest extends \PHPUnit_Framework_TestCase
$classMetadata->expects($this->once())->method('hasField')->with('field')->will($this->returnValue(false));
$classMetadata->expects($this->once())->method('isAssociationWithSingleJoinColumn')->with('field')->will($this->returnValue(true));
- $mapping = array('joinColumns' => array(array('nullable'=>true)));
+ $mapping = array('joinColumns' => array(array('nullable' => true)));
$classMetadata->expects($this->once())->method('getAssociationMapping')->with('field')->will($this->returnValue($mapping));
$return[] = array($classMetadata, new ValueGuess(false, Guess::HIGH_CONFIDENCE));
@@ -69,7 +69,7 @@ class DoctrineOrmTypeGuesserTest extends \PHPUnit_Framework_TestCase
$classMetadata->expects($this->once())->method('hasField')->with('field')->will($this->returnValue(false));
$classMetadata->expects($this->once())->method('isAssociationWithSingleJoinColumn')->with('field')->will($this->returnValue(true));
- $mapping = array('joinColumns' => array(array('nullable'=>false)));
+ $mapping = array('joinColumns' => array(array('nullable' => false)));
$classMetadata->expects($this->once())->method('getAssociationMapping')->with('field')->will($this->returnValue($mapping));
$return[] = array($classMetadata, new ValueGuess(true, Guess::HIGH_CONFIDENCE));
@@ -94,5 +94,4 @@ class DoctrineOrmTypeGuesserTest extends \PHPUnit_Framework_TestCase
return new DoctrineOrmTypeGuesser($registry);
}
-
}
diff --git a/src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypePerformanceTest.php b/src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypePerformanceTest.php
index bdb4013490..e7b3cfc96b 100644
--- a/src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypePerformanceTest.php
+++ b/src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypePerformanceTest.php
@@ -44,7 +44,7 @@ class EntityTypePerformanceTest extends FormPerformanceTestCase
return array(
new CoreExtension(),
- new DoctrineOrmExtension($manager)
+ new DoctrineOrmExtension($manager),
);
}
diff --git a/src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php b/src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php
index 329fa0ed3e..e91409574b 100644
--- a/src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php
+++ b/src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php
@@ -130,7 +130,7 @@ class EntityTypeTest extends TypeTestCase
'em' => 'default',
'class' => self::SINGLE_IDENT_CLASS,
'required' => false,
- 'property' => 'name'
+ 'property' => 'name',
));
$this->assertEquals(array(1 => new ChoiceView($entity1, '1', 'Foo'), 2 => new ChoiceView($entity2, '2', 'Bar')), $field->createView()->vars['choices']);
@@ -165,7 +165,7 @@ class EntityTypeTest extends TypeTestCase
'class' => self::SINGLE_IDENT_CLASS,
'required' => false,
'property' => 'name',
- 'query_builder' => $qb
+ 'query_builder' => $qb,
));
$this->assertEquals(array(1 => new ChoiceView($entity1, '1', 'Foo'), 2 => new ChoiceView($entity2, '2', 'Bar')), $field->createView()->vars['choices']);
@@ -541,7 +541,7 @@ class EntityTypeTest extends TypeTestCase
$this->assertEquals(array(
'Group1' => array(1 => new ChoiceView($item1, '1', 'Foo'), 2 => new ChoiceView($item2, '2', 'Bar')),
'Group2' => array(3 => new ChoiceView($item3, '3', 'Baz')),
- '4' => new ChoiceView($item4, '4', 'Boo!')
+ '4' => new ChoiceView($item4, '4', 'Boo!'),
), $field->createView()->vars['choices']);
}
@@ -754,7 +754,7 @@ class EntityTypeTest extends TypeTestCase
$this->factory->createNamed('name', 'entity', null, array(
'class' => self::SINGLE_IDENT_CLASS,
'required' => false,
- 'property' => 'name'
+ 'property' => 'name',
));
}
diff --git a/src/Symfony/Bridge/Doctrine/Tests/Logger/DbalLoggerTest.php b/src/Symfony/Bridge/Doctrine/Tests/Logger/DbalLoggerTest.php
index 0c39008d49..970a13e827 100644
--- a/src/Symfony/Bridge/Doctrine/Tests/Logger/DbalLoggerTest.php
+++ b/src/Symfony/Bridge/Doctrine/Tests/Logger/DbalLoggerTest.php
@@ -138,5 +138,4 @@ class DbalLoggerTest extends \PHPUnit_Framework_TestCase
'long' => $longString,
));
}
-
}
diff --git a/src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntityValidator.php b/src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntityValidator.php
index 308d883b2e..da66a4b9f6 100644
--- a/src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntityValidator.php
+++ b/src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntityValidator.php
@@ -64,7 +64,7 @@ class UniqueEntityValidator extends ConstraintValidator
$em = $this->registry->getManager($constraint->em);
if (!$em) {
- throw new ConstraintDefinitionException(sprintf('Object manager "%s" does not exist.', $constraint->em));
+ throw new ConstraintDefinitionException(sprintf('Object manager "%s" does not exist.', $constraint->em));
}
} else {
$em = $this->registry->getManagerForClass(get_class($entity));
@@ -101,7 +101,7 @@ class UniqueEntityValidator extends ConstraintValidator
if (count($relatedId) > 1) {
throw new ConstraintDefinitionException(
- "Associated entities are not allowed to have more than one identifier field to be " .
+ "Associated entities are not allowed to have more than one identifier field to be ".
"part of a unique constraint in: ".$class->getName()."#".$fieldName
);
}
diff --git a/src/Symfony/Bridge/Monolog/Handler/ChromePhpHandler.php b/src/Symfony/Bridge/Monolog/Handler/ChromePhpHandler.php
index 4b3cc575af..873632e696 100644
--- a/src/Symfony/Bridge/Monolog/Handler/ChromePhpHandler.php
+++ b/src/Symfony/Bridge/Monolog/Handler/ChromePhpHandler.php
@@ -43,7 +43,6 @@ class ChromePhpHandler extends BaseChromePhpHandler
}
if (!preg_match('{\bChrome/\d+[\.\d+]*\b}', $event->getRequest()->headers->get('User-Agent'))) {
-
$this->sendHeaders = false;
$this->headers = array();
diff --git a/src/Symfony/Bridge/Monolog/Handler/FirePHPHandler.php b/src/Symfony/Bridge/Monolog/Handler/FirePHPHandler.php
index 6cc2c38e1c..2d42235556 100644
--- a/src/Symfony/Bridge/Monolog/Handler/FirePHPHandler.php
+++ b/src/Symfony/Bridge/Monolog/Handler/FirePHPHandler.php
@@ -44,7 +44,6 @@ class FirePHPHandler extends BaseFirePHPHandler
if (!preg_match('{\bFirePHP/\d+\.\d+\b}', $event->getRequest()->headers->get('User-Agent'))
&& !$event->getRequest()->headers->has('X-FirePHP-Version')) {
-
$this->sendHeaders = false;
$this->headers = array();
diff --git a/src/Symfony/Bridge/Monolog/Tests/Processor/WebProcessorTest.php b/src/Symfony/Bridge/Monolog/Tests/Processor/WebProcessorTest.php
index 115763412b..bfe3e515a4 100644
--- a/src/Symfony/Bridge/Monolog/Tests/Processor/WebProcessorTest.php
+++ b/src/Symfony/Bridge/Monolog/Tests/Processor/WebProcessorTest.php
@@ -32,7 +32,7 @@ class WebProcessorTest extends \PHPUnit_Framework_TestCase
'REMOTE_ADDR' => 'B',
'REQUEST_METHOD' => 'C',
'SERVER_NAME' => 'D',
- 'HTTP_REFERER' => 'E'
+ 'HTTP_REFERER' => 'E',
);
$request = new Request();
diff --git a/src/Symfony/Bridge/Propel1/Form/EventListener/TranslationCollectionFormListener.php b/src/Symfony/Bridge/Propel1/Form/EventListener/TranslationCollectionFormListener.php
index ae39700736..9829bb238d 100644
--- a/src/Symfony/Bridge/Propel1/Form/EventListener/TranslationCollectionFormListener.php
+++ b/src/Symfony/Bridge/Propel1/Form/EventListener/TranslationCollectionFormListener.php
@@ -22,7 +22,6 @@ use Symfony\Component\Form\FormEvent;
*/
class TranslationCollectionFormListener implements EventSubscriberInterface
{
-
private $i18nClass;
private $languages;
diff --git a/src/Symfony/Bridge/Propel1/Form/EventListener/TranslationFormListener.php b/src/Symfony/Bridge/Propel1/Form/EventListener/TranslationFormListener.php
index 3f20102c7c..083e0ac886 100644
--- a/src/Symfony/Bridge/Propel1/Form/EventListener/TranslationFormListener.php
+++ b/src/Symfony/Bridge/Propel1/Form/EventListener/TranslationFormListener.php
@@ -70,7 +70,7 @@ class TranslationFormListener implements EventSubscriberInterface
$customOptions = $options['options'];
}
$options = array(
- 'label' => $label.' '.strtoupper($data->getLocale())
+ 'label' => $label.' '.strtoupper($data->getLocale()),
);
$options = array_merge($options, $customOptions);
diff --git a/src/Symfony/Bridge/Propel1/Form/PropelExtension.php b/src/Symfony/Bridge/Propel1/Form/PropelExtension.php
index 77e044b9c6..d333f79903 100644
--- a/src/Symfony/Bridge/Propel1/Form/PropelExtension.php
+++ b/src/Symfony/Bridge/Propel1/Form/PropelExtension.php
@@ -26,7 +26,7 @@ class PropelExtension extends AbstractExtension
return array(
new Type\ModelType(PropertyAccess::createPropertyAccessor()),
new Type\TranslationCollectionType(),
- new Type\TranslationType()
+ new Type\TranslationType(),
);
}
diff --git a/src/Symfony/Bridge/Propel1/Form/Type/TranslationCollectionType.php b/src/Symfony/Bridge/Propel1/Form/Type/TranslationCollectionType.php
index 4ecf7e03be..1ed78ae705 100644
--- a/src/Symfony/Bridge/Propel1/Form/Type/TranslationCollectionType.php
+++ b/src/Symfony/Bridge/Propel1/Form/Type/TranslationCollectionType.php
@@ -59,7 +59,7 @@ class TranslationCollectionType extends AbstractType
public function setDefaultOptions(OptionsResolverInterface $resolver)
{
$resolver->setRequired(array(
- 'languages'
+ 'languages',
));
$resolver->setDefaults(array(
@@ -68,8 +68,8 @@ class TranslationCollectionType extends AbstractType
'allow_delete' => false,
'options' => array(
'data_class' => null,
- 'columns' => null
- )
+ 'columns' => null,
+ ),
));
}
}
diff --git a/src/Symfony/Bridge/Propel1/Form/Type/TranslationType.php b/src/Symfony/Bridge/Propel1/Form/Type/TranslationType.php
index 1bd94a484c..8315b4f347 100644
--- a/src/Symfony/Bridge/Propel1/Form/Type/TranslationType.php
+++ b/src/Symfony/Bridge/Propel1/Form/Type/TranslationType.php
@@ -48,7 +48,7 @@ class TranslationType extends AbstractType
{
$resolver->setRequired(array(
'data_class',
- 'columns'
+ 'columns',
));
}
}
diff --git a/src/Symfony/Bridge/Propel1/Tests/DataCollector/PropelDataCollectorTest.php b/src/Symfony/Bridge/Propel1/Tests/DataCollector/PropelDataCollectorTest.php
index 23d6fc9fc6..0d80b83c7a 100644
--- a/src/Symfony/Bridge/Propel1/Tests/DataCollector/PropelDataCollectorTest.php
+++ b/src/Symfony/Bridge/Propel1/Tests/DataCollector/PropelDataCollectorTest.php
@@ -47,9 +47,9 @@ class PropelDataCollectorTest extends Propel1TestCase
array(
'sql' => "SET NAMES 'utf8'",
'time' => '0.000 sec',
- 'connection'=> 'default',
- 'memory' => '1.4 MB'
- )
+ 'connection' => 'default',
+ 'memory' => '1.4 MB',
+ ),
), $c->getQueries());
$this->assertEquals(1, $c->getQueryCount());
}
@@ -69,20 +69,20 @@ class PropelDataCollectorTest extends Propel1TestCase
array(
'sql' => "SET NAMES 'utf8'",
'time' => '0.000 sec',
- 'connection'=> 'default',
- 'memory' => '1.4 MB'
+ 'connection' => 'default',
+ 'memory' => '1.4 MB',
),
array(
'sql' => "SELECT tags.NAME, image.FILENAME FROM tags LEFT JOIN image ON tags.IMAGEID = image.ID WHERE image.ID = 12",
'time' => '0.012 sec',
- 'connection'=> 'default',
- 'memory' => '2.4 MB'
+ 'connection' => 'default',
+ 'memory' => '2.4 MB',
),
array(
'sql' => "INSERT INTO `table` (`some_array`) VALUES ('| 1 | 2 | 3 |')",
'time' => '0.012 sec',
- 'connection'=> 'default',
- 'memory' => '2.4 MB'
+ 'connection' => 'default',
+ 'memory' => '2.4 MB',
),
), $c->getQueries());
$this->assertEquals(3, $c->getQueryCount());
diff --git a/src/Symfony/Bridge/Propel1/Tests/Fixtures/ItemQuery.php b/src/Symfony/Bridge/Propel1/Tests/Fixtures/ItemQuery.php
index 47f769057e..83955592a5 100644
--- a/src/Symfony/Bridge/Propel1/Tests/Fixtures/ItemQuery.php
+++ b/src/Symfony/Bridge/Propel1/Tests/Fixtures/ItemQuery.php
@@ -96,7 +96,7 @@ class ItemQuery
return array(
$mainAuthorRelation,
$authorRelation,
- $resellerRelation
+ $resellerRelation,
);
}
}
diff --git a/src/Symfony/Bridge/Propel1/Tests/Fixtures/TranslatableItemI18n.php b/src/Symfony/Bridge/Propel1/Tests/Fixtures/TranslatableItemI18n.php
index 1253b26c26..1fa1741ab5 100644
--- a/src/Symfony/Bridge/Propel1/Tests/Fixtures/TranslatableItemI18n.php
+++ b/src/Symfony/Bridge/Propel1/Tests/Fixtures/TranslatableItemI18n.php
@@ -94,7 +94,6 @@ class TranslatableItemI18n implements \Persistent
public function setLocale($locale)
{
-
$this->locale = $locale;
}
@@ -115,7 +114,6 @@ class TranslatableItemI18n implements \Persistent
public function setValue($value)
{
-
$this->value = $value;
}
@@ -126,7 +124,6 @@ class TranslatableItemI18n implements \Persistent
public function setValue2($value2)
{
-
$this->value2 = $value2;
}
diff --git a/src/Symfony/Bridge/Propel1/Tests/Form/ChoiceList/ModelChoiceListTest.php b/src/Symfony/Bridge/Propel1/Tests/Form/ChoiceList/ModelChoiceListTest.php
index ef77b5edbb..9f9a69e331 100644
--- a/src/Symfony/Bridge/Propel1/Tests/Form/ChoiceList/ModelChoiceListTest.php
+++ b/src/Symfony/Bridge/Propel1/Tests/Form/ChoiceList/ModelChoiceListTest.php
@@ -97,7 +97,7 @@ class ModelChoiceListTest extends Propel1TestCase
null,
null,
array(
- $item1
+ $item1,
)
);
@@ -122,7 +122,7 @@ class ModelChoiceListTest extends Propel1TestCase
$this->assertSame(array(1 => $item1, 2 => $item2), $choiceList->getChoices());
$this->assertEquals(array(
'group1' => array(1 => new ChoiceView($item1, '1', 'Foo')),
- 'group2' => array(2 => new ChoiceView($item2, '2', 'Bar'))
+ 'group2' => array(2 => new ChoiceView($item2, '2', 'Bar')),
), $choiceList->getRemainingViews());
}
@@ -150,7 +150,7 @@ class ModelChoiceListTest extends Propel1TestCase
$this->assertEquals(array(
'Group1' => array(1 => new ChoiceView($item1, '1', 'Foo'), 2 => new ChoiceView($item2, '2', 'Bar')),
'Group2' => array(3 => new ChoiceView($item3, '3', 'Baz')),
- 4 => new ChoiceView($item4, '4', 'Boo!')
+ 4 => new ChoiceView($item4, '4', 'Boo!'),
), $choiceList->getRemainingViews());
}
@@ -172,7 +172,7 @@ class ModelChoiceListTest extends Propel1TestCase
$this->assertEquals(array(
1 => $item1,
- 2 => $item2
+ 2 => $item2,
), $choiceList->getChoices());
}
diff --git a/src/Symfony/Bridge/Propel1/Tests/Form/DataTransformer/CollectionToArrayTransformerTest.php b/src/Symfony/Bridge/Propel1/Tests/Form/DataTransformer/CollectionToArrayTransformerTest.php
index b48652b82f..32d18404f9 100644
--- a/src/Symfony/Bridge/Propel1/Tests/Form/DataTransformer/CollectionToArrayTransformerTest.php
+++ b/src/Symfony/Bridge/Propel1/Tests/Form/DataTransformer/CollectionToArrayTransformerTest.php
@@ -108,4 +108,6 @@ class CollectionToArrayTransformerTest extends Propel1TestCase
}
}
-class DummyObject {}
+class DummyObject
+{
+}
diff --git a/src/Symfony/Bridge/Propel1/Tests/Form/Type/TranslationCollectionTypeTest.php b/src/Symfony/Bridge/Propel1/Tests/Form/Type/TranslationCollectionTypeTest.php
index e9fa8395e7..0663020cc6 100644
--- a/src/Symfony/Bridge/Propel1/Tests/Form/Type/TranslationCollectionTypeTest.php
+++ b/src/Symfony/Bridge/Propel1/Tests/Form/Type/TranslationCollectionTypeTest.php
@@ -42,15 +42,15 @@ class TranslationCollectionTypeTest extends TypeTestCase
$item->addTranslatableItemI18n(new TranslatableItemI18n(2, 'en', 'val2'));
$builder = $this->factory->createBuilder('form', null, array(
- 'data_class' => self::TRANSLATION_CLASS
+ 'data_class' => self::TRANSLATION_CLASS,
));
$builder->add('translatableItemI18ns', 'propel1_translation_collection', array(
'languages' => array('en', 'fr'),
'options' => array(
'data_class' => self::TRANSLATABLE_I18N_CLASS,
- 'columns' => array('value', 'value2' => array('label' => 'Label', 'type' => 'textarea'))
- )
+ 'columns' => array('value', 'value2' => array('label' => 'Label', 'type' => 'textarea')),
+ ),
));
$form = $builder->getForm();
$form->setData($item);
@@ -79,14 +79,14 @@ class TranslationCollectionTypeTest extends TypeTestCase
$this->assertCount(0, $item->getTranslatableItemI18ns());
$builder = $this->factory->createBuilder('form', null, array(
- 'data_class' => self::TRANSLATION_CLASS
+ 'data_class' => self::TRANSLATION_CLASS,
));
$builder->add('translatableItemI18ns', 'propel1_translation_collection', array(
'languages' => array('en', 'fr'),
'options' => array(
'data_class' => self::TRANSLATABLE_I18N_CLASS,
- 'columns' => array('value', 'value2' => array('label' => 'Label', 'type' => 'textarea'))
- )
+ 'columns' => array('value', 'value2' => array('label' => 'Label', 'type' => 'textarea')),
+ ),
));
$form = $builder->getForm();
@@ -103,14 +103,14 @@ class TranslationCollectionTypeTest extends TypeTestCase
$item = new Item(null, 'val');
$builder = $this->factory->createBuilder('form', null, array(
- 'data_class' => self::NON_TRANSLATION_CLASS
+ 'data_class' => self::NON_TRANSLATION_CLASS,
));
$builder->add('value', 'propel1_translation_collection', array(
'languages' => array('en', 'fr'),
'options' => array(
'data_class' => self::TRANSLATABLE_I18N_CLASS,
- 'columns' => array('value', 'value2' => array('label' => 'Label', 'type' => 'textarea'))
- )
+ 'columns' => array('value', 'value2' => array('label' => 'Label', 'type' => 'textarea')),
+ ),
));
$form = $builder->getForm();
@@ -125,8 +125,8 @@ class TranslationCollectionTypeTest extends TypeTestCase
$this->factory->createNamed('itemI18ns', 'propel1_translation_collection', null, array(
'languages' => array('en', 'fr'),
'options' => array(
- 'columns' => array('value', 'value2')
- )
+ 'columns' => array('value', 'value2'),
+ ),
));
}
@@ -138,8 +138,8 @@ class TranslationCollectionTypeTest extends TypeTestCase
$this->factory->createNamed('itemI18ns', 'propel1_translation_collection', null, array(
'options' => array(
'data_class' => self::TRANSLATABLE_I18N_CLASS,
- 'columns' => array('value', 'value2')
- )
+ 'columns' => array('value', 'value2'),
+ ),
));
}
@@ -151,8 +151,8 @@ class TranslationCollectionTypeTest extends TypeTestCase
$this->factory->createNamed('itemI18ns', 'propel1_translation_collection', null, array(
'languages' => array('en', 'fr'),
'options' => array(
- 'data_class' => self::TRANSLATABLE_I18N_CLASS
- )
+ 'data_class' => self::TRANSLATABLE_I18N_CLASS,
+ ),
));
}
}
diff --git a/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/ContainerBuilderTest.php b/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/ContainerBuilderTest.php
index 804c9da9c6..10faf8e12a 100644
--- a/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/ContainerBuilderTest.php
+++ b/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/ContainerBuilderTest.php
@@ -11,7 +11,7 @@
namespace Symfony\Bridge\ProxyManager\Tests\LazyProxy;
-require_once __DIR__ . '/Fixtures/includes/foo.php';
+require_once __DIR__.'/Fixtures/includes/foo.php';
use Symfony\Bridge\ProxyManager\LazyProxy\Instantiator\RuntimeInstantiator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
diff --git a/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/Fixtures/php/lazy_service.php b/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/Fixtures/php/lazy_service.php
index 1b06f07af0..630c8c59fe 100644
--- a/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/Fixtures/php/lazy_service.php
+++ b/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/Fixtures/php/lazy_service.php
@@ -65,7 +65,6 @@ class LazyServiceProjectServiceContainer extends Container
class stdClass_c1d194250ee2e2b7d2eab8b8212368a8 extends \stdClass implements \ProxyManager\Proxy\LazyLoadingInterface, \ProxyManager\Proxy\ValueHolderInterface
{
-
/**
* @var \Closure|null initializer responsible for generating the wrapped object
*/
@@ -193,5 +192,4 @@ class stdClass_c1d194250ee2e2b7d2eab8b8212368a8 extends \stdClass implements \Pr
{
return $this->valueHolder5157dd96e88c0;
}
-
}
diff --git a/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/PhpDumper/ProxyDumperTest.php b/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/PhpDumper/ProxyDumperTest.php
index adbd990a74..e3ef13d8e9 100644
--- a/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/PhpDumper/ProxyDumperTest.php
+++ b/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/PhpDumper/ProxyDumperTest.php
@@ -57,7 +57,7 @@ class ProxyDumperTest extends \PHPUnit_Framework_TestCase
$this->assertStringMatchesFormat(
'%Aclass SymfonyBridgeProxyManagerTestsLazyProxyPhpDumperProxyDumperTest%aextends%w'
- . '\Symfony\Bridge\ProxyManager\Tests\LazyProxy\PhpDumper\ProxyDumperTest%a',
+ .'\Symfony\Bridge\ProxyManager\Tests\LazyProxy\PhpDumper\ProxyDumperTest%a',
$code
);
}
@@ -72,10 +72,10 @@ class ProxyDumperTest extends \PHPUnit_Framework_TestCase
$this->assertStringMatchesFormat(
'%wif ($lazyLoad) {%w$container = $this;%wreturn $this->services[\'foo\'] = new '
- . 'SymfonyBridgeProxyManagerTestsLazyProxyPhpDumperProxyDumperTest_%s(%wfunction '
- . '(&$wrappedInstance, \ProxyManager\Proxy\LazyLoadingInterface $proxy) use ($container) {'
- . '%w$wrappedInstance = $container->getFooService(false);%w$proxy->setProxyInitializer(null);'
- . '%wreturn true;%w}%w);%w}%w',
+ .'SymfonyBridgeProxyManagerTestsLazyProxyPhpDumperProxyDumperTest_%s(%wfunction '
+ .'(&$wrappedInstance, \ProxyManager\Proxy\LazyLoadingInterface $proxy) use ($container) {'
+ .'%w$wrappedInstance = $container->getFooService(false);%w$proxy->setProxyInitializer(null);'
+ .'%wreturn true;%w}%w);%w}%w',
$code
);
}
@@ -88,7 +88,7 @@ class ProxyDumperTest extends \PHPUnit_Framework_TestCase
$definitions = array(
array(new Definition(__CLASS__), true),
array(new Definition('stdClass'), true),
- array(new Definition('foo' . uniqid()), false),
+ array(new Definition('foo'.uniqid()), false),
array(new Definition(), false),
);
diff --git a/src/Symfony/Bridge/Twig/Node/FormThemeNode.php b/src/Symfony/Bridge/Twig/Node/FormThemeNode.php
index 329ab86fe0..c3ebd51bbc 100644
--- a/src/Symfony/Bridge/Twig/Node/FormThemeNode.php
+++ b/src/Symfony/Bridge/Twig/Node/FormThemeNode.php
@@ -35,6 +35,5 @@ class FormThemeNode extends \Twig_Node
->raw(', ')
->subcompile($this->getNode('resources'))
->raw(");\n");
- ;
}
}
diff --git a/src/Symfony/Bridge/Twig/Node/RenderBlockNode.php b/src/Symfony/Bridge/Twig/Node/RenderBlockNode.php
index 822a27279f..457532ecd5 100644
--- a/src/Symfony/Bridge/Twig/Node/RenderBlockNode.php
+++ b/src/Symfony/Bridge/Twig/Node/RenderBlockNode.php
@@ -29,7 +29,7 @@ class RenderBlockNode extends \Twig_Node_Expression_Function
if (isset($arguments[0])) {
$compiler->subcompile($arguments[0]);
- $compiler->raw(', \'' . $this->getAttribute('name') . '\'');
+ $compiler->raw(', \''.$this->getAttribute('name').'\'');
if (isset($arguments[1])) {
$compiler->raw(', ');
diff --git a/src/Symfony/Bridge/Twig/Tests/Extension/CodeExtensionTest.php b/src/Symfony/Bridge/Twig/Tests/Extension/CodeExtensionTest.php
index d935651439..5e4a9a3079 100644
--- a/src/Symfony/Bridge/Twig/Tests/Extension/CodeExtensionTest.php
+++ b/src/Symfony/Bridge/Twig/Tests/Extension/CodeExtensionTest.php
@@ -53,7 +53,7 @@ class CodeExtensionTest extends \PHPUnit_Framework_TestCase
array('F\Q\N\Foo::Method', 'Foo::Method()'),
array('Bare::Method', 'Bare::Method()'),
array('Closure', 'Closure'),
- array('Method', 'Method()')
+ array('Method', 'Method()'),
);
}
diff --git a/src/Symfony/Bridge/Twig/Tests/Extension/FormExtensionDivLayoutTest.php b/src/Symfony/Bridge/Twig/Tests/Extension/FormExtensionDivLayoutTest.php
index 5eb67ea730..f0e2cb3f88 100644
--- a/src/Symfony/Bridge/Twig/Tests/Extension/FormExtensionDivLayoutTest.php
+++ b/src/Symfony/Bridge/Twig/Tests/Extension/FormExtensionDivLayoutTest.php
@@ -210,14 +210,14 @@ class FormExtensionDivLayoutTest extends AbstractDivLayoutTest
public static function themeBlockInheritanceProvider()
{
return array(
- array(array('theme.html.twig'))
+ array(array('theme.html.twig')),
);
}
public static function themeInheritanceProvider()
{
return array(
- array(array('parent_label.html.twig'), array('child_label.html.twig'))
+ array(array('parent_label.html.twig'), array('child_label.html.twig')),
);
}
}
diff --git a/src/Symfony/Bridge/Twig/Tests/Extension/TranslationExtensionTest.php b/src/Symfony/Bridge/Twig/Tests/Extension/TranslationExtensionTest.php
index 11c2d5ad79..a75f228860 100644
--- a/src/Symfony/Bridge/Twig/Tests/Extension/TranslationExtensionTest.php
+++ b/src/Symfony/Bridge/Twig/Tests/Extension/TranslationExtensionTest.php
@@ -101,17 +101,17 @@ class TranslationExtensionTest extends TestCase
// transchoice
array('{% transchoice count from "messages" %}{0} There is no apples|{1} There is one apple|]1,Inf] There is %count% apples{% endtranschoice %}',
- 'There is no apples', array('count' => 0)),
+ 'There is no apples', array('count' => 0),),
array('{% transchoice count %}{0} There is no apples|{1} There is one apple|]1,Inf] There is %count% apples{% endtranschoice %}',
- 'There is 5 apples', array('count' => 5)),
+ 'There is 5 apples', array('count' => 5),),
array('{% transchoice count %}{0} There is no apples|{1} There is one apple|]1,Inf] There is %count% apples (%name%){% endtranschoice %}',
- 'There is 5 apples (Symfony2)', array('count' => 5, 'name' => 'Symfony2')),
+ 'There is 5 apples (Symfony2)', array('count' => 5, 'name' => 'Symfony2'),),
array('{% transchoice count with { \'%name%\': \'Symfony2\' } %}{0} There is no apples|{1} There is one apple|]1,Inf] There is %count% apples (%name%){% endtranschoice %}',
- 'There is 5 apples (Symfony2)', array('count' => 5)),
+ 'There is 5 apples (Symfony2)', array('count' => 5),),
array('{% transchoice count into "fr"%}{0} There is no apples|{1} There is one apple|]1,Inf] There is %count% apples{% endtranschoice %}',
- 'There is no apples', array('count' => 0)),
+ 'There is no apples', array('count' => 0),),
array('{% transchoice 5 into "fr"%}{0} There is no apples|{1} There is one apple|]1,Inf] There is %count% apples{% endtranschoice %}',
- 'There is 5 apples'),
+ 'There is 5 apples',),
// trans filter
array('{{ "Hello"|trans }}', 'Hello'),
diff --git a/src/Symfony/Bridge/Twig/Tests/Node/FormThemeTest.php b/src/Symfony/Bridge/Twig/Tests/Node/FormThemeTest.php
index ffbec162d6..7b2cd4f999 100644
--- a/src/Symfony/Bridge/Twig/Tests/Node/FormThemeTest.php
+++ b/src/Symfony/Bridge/Twig/Tests/Node/FormThemeTest.php
@@ -21,7 +21,7 @@ class FormThemeTest extends TestCase
$form = new \Twig_Node_Expression_Name('form', 0);
$resources = new \Twig_Node(array(
new \Twig_Node_Expression_Constant('tpl1', 0),
- new \Twig_Node_Expression_Constant('tpl2', 0)
+ new \Twig_Node_Expression_Constant('tpl2', 0),
));
$node = new FormThemeNode($form, $resources, 0);
@@ -37,7 +37,7 @@ class FormThemeTest extends TestCase
new \Twig_Node_Expression_Constant(0, 0),
new \Twig_Node_Expression_Constant('tpl1', 0),
new \Twig_Node_Expression_Constant(1, 0),
- new \Twig_Node_Expression_Constant('tpl2', 0)
+ new \Twig_Node_Expression_Constant('tpl2', 0),
), 0);
$node = new FormThemeNode($form, $resources, 0);
diff --git a/src/Symfony/Bridge/Twig/Tests/TokenParser/FormThemeTokenParserTest.php b/src/Symfony/Bridge/Twig/Tests/TokenParser/FormThemeTokenParserTest.php
index 1559df1cc3..c844239e53 100644
--- a/src/Symfony/Bridge/Twig/Tests/TokenParser/FormThemeTokenParserTest.php
+++ b/src/Symfony/Bridge/Twig/Tests/TokenParser/FormThemeTokenParserTest.php
@@ -43,7 +43,7 @@ class FormThemeTokenParserTest extends TestCase
), 1),
1,
'form_theme'
- )
+ ),
),
array(
'{% form_theme form "tpl1" "tpl2" %}',
@@ -53,11 +53,11 @@ class FormThemeTokenParserTest extends TestCase
new \Twig_Node_Expression_Constant(0, 1),
new \Twig_Node_Expression_Constant('tpl1', 1),
new \Twig_Node_Expression_Constant(1, 1),
- new \Twig_Node_Expression_Constant('tpl2', 1)
+ new \Twig_Node_Expression_Constant('tpl2', 1),
), 1),
1,
'form_theme'
- )
+ ),
),
array(
'{% form_theme form with "tpl1" %}',
@@ -66,7 +66,7 @@ class FormThemeTokenParserTest extends TestCase
new \Twig_Node_Expression_Constant('tpl1', 1),
1,
'form_theme'
- )
+ ),
),
array(
'{% form_theme form with ["tpl1"] %}',
@@ -78,7 +78,7 @@ class FormThemeTokenParserTest extends TestCase
), 1),
1,
'form_theme'
- )
+ ),
),
array(
'{% form_theme form with ["tpl1", "tpl2"] %}',
@@ -88,11 +88,11 @@ class FormThemeTokenParserTest extends TestCase
new \Twig_Node_Expression_Constant(0, 1),
new \Twig_Node_Expression_Constant('tpl1', 1),
new \Twig_Node_Expression_Constant(1, 1),
- new \Twig_Node_Expression_Constant('tpl2', 1)
+ new \Twig_Node_Expression_Constant('tpl2', 1),
), 1),
1,
'form_theme'
- )
+ ),
),
);
}
diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/ConfigDumpReferenceCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/ConfigDumpReferenceCommand.php
index f9e2d403c3..bf118407b0 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Command/ConfigDumpReferenceCommand.php
+++ b/src/Symfony/Bundle/FrameworkBundle/Command/ConfigDumpReferenceCommand.php
@@ -32,7 +32,7 @@ class ConfigDumpReferenceCommand extends ContainerDebugCommand
$this
->setName('config:dump-reference')
->setDefinition(array(
- new InputArgument('name', InputArgument::OPTIONAL, 'The Bundle or extension alias')
+ new InputArgument('name', InputArgument::OPTIONAL, 'The Bundle or extension alias'),
))
->setDescription('Dumps default configuration for an extension')
->setHelp(<<setDescription('Displays current services for an application')
->setHelp(<<setDescription('Updates the translation file')
->setHelp(<<getRequirements() as $name => $value) {
- $route->setRequirement($name, $this->resolve($value));
+ $route->setRequirement($name, $this->resolve($value));
}
$route->setPath($this->resolve($route->getPath()));
@@ -138,7 +138,7 @@ class Router extends BaseRouter implements WarmableInterface
}
throw new RuntimeException(sprintf(
- 'The container parameter "%s", used in the route configuration value "%s", ' .
+ 'The container parameter "%s", used in the route configuration value "%s", '.
'must be a string or numeric, but it is of type %s.',
$match[1],
$value,
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/CacheWarmer/TemplateFinderTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/CacheWarmer/TemplateFinderTest.php
index 4b426f2562..59a7d1d920 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/CacheWarmer/TemplateFinderTest.php
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/CacheWarmer/TemplateFinderTest.php
@@ -53,5 +53,4 @@ class TemplateFinderTest extends TestCase
$this->assertContains('::this.is.a.template.format.engine', $templates);
$this->assertContains('::resource.format.engine', $templates);
}
-
}
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Controller/RedirectControllerTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Controller/RedirectControllerTest.php
index 34d1eeac28..a892c711a3 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/Controller/RedirectControllerTest.php
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Controller/RedirectControllerTest.php
@@ -60,7 +60,7 @@ class RedirectControllerTest extends TestCase
'route' => $route,
'permanent' => $permanent,
'additional-parameter' => 'value',
- 'ignoreAttributes' => $ignoreAttributes
+ 'ignoreAttributes' => $ignoreAttributes,
),
);
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddCacheWarmerPassTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddCacheWarmerPassTest.php
index 03eacc3636..2f39190a8f 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddCacheWarmerPassTest.php
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddCacheWarmerPassTest.php
@@ -23,7 +23,7 @@ class AddCacheWarmerPassTest extends \PHPUnit_Framework_TestCase
$services = array(
'my_cache_warmer_service1' => array(0 => array('priority' => 100)),
'my_cache_warmer_service2' => array(0 => array('priority' => 200)),
- 'my_cache_warmer_service3' => array()
+ 'my_cache_warmer_service3' => array(),
);
$definition = $this->getMock('Symfony\Component\DependencyInjection\Definition');
@@ -46,7 +46,7 @@ class AddCacheWarmerPassTest extends \PHPUnit_Framework_TestCase
->with(0, array(
new Reference('my_cache_warmer_service2'),
new Reference('my_cache_warmer_service1'),
- new Reference('my_cache_warmer_service3')
+ new Reference('my_cache_warmer_service3'),
));
$addCacheWarmerPass = new AddCacheWarmerPass();
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/SerializerPassTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/SerializerPassTest.php
index aa276b1e04..021ecd0bbc 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/SerializerPassTest.php
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/SerializerPassTest.php
@@ -22,7 +22,6 @@ use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\SerializerPass;
*/
class SerializerPassTest extends \PHPUnit_Framework_TestCase
{
-
public function testThrowExceptionWhenNoNormalizers()
{
$container = $this->getMock('Symfony\Component\DependencyInjection\ContainerBuilder');
@@ -72,16 +71,16 @@ class SerializerPassTest extends \PHPUnit_Framework_TestCase
public function testServicesAreOrderedAccordingToPriority()
{
- $services = array(
+ $services = array(
'n3' => array('tag' => array()),
'n1' => array('tag' => array('priority' => 200)),
- 'n2' => array('tag' => array('priority' => 100))
+ 'n2' => array('tag' => array('priority' => 100)),
);
- $expected = array(
+ $expected = array(
new Reference('n1'),
new Reference('n2'),
- new Reference('n3')
+ new Reference('n3'),
);
$container = $this->getMock('Symfony\Component\DependencyInjection\ContainerBuilder');
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/TranslatorPassTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/TranslatorPassTest.php
index 871acb2525..b68ea4e0d0 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/TranslatorPassTest.php
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/TranslatorPassTest.php
@@ -40,8 +40,6 @@ class TranslatorPassTest extends \PHPUnit_Framework_TestCase
$container->expects($this->once())
->method('findDefinition')
->will($this->returnValue($this->getMock('Symfony\Component\DependencyInjection\Definition')));
- ;
-
$pass = new TranslatorPass();
$pass->process($container);
}
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php
index 939703d8ab..1bcf1debf0 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php
@@ -36,7 +36,7 @@ class ConfigurationTest extends \PHPUnit_Framework_TestCase
$configuration = new Configuration();
$config = $processor->processConfiguration($configuration, array(array(
'secret' => 's3cr3t',
- 'trusted_proxies' => $trustedProxies
+ 'trusted_proxies' => $trustedProxies,
)));
$this->assertEquals($processedProxies, $config['trusted_proxies']);
@@ -66,8 +66,8 @@ class ConfigurationTest extends \PHPUnit_Framework_TestCase
$processor->processConfiguration($configuration, array(
array(
'secret' => 's3cr3t',
- 'trusted_proxies' => 'Not an IP address'
- )
+ 'trusted_proxies' => 'Not an IP address',
+ ),
));
}
@@ -81,8 +81,8 @@ class ConfigurationTest extends \PHPUnit_Framework_TestCase
$processor->processConfiguration($configuration, array(
array(
'secret' => 's3cr3t',
- 'trusted_proxies' => array('Not an IP address')
- )
+ 'trusted_proxies' => array('Not an IP address'),
+ ),
));
}
@@ -128,8 +128,8 @@ class ConfigurationTest extends \PHPUnit_Framework_TestCase
'debug' => '%kernel.debug%',
),
'serializer' => array(
- 'enabled' => false
- )
+ 'enabled' => false,
+ ),
);
}
}
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/TestBundle/TestBundle.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/TestBundle/TestBundle.php
index e936bfd98e..b0c4548fa0 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/TestBundle/TestBundle.php
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/TestBundle/TestBundle.php
@@ -13,5 +13,4 @@ namespace Symfony\Bundle\FrameworkBundle\Tests;
class TestBundle extends \Symfony\Component\HttpKernel\Bundle\Bundle
{
-
}
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/full.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/full.php
index 0bc94f2e73..801f61b94e 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/full.php
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/full.php
@@ -54,7 +54,7 @@ $container->loadFromExtension('framework', array(
),
),
'form' => array(
- 'resources' => array('theme1', 'theme2')
+ 'resources' => array('theme1', 'theme2'),
),
'hinclude_default_template' => 'global_hinclude_template',
),
@@ -71,5 +71,5 @@ $container->loadFromExtension('framework', array(
'debug' => true,
'file_cache_dir' => '%kernel.cache_dir%/annotations',
),
- 'ide' => 'file%%link%%format'
+ 'ide' => 'file%%link%%format',
));
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php
index f1adb72976..df4983d7ff 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php
@@ -185,19 +185,19 @@ abstract class FrameworkExtensionTest extends TestCase
$files = array_map(function ($resource) { return realpath($resource[1]); }, $resources);
$ref = new \ReflectionClass('Symfony\Component\Validator\Validator');
$this->assertContains(
- strtr(dirname($ref->getFileName()) . '/Resources/translations/validators.en.xlf', '/', DIRECTORY_SEPARATOR),
+ strtr(dirname($ref->getFileName()).'/Resources/translations/validators.en.xlf', '/', DIRECTORY_SEPARATOR),
$files,
'->registerTranslatorConfiguration() finds Validator translation resources'
);
$ref = new \ReflectionClass('Symfony\Component\Form\Form');
$this->assertContains(
- strtr(dirname($ref->getFileName()) . '/Resources/translations/validators.en.xlf', '/', DIRECTORY_SEPARATOR),
+ strtr(dirname($ref->getFileName()).'/Resources/translations/validators.en.xlf', '/', DIRECTORY_SEPARATOR),
$files,
'->registerTranslatorConfiguration() finds Form translation resources'
);
$ref = new \ReflectionClass('Symfony\Component\Security\Core\SecurityContext');
$this->assertContains(
- strtr(dirname(dirname($ref->getFileName())) . '/Resources/translations/security.en.xlf', '/', DIRECTORY_SEPARATOR),
+ strtr(dirname(dirname($ref->getFileName())).'/Resources/translations/security.en.xlf', '/', DIRECTORY_SEPARATOR),
$files,
'->registerTranslatorConfiguration() finds Security translation resources'
);
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/TestBundle/Controller/SessionController.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/TestBundle/Controller/SessionController.php
index 8d395760e8..96bc067fe5 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/TestBundle/Controller/SessionController.php
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/TestBundle/Controller/SessionController.php
@@ -17,7 +17,7 @@ use Symfony\Component\DependencyInjection\ContainerAware;
class SessionController extends ContainerAware
{
- public function welcomeAction($name=null)
+ public function welcomeAction($name = null)
{
$request = $this->container->get('request');
$session = $request->getSession();
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Routing/RouterTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Routing/RouterTest.php
index 2cc57d1a73..bc44b78a18 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/Routing/RouterTest.php
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Routing/RouterTest.php
@@ -24,7 +24,7 @@ class RouterTest extends \PHPUnit_Framework_TestCase
$routes->add('foo', new Route(
' /{_locale}',
array(
- '_locale' => '%locale%'
+ '_locale' => '%locale%',
),
array(
'_locale' => 'en|es',
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/FormHelperDivLayoutTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/FormHelperDivLayoutTest.php
index 9a960e3bea..70df59acbe 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/FormHelperDivLayoutTest.php
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/FormHelperDivLayoutTest.php
@@ -125,14 +125,14 @@ class FormHelperDivLayoutTest extends AbstractDivLayoutTest
public static function themeBlockInheritanceProvider()
{
return array(
- array(array('TestBundle:Parent'))
+ array(array('TestBundle:Parent')),
);
}
public static function themeInheritanceProvider()
{
return array(
- array(array('TestBundle:Parent'), array('TestBundle:Child'))
+ array(array('TestBundle:Parent'), array('TestBundle:Child')),
);
}
}
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Translation/TranslatorTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Translation/TranslatorTest.php
index a93dd5e845..68ad018a68 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/Translation/TranslatorTest.php
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Translation/TranslatorTest.php
@@ -183,7 +183,6 @@ class TranslatorTest extends \PHPUnit_Framework_TestCase
$this->assertSame('en-US', $translator->getLocale());
}
-
protected function getCatalogue($locale, $messages)
{
$catalogue = new MessageCatalogue($locale);
diff --git a/src/Symfony/Bundle/FrameworkBundle/Translation/PhpStringTokenParser.php b/src/Symfony/Bundle/FrameworkBundle/Translation/PhpStringTokenParser.php
index 0b29792e52..34d079069b 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Translation/PhpStringTokenParser.php
+++ b/src/Symfony/Bundle/FrameworkBundle/Translation/PhpStringTokenParser.php
@@ -96,7 +96,7 @@ class PhpStringTokenParser
public static function parseEscapeSequences($str, $quote)
{
if (null !== $quote) {
- $str = str_replace('\\' . $quote, $quote, $str);
+ $str = str_replace('\\'.$quote, $quote, $str);
}
return preg_replace_callback(
diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/MainConfiguration.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/MainConfiguration.php
index 95f1ced93d..97d1d3d962 100644
--- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/MainConfiguration.php
+++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/MainConfiguration.php
@@ -309,11 +309,11 @@ class MainConfiguration implements ConfigurationInterface
'memory' => array(
'users' => array(
'foo' => array('password' => 'foo', 'roles' => 'ROLE_USER'),
- 'bar' => array('password' => 'bar', 'roles' => '[ROLE_USER, ROLE_ADMIN]')
+ 'bar' => array('password' => 'bar', 'roles' => '[ROLE_USER, ROLE_ADMIN]'),
),
- )
+ ),
),
- 'my_entity_provider' => array('entity' => array('class' => 'SecurityBundle:User', 'property' => 'username'))
+ 'my_entity_provider' => array('entity' => array('class' => 'SecurityBundle:User', 'property' => 'username')),
))
->disallowNewKeysInSubsequentConfigs()
->isRequired()
@@ -370,8 +370,8 @@ class MainConfiguration implements ConfigurationInterface
'Acme\DemoBundle\Entity\User2' => array(
'algorithm' => 'sha512',
'encode_as_base64' => 'true',
- 'iterations'=> 5000
- )
+ 'iterations' => 5000,
+ ),
))
->requiresAtLeastOneElement()
->useAttributeAsKey('class')
diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/RememberMeFactory.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/RememberMeFactory.php
index 288ea1e824..e7fb75773c 100644
--- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/RememberMeFactory.php
+++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/RememberMeFactory.php
@@ -61,7 +61,7 @@ class RememberMeFactory implements SecurityFactoryInterface
if (isset($config['token_provider'])) {
$rememberMeServices->addMethodCall('setTokenProvider', array(
- new Reference($config['token_provider'])
+ new Reference($config['token_provider']),
));
}
diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php
index dce37e48b8..17f16c0293 100644
--- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php
+++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php
@@ -136,7 +136,7 @@ class SecurityExtension extends Extension
->addTag('doctrine.event_listener', array(
'connection' => $config['connection'],
'event' => 'postGenerateSchema',
- 'lazy' => true
+ 'lazy' => true,
))
;
diff --git a/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Fixtures/php/custom_acl_provider.php b/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Fixtures/php/custom_acl_provider.php
index 4acf6cc960..351dc6c09e 100644
--- a/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Fixtures/php/custom_acl_provider.php
+++ b/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Fixtures/php/custom_acl_provider.php
@@ -5,5 +5,5 @@ $this->load('container1.php', $container);
$container->loadFromExtension('security', array(
'acl' => array(
'provider' => 'foo',
- )
+ ),
));
diff --git a/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Fixtures/php/merge.php b/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Fixtures/php/merge.php
index 82966dccc2..50ef504ea4 100644
--- a/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Fixtures/php/merge.php
+++ b/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Fixtures/php/merge.php
@@ -16,5 +16,5 @@ $container->loadFromExtension('security', array(
'role_hierarchy' => array(
'FOO' => array('MOO'),
- )
+ ),
));
diff --git a/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Fixtures/php/merge_import.php b/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Fixtures/php/merge_import.php
index 1e29d40e28..912b9127ef 100644
--- a/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Fixtures/php/merge_import.php
+++ b/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Fixtures/php/merge_import.php
@@ -5,8 +5,8 @@ $container->loadFromExtension('security', array(
'main' => array(
'form_login' => array(
'login_path' => '/login',
- )
- )
+ ),
+ ),
),
'role_hierarchy' => array(
'FOO' => 'BAR',
diff --git a/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/SecurityExtensionTest.php b/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/SecurityExtensionTest.php
index 0605a1619e..b91244d24a 100644
--- a/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/SecurityExtensionTest.php
+++ b/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/SecurityExtensionTest.php
@@ -35,9 +35,9 @@ class SecurityExtensionTest extends \PHPUnit_Framework_TestCase
'pattern' => '/secured_area/.*',
'form_login' => array(
'check_path' => '/some_area/login_check',
- )
- )
- )
+ ),
+ ),
+ ),
));
$container->compile();
@@ -59,8 +59,8 @@ class SecurityExtensionTest extends \PHPUnit_Framework_TestCase
'firewalls' => array(
'some_firewall' => array(
'pattern' => '/.*',
- )
- )
+ ),
+ ),
));
$container->compile();
diff --git a/src/Symfony/Bundle/TwigBundle/DependencyInjection/TwigExtension.php b/src/Symfony/Bundle/TwigBundle/DependencyInjection/TwigExtension.php
index e8fec8ddc4..3f1e0176b3 100644
--- a/src/Symfony/Bundle/TwigBundle/DependencyInjection/TwigExtension.php
+++ b/src/Symfony/Bundle/TwigBundle/DependencyInjection/TwigExtension.php
@@ -42,7 +42,7 @@ class TwigExtension extends Extension
if (is_array($value) && isset($value['key'])) {
$config['globals'][$name] = array(
'key' => $name,
- 'value' => $config['globals'][$name]
+ 'value' => $config['globals'][$name],
);
}
}
diff --git a/src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Fixtures/php/full.php b/src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Fixtures/php/full.php
index 3d2a14d00d..c6d506e86a 100644
--- a/src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Fixtures/php/full.php
+++ b/src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Fixtures/php/full.php
@@ -4,7 +4,7 @@ $container->loadFromExtension('twig', array(
'form' => array(
'resources' => array(
'MyBundle::form.html.twig',
- )
+ ),
),
'globals' => array(
'foo' => '@bar',
diff --git a/src/Symfony/Bundle/TwigBundle/Tests/TokenParser/RenderTokenParserTest.php b/src/Symfony/Bundle/TwigBundle/Tests/TokenParser/RenderTokenParserTest.php
index 9823a98fca..55ebcd2566 100644
--- a/src/Symfony/Bundle/TwigBundle/Tests/TokenParser/RenderTokenParserTest.php
+++ b/src/Symfony/Bundle/TwigBundle/Tests/TokenParser/RenderTokenParserTest.php
@@ -40,7 +40,7 @@ class RenderTokenParserTest extends TestCase
new \Twig_Node_Expression_Array(array(), 1),
1,
'render'
- )
+ ),
),
array(
'{% render "foo", {foo: 1} %}',
@@ -52,7 +52,7 @@ class RenderTokenParserTest extends TestCase
), 1),
1,
'render'
- )
+ ),
),
);
}
diff --git a/src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php b/src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php
index dea4f8883f..2efb84a14d 100644
--- a/src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php
+++ b/src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php
@@ -148,7 +148,7 @@ class ProfilerController
$this->profiler->disable();
return new Response($this->twig->render('@WebProfiler/Profiler/info.html.twig', array(
- 'about' => $about
+ 'about' => $about,
)), 200, array('Content-Type' => 'text/html'));
}
diff --git a/src/Symfony/Bundle/WebProfilerBundle/Tests/Command/ExportCommandTest.php b/src/Symfony/Bundle/WebProfilerBundle/Tests/Command/ExportCommandTest.php
index 572e9b3978..70267ecc9e 100644
--- a/src/Symfony/Bundle/WebProfilerBundle/Tests/Command/ExportCommandTest.php
+++ b/src/Symfony/Bundle/WebProfilerBundle/Tests/Command/ExportCommandTest.php
@@ -13,7 +13,6 @@ namespace Symfony\Bundle\WebProfilerBundle\Tests\Command;
use Symfony\Bundle\WebProfilerBundle\Command\ExportCommand;
use Symfony\Component\Console\Tester\CommandTester;
-use Symfony\Component\Console\Application;
use Symfony\Component\HttpKernel\Profiler\Profile;
class ExportCommandTest extends \PHPUnit_Framework_TestCase
diff --git a/src/Symfony/Bundle/WebProfilerBundle/Tests/Command/ImportCommandTest.php b/src/Symfony/Bundle/WebProfilerBundle/Tests/Command/ImportCommandTest.php
index f5121c12d6..fe3ba421ad 100644
--- a/src/Symfony/Bundle/WebProfilerBundle/Tests/Command/ImportCommandTest.php
+++ b/src/Symfony/Bundle/WebProfilerBundle/Tests/Command/ImportCommandTest.php
@@ -13,7 +13,6 @@ namespace Symfony\Bundle\WebProfilerBundle\Tests\Command;
use Symfony\Bundle\WebProfilerBundle\Command\ImportCommand;
use Symfony\Component\Console\Tester\CommandTester;
-use Symfony\Component\Console\Application;
use Symfony\Component\HttpKernel\Profiler\Profile;
class ImportCommandTest extends \PHPUnit_Framework_TestCase
diff --git a/src/Symfony/Bundle/WebProfilerBundle/Tests/Profiler/TemplateManagerTest.php b/src/Symfony/Bundle/WebProfilerBundle/Tests/Profiler/TemplateManagerTest.php
index c46ca055a3..54833e7717 100644
--- a/src/Symfony/Bundle/WebProfilerBundle/Tests/Profiler/TemplateManagerTest.php
+++ b/src/Symfony/Bundle/WebProfilerBundle/Tests/Profiler/TemplateManagerTest.php
@@ -48,9 +48,9 @@ class TemplateManagerTest extends TestCase
$profiler = $this->mockProfiler();
$twigEnvironment = $this->mockTwigEnvironment();
$templates = array(
- 'data_collector.foo'=>array('foo','FooBundle:Collector:foo'),
- 'data_collector.bar'=>array('bar','FooBundle:Collector:bar'),
- 'data_collector.baz'=>array('baz','FooBundle:Collector:baz')
+ 'data_collector.foo' => array('foo','FooBundle:Collector:foo'),
+ 'data_collector.bar' => array('bar','FooBundle:Collector:bar'),
+ 'data_collector.baz' => array('baz','FooBundle:Collector:baz'),
);
$this->templateManager = new TemplateManager($profiler, $twigEnvironment, $templates);
diff --git a/src/Symfony/Component/BrowserKit/Tests/ClientTest.php b/src/Symfony/Component/BrowserKit/Tests/ClientTest.php
index 39015d2cc5..c14bea0096 100644
--- a/src/Symfony/Component/BrowserKit/Tests/ClientTest.php
+++ b/src/Symfony/Component/BrowserKit/Tests/ClientTest.php
@@ -498,7 +498,7 @@ class ClientTest extends \PHPUnit_Framework_TestCase
'HTTP_HOST' => 'www.example.com:8080',
'HTTP_USER_AGENT' => 'Symfony2 BrowserKit',
'HTTPS' => false,
- 'HTTP_REFERER' => 'http://www.example.com:8080/'
+ 'HTTP_REFERER' => 'http://www.example.com:8080/',
);
$client = new TestClient();
@@ -636,7 +636,7 @@ class ClientTest extends \PHPUnit_Framework_TestCase
'HTTP_HOST' => 'testhost',
'HTTP_USER_AGENT' => 'testua',
'HTTPS' => false,
- 'NEW_SERVER_KEY' => 'new-server-key-value'
+ 'NEW_SERVER_KEY' => 'new-server-key-value',
));
$this->assertEquals('localhost', $client->getServerParameter('HTTP_HOST'));
diff --git a/src/Symfony/Component/BrowserKit/Tests/ResponseTest.php b/src/Symfony/Component/BrowserKit/Tests/ResponseTest.php
index 878752c75e..23662dc54b 100644
--- a/src/Symfony/Component/BrowserKit/Tests/ResponseTest.php
+++ b/src/Symfony/Component/BrowserKit/Tests/ResponseTest.php
@@ -61,13 +61,13 @@ class ResponseTest extends \PHPUnit_Framework_TestCase
{
$headers = array(
'content-type' => 'text/html; charset=utf-8',
- 'set-cookie' => array('foo=bar', 'bar=foo')
+ 'set-cookie' => array('foo=bar', 'bar=foo'),
);
$expected = 'content-type: text/html; charset=utf-8'."\n";
- $expected.= 'set-cookie: foo=bar'."\n";
- $expected.= 'set-cookie: bar=foo'."\n\n";
- $expected.= 'foo';
+ $expected .= 'set-cookie: foo=bar'."\n";
+ $expected .= 'set-cookie: bar=foo'."\n\n";
+ $expected .= 'foo';
$response = new Response('foo', 304, $headers);
diff --git a/src/Symfony/Component/ClassLoader/ClassMapGenerator.php b/src/Symfony/Component/ClassLoader/ClassMapGenerator.php
index 7f83dbc559..efc95ec8be 100644
--- a/src/Symfony/Component/ClassLoader/ClassMapGenerator.php
+++ b/src/Symfony/Component/ClassLoader/ClassMapGenerator.php
@@ -71,7 +71,6 @@ class ClassMapGenerator
foreach ($classes as $class) {
$map[$class] = $path;
}
-
}
return $map;
diff --git a/src/Symfony/Component/ClassLoader/Tests/ApcUniversalClassLoaderTest.php b/src/Symfony/Component/ClassLoader/Tests/ApcUniversalClassLoaderTest.php
index 38a17f2845..9755256c79 100644
--- a/src/Symfony/Component/ClassLoader/Tests/ApcUniversalClassLoaderTest.php
+++ b/src/Symfony/Component/ClassLoader/Tests/ApcUniversalClassLoaderTest.php
@@ -55,13 +55,13 @@ class ApcUniversalClassLoaderTest extends \PHPUnit_Framework_TestCase
$this->assertTrue(class_exists($className), $message);
}
- public function getLoadClassTests()
- {
- return array(
+ public function getLoadClassTests()
+ {
+ return array(
array('\\Apc\\Namespaced\\Foo', 'Apc\\Namespaced\\Foo', '->loadClass() loads Apc\Namespaced\Foo class'),
array('Apc_Pearlike_Foo', 'Apc_Pearlike_Foo', '->loadClass() loads Apc_Pearlike_Foo class'),
);
- }
+ }
/**
* @dataProvider getLoadClassFromFallbackTests
@@ -77,15 +77,15 @@ class ApcUniversalClassLoaderTest extends \PHPUnit_Framework_TestCase
$this->assertTrue(class_exists($className), $message);
}
- public function getLoadClassFromFallbackTests()
- {
- return array(
+ public function getLoadClassFromFallbackTests()
+ {
+ return array(
array('\\Apc\\Namespaced\\Baz', 'Apc\\Namespaced\\Baz', '->loadClass() loads Apc\Namespaced\Baz class'),
array('Apc_Pearlike_Baz', 'Apc_Pearlike_Baz', '->loadClass() loads Apc_Pearlike_Baz class'),
array('\\Apc\\Namespaced\\FooBar', 'Apc\\Namespaced\\FooBar', '->loadClass() loads Apc\Namespaced\Baz class from fallback dir'),
array('Apc_Pearlike_FooBar', 'Apc_Pearlike_FooBar', '->loadClass() loads Apc_Pearlike_Baz class from fallback dir'),
);
- }
+ }
/**
* @dataProvider getLoadClassNamespaceCollisionTests
@@ -100,9 +100,9 @@ class ApcUniversalClassLoaderTest extends \PHPUnit_Framework_TestCase
$this->assertTrue(class_exists($className), $message);
}
- public function getLoadClassNamespaceCollisionTests()
- {
- return array(
+ public function getLoadClassNamespaceCollisionTests()
+ {
+ return array(
array(
array(
'Apc\\NamespaceCollision\\A' => __DIR__.DIRECTORY_SEPARATOR.'Fixtures/Apc/alpha',
@@ -136,7 +136,7 @@ class ApcUniversalClassLoaderTest extends \PHPUnit_Framework_TestCase
'->loadClass() loads NamespaceCollision\A\B\Bar from beta.',
),
);
- }
+ }
/**
* @dataProvider getLoadClassPrefixCollisionTests
@@ -150,9 +150,9 @@ class ApcUniversalClassLoaderTest extends \PHPUnit_Framework_TestCase
$this->assertTrue(class_exists($className), $message);
}
- public function getLoadClassPrefixCollisionTests()
- {
- return array(
+ public function getLoadClassPrefixCollisionTests()
+ {
+ return array(
array(
array(
'ApcPrefixCollision_A_' => __DIR__.DIRECTORY_SEPARATOR.'Fixtures/Apc/alpha/Apc',
@@ -186,5 +186,5 @@ class ApcUniversalClassLoaderTest extends \PHPUnit_Framework_TestCase
'->loadClass() loads ApcPrefixCollision_A_B_Bar from beta.',
),
);
- }
+ }
}
diff --git a/src/Symfony/Component/ClassLoader/Tests/ClassMapGeneratorTest.php b/src/Symfony/Component/ClassLoader/Tests/ClassMapGeneratorTest.php
index 18f64f7588..596844d9c9 100644
--- a/src/Symfony/Component/ClassLoader/Tests/ClassMapGeneratorTest.php
+++ b/src/Symfony/Component/ClassLoader/Tests/ClassMapGeneratorTest.php
@@ -76,7 +76,7 @@ class ClassMapGeneratorTest extends \PHPUnit_Framework_TestCase
'Namespaced\\Foo' => realpath(__DIR__).'/Fixtures/Namespaced/Foo.php',
'Namespaced\\Baz' => realpath(__DIR__).'/Fixtures/Namespaced/Baz.php',
'Namespaced\\WithComments' => realpath(__DIR__).'/Fixtures/Namespaced/WithComments.php',
- )
+ ),
),
array(__DIR__.'/Fixtures/beta/NamespaceCollision', array(
'NamespaceCollision\\A\\B\\Bar' => realpath(__DIR__).'/Fixtures/beta/NamespaceCollision/A/B/Bar.php',
diff --git a/src/Symfony/Component/ClassLoader/Tests/Fixtures/ClassesWithParents/A.php b/src/Symfony/Component/ClassLoader/Tests/Fixtures/ClassesWithParents/A.php
index dff891dcb7..b0f9425950 100644
--- a/src/Symfony/Component/ClassLoader/Tests/Fixtures/ClassesWithParents/A.php
+++ b/src/Symfony/Component/ClassLoader/Tests/Fixtures/ClassesWithParents/A.php
@@ -2,4 +2,6 @@
namespace ClassesWithParents;
-class A extends B {}
+class A extends B
+{
+}
diff --git a/src/Symfony/Component/ClassLoader/Tests/Fixtures/ClassesWithParents/B.php b/src/Symfony/Component/ClassLoader/Tests/Fixtures/ClassesWithParents/B.php
index 196bf7a2d3..22c751a7e5 100644
--- a/src/Symfony/Component/ClassLoader/Tests/Fixtures/ClassesWithParents/B.php
+++ b/src/Symfony/Component/ClassLoader/Tests/Fixtures/ClassesWithParents/B.php
@@ -2,4 +2,6 @@
namespace ClassesWithParents;
-class B implements CInterface {}
+class B implements CInterface
+{
+}
diff --git a/src/Symfony/Component/ClassLoader/Tests/Fixtures/classmap/SomeClass.php b/src/Symfony/Component/ClassLoader/Tests/Fixtures/classmap/SomeClass.php
index 26fabbd96e..c63cef9233 100644
--- a/src/Symfony/Component/ClassLoader/Tests/Fixtures/classmap/SomeClass.php
+++ b/src/Symfony/Component/ClassLoader/Tests/Fixtures/classmap/SomeClass.php
@@ -13,5 +13,4 @@ namespace ClassMap;
class SomeClass extends SomeParent implements SomeInterface
{
-
}
diff --git a/src/Symfony/Component/ClassLoader/Tests/Fixtures/classmap/SomeInterface.php b/src/Symfony/Component/ClassLoader/Tests/Fixtures/classmap/SomeInterface.php
index 09d7a8f35a..1fe5e09aa1 100644
--- a/src/Symfony/Component/ClassLoader/Tests/Fixtures/classmap/SomeInterface.php
+++ b/src/Symfony/Component/ClassLoader/Tests/Fixtures/classmap/SomeInterface.php
@@ -13,5 +13,4 @@ namespace ClassMap;
interface SomeInterface
{
-
}
diff --git a/src/Symfony/Component/ClassLoader/Tests/Fixtures/classmap/SomeParent.php b/src/Symfony/Component/ClassLoader/Tests/Fixtures/classmap/SomeParent.php
index 5a859a9460..ce2f9fc6c4 100644
--- a/src/Symfony/Component/ClassLoader/Tests/Fixtures/classmap/SomeParent.php
+++ b/src/Symfony/Component/ClassLoader/Tests/Fixtures/classmap/SomeParent.php
@@ -13,5 +13,4 @@ namespace ClassMap;
abstract class SomeParent
{
-
}
diff --git a/src/Symfony/Component/ClassLoader/Tests/Fixtures/classmap/multipleNs.php b/src/Symfony/Component/ClassLoader/Tests/Fixtures/classmap/multipleNs.php
index d19e07fc11..7db8cd3b67 100644
--- a/src/Symfony/Component/ClassLoader/Tests/Fixtures/classmap/multipleNs.php
+++ b/src/Symfony/Component/ClassLoader/Tests/Fixtures/classmap/multipleNs.php
@@ -1,14 +1,24 @@
file.'.meta';
}
-
}
diff --git a/src/Symfony/Component/Config/Definition/Builder/BooleanNodeDefinition.php b/src/Symfony/Component/Config/Definition/Builder/BooleanNodeDefinition.php
index 3f8713bedb..979f9bac6d 100644
--- a/src/Symfony/Component/Config/Definition/Builder/BooleanNodeDefinition.php
+++ b/src/Symfony/Component/Config/Definition/Builder/BooleanNodeDefinition.php
@@ -39,5 +39,4 @@ class BooleanNodeDefinition extends ScalarNodeDefinition
{
return new BooleanNode($this->name, $this->parent);
}
-
}
diff --git a/src/Symfony/Component/Config/Definition/Builder/NodeBuilder.php b/src/Symfony/Component/Config/Definition/Builder/NodeBuilder.php
index 5ea1c0e86e..e140df70de 100644
--- a/src/Symfony/Component/Config/Definition/Builder/NodeBuilder.php
+++ b/src/Symfony/Component/Config/Definition/Builder/NodeBuilder.php
@@ -243,5 +243,4 @@ class NodeBuilder implements NodeParentInterface
return $class;
}
-
}
diff --git a/src/Symfony/Component/Config/Definition/Builder/NodeDefinition.php b/src/Symfony/Component/Config/Definition/Builder/NodeDefinition.php
index a1a251f7b7..2efcd057ca 100644
--- a/src/Symfony/Component/Config/Definition/Builder/NodeDefinition.php
+++ b/src/Symfony/Component/Config/Definition/Builder/NodeDefinition.php
@@ -343,5 +343,4 @@ abstract class NodeDefinition implements NodeParentInterface
* @throws InvalidDefinitionException When the definition is invalid
*/
abstract protected function createNode();
-
}
diff --git a/src/Symfony/Component/Config/Definition/Builder/VariableNodeDefinition.php b/src/Symfony/Component/Config/Definition/Builder/VariableNodeDefinition.php
index aa148ffbcc..26196c8bc3 100644
--- a/src/Symfony/Component/Config/Definition/Builder/VariableNodeDefinition.php
+++ b/src/Symfony/Component/Config/Definition/Builder/VariableNodeDefinition.php
@@ -64,5 +64,4 @@ class VariableNodeDefinition extends NodeDefinition
return $node;
}
-
}
diff --git a/src/Symfony/Component/Config/Definition/PrototypedArrayNode.php b/src/Symfony/Component/Config/Definition/PrototypedArrayNode.php
index 80ad452696..a05faecfb7 100644
--- a/src/Symfony/Component/Config/Definition/PrototypedArrayNode.php
+++ b/src/Symfony/Component/Config/Definition/PrototypedArrayNode.php
@@ -323,7 +323,7 @@ class PrototypedArrayNode extends ArrayNode
if (!array_key_exists($k, $leftSide)) {
if (!$this->allowNewKeys) {
$ex = new InvalidConfigurationException(sprintf(
- 'You are not allowed to define new elements for path "%s". ' .
+ 'You are not allowed to define new elements for path "%s". '.
'Please define all elements for this path in one config file.',
$this->getPath()
));
diff --git a/src/Symfony/Component/Config/Definition/ReferenceDumper.php b/src/Symfony/Component/Config/Definition/ReferenceDumper.php
index 26eea78e1a..f1a0a7bb8c 100644
--- a/src/Symfony/Component/Config/Definition/ReferenceDumper.php
+++ b/src/Symfony/Component/Config/Definition/ReferenceDumper.php
@@ -120,7 +120,7 @@ class ReferenceDumper
if ($info = $node->getInfo()) {
$this->writeLine('');
// indenting multi-line info
- $info = str_replace("\n", sprintf("\n%".$depth * 4 . "s# ", ' '), $info);
+ $info = str_replace("\n", sprintf("\n%".($depth * 4)."s# ", ' '), $info);
$this->writeLine('# '.$info, $depth * 4);
}
diff --git a/src/Symfony/Component/Config/Loader/LoaderInterface.php b/src/Symfony/Component/Config/Loader/LoaderInterface.php
index f01f7709d2..52d5981e8e 100644
--- a/src/Symfony/Component/Config/Loader/LoaderInterface.php
+++ b/src/Symfony/Component/Config/Loader/LoaderInterface.php
@@ -49,5 +49,4 @@ interface LoaderInterface
* @param LoaderResolverInterface $resolver A LoaderResolverInterface instance
*/
public function setResolver(LoaderResolverInterface $resolver);
-
}
diff --git a/src/Symfony/Component/Config/Tests/Definition/ArrayNodeTest.php b/src/Symfony/Component/Config/Tests/Definition/ArrayNodeTest.php
index 4d19307580..d0d9e2e428 100644
--- a/src/Symfony/Component/Config/Tests/Definition/ArrayNodeTest.php
+++ b/src/Symfony/Component/Config/Tests/Definition/ArrayNodeTest.php
@@ -77,7 +77,7 @@ class ArrayNodeTest extends \PHPUnit_Framework_TestCase
array(
array('foo-bar' => null, 'foo_bar' => 'foo'),
array('foo-bar' => null, 'foo_bar' => 'foo'),
- )
+ ),
);
}
diff --git a/src/Symfony/Component/Config/Tests/Definition/Builder/ArrayNodeDefinitionTest.php b/src/Symfony/Component/Config/Tests/Definition/Builder/ArrayNodeDefinitionTest.php
index 06dacf2ab8..e75ed34f46 100644
--- a/src/Symfony/Component/Config/Tests/Definition/Builder/ArrayNodeDefinitionTest.php
+++ b/src/Symfony/Component/Config/Tests/Definition/Builder/ArrayNodeDefinitionTest.php
@@ -53,7 +53,7 @@ class ArrayNodeDefinitionTest extends \PHPUnit_Framework_TestCase
array('defaultValue', array(array())),
array('addDefaultChildrenIfNoneSet', array()),
array('requiresAtLeastOneElement', array()),
- array('useAttributeAsKey', array('foo'))
+ array('useAttributeAsKey', array('foo')),
);
}
diff --git a/src/Symfony/Component/Config/Tests/Definition/Builder/ExprBuilderTest.php b/src/Symfony/Component/Config/Tests/Definition/Builder/ExprBuilderTest.php
index c18c696c45..13a28afcbd 100644
--- a/src/Symfony/Component/Config/Tests/Definition/Builder/ExprBuilderTest.php
+++ b/src/Symfony/Component/Config/Tests/Definition/Builder/ExprBuilderTest.php
@@ -15,7 +15,6 @@ use Symfony\Component\Config\Definition\Builder\TreeBuilder;
class ExprBuilderTest extends \PHPUnit_Framework_TestCase
{
-
public function testAlwaysExpression()
{
$test = $this->getTestBuilder()
@@ -31,7 +30,7 @@ class ExprBuilderTest extends \PHPUnit_Framework_TestCase
->ifTrue()
->then($this->returnClosure('new_value'))
->end();
- $this->assertFinalizedValueIs('new_value', $test, array('key'=>true));
+ $this->assertFinalizedValueIs('new_value', $test, array('key' => true));
$test = $this->getTestBuilder()
->ifTrue( function ($v) { return true; })
@@ -58,8 +57,7 @@ class ExprBuilderTest extends \PHPUnit_Framework_TestCase
->ifString()
->then($this->returnClosure('new_value'))
->end();
- $this->assertFinalizedValueIs(45, $test, array('key'=>45));
-
+ $this->assertFinalizedValueIs(45, $test, array('key' => 45));
}
public function testIfNullExpression()
@@ -68,7 +66,7 @@ class ExprBuilderTest extends \PHPUnit_Framework_TestCase
->ifNull()
->then($this->returnClosure('new_value'))
->end();
- $this->assertFinalizedValueIs('new_value', $test, array('key'=>null));
+ $this->assertFinalizedValueIs('new_value', $test, array('key' => null));
$test = $this->getTestBuilder()
->ifNull()
@@ -83,7 +81,7 @@ class ExprBuilderTest extends \PHPUnit_Framework_TestCase
->ifArray()
->then($this->returnClosure('new_value'))
->end();
- $this->assertFinalizedValueIs('new_value', $test, array('key'=>array()));
+ $this->assertFinalizedValueIs('new_value', $test, array('key' => array()));
$test = $this->getTestBuilder()
->ifArray()
@@ -182,7 +180,7 @@ class ExprBuilderTest extends \PHPUnit_Framework_TestCase
->end()
->end()
->buildTree()
- ->finalize(null === $config ? array('key'=>'value') : $config)
+ ->finalize(null === $config ? array('key' => 'value') : $config)
;
}
@@ -207,6 +205,6 @@ class ExprBuilderTest extends \PHPUnit_Framework_TestCase
*/
protected function assertFinalizedValueIs($value, $treeBuilder, $config = null)
{
- $this->assertEquals(array('key'=>$value), $this->finalizeTestBuilder($treeBuilder, $config));
+ $this->assertEquals(array('key' => $value), $this->finalizeTestBuilder($treeBuilder, $config));
}
}
diff --git a/src/Symfony/Component/Config/Tests/Definition/FloatNodeTest.php b/src/Symfony/Component/Config/Tests/Definition/FloatNodeTest.php
index bdf79ecec9..4f308ca76b 100644
--- a/src/Symfony/Component/Config/Tests/Definition/FloatNodeTest.php
+++ b/src/Symfony/Component/Config/Tests/Definition/FloatNodeTest.php
@@ -34,7 +34,7 @@ class FloatNodeTest extends \PHPUnit_Framework_TestCase
// Integer are accepted too, they will be cast
array(17),
array(-10),
- array(0)
+ array(0),
);
}
diff --git a/src/Symfony/Component/Config/Tests/Definition/MergeTest.php b/src/Symfony/Component/Config/Tests/Definition/MergeTest.php
index d78027d051..08ddc3209e 100644
--- a/src/Symfony/Component/Config/Tests/Definition/MergeTest.php
+++ b/src/Symfony/Component/Config/Tests/Definition/MergeTest.php
@@ -115,14 +115,14 @@ class MergeTest extends \PHPUnit_Framework_TestCase
$a = array(
'test' => array(
- 'a' => array('value' => 'foo')
- )
+ 'a' => array('value' => 'foo'),
+ ),
);
$b = array(
'test' => array(
- 'b' => array('value' => 'foo')
- )
+ 'b' => array('value' => 'foo'),
+ ),
);
$tree->merge($a, $b);
@@ -157,13 +157,13 @@ class MergeTest extends \PHPUnit_Framework_TestCase
$b = array(
'no_deep_merging' => array(
'c' => 'd',
- )
+ ),
);
$this->assertEquals(array(
'no_deep_merging' => array(
'c' => 'd',
- )
+ ),
), $tree->merge($a, $b));
}
diff --git a/src/Symfony/Component/Config/Tests/Definition/NormalizationTest.php b/src/Symfony/Component/Config/Tests/Definition/NormalizationTest.php
index 99f767bfda..a896f96221 100644
--- a/src/Symfony/Component/Config/Tests/Definition/NormalizationTest.php
+++ b/src/Symfony/Component/Config/Tests/Definition/NormalizationTest.php
@@ -176,8 +176,8 @@ class NormalizationTest extends \PHPUnit_Framework_TestCase
{
$denormalized = array(
'thing' => array(
- array('foo', 'bar'), array('baz', 'qux')
- )
+ array('foo', 'bar'), array('baz', 'qux'),
+ ),
);
$this->assertNormalized($this->getNumericKeysTestTree(), $denormalized, array());
diff --git a/src/Symfony/Component/Config/Tests/Definition/ReferenceDumperTest.php b/src/Symfony/Component/Config/Tests/Definition/ReferenceDumperTest.php
index 137caf8cbc..5b4aea9b39 100644
--- a/src/Symfony/Component/Config/Tests/Definition/ReferenceDumperTest.php
+++ b/src/Symfony/Component/Config/Tests/Definition/ReferenceDumperTest.php
@@ -26,7 +26,7 @@ class ReferenceDumperTest extends \PHPUnit_Framework_TestCase
private function getConfigurationAsString()
{
- return <<isDir()) {
- rmdir($path->__toString());
+ rmdir($path->__toString());
} else {
- unlink($path->__toString());
+ unlink($path->__toString());
}
}
rmdir($directory);
diff --git a/src/Symfony/Component/Console/Application.php b/src/Symfony/Component/Console/Application.php
index 029dc29e00..4b682e706a 100644
--- a/src/Symfony/Component/Console/Application.php
+++ b/src/Symfony/Component/Console/Application.php
@@ -532,7 +532,7 @@ class Application
throw new \InvalidArgumentException(sprintf('The namespace "%s" is ambiguous (%s).', $namespace, $this->getAbbreviationSuggestions($abbrevs[$part])));
}
- $found .= $found ? ':' . $abbrevs[$part][0] : $abbrevs[$part][0];
+ $found .= $found ? ':'.$abbrevs[$part][0] : $abbrevs[$part][0];
}
return $found;
diff --git a/src/Symfony/Component/Console/Formatter/OutputFormatterStyle.php b/src/Symfony/Component/Console/Formatter/OutputFormatterStyle.php
index f0bbd38372..0a3e69ef27 100644
--- a/src/Symfony/Component/Console/Formatter/OutputFormatterStyle.php
+++ b/src/Symfony/Component/Console/Formatter/OutputFormatterStyle.php
@@ -28,7 +28,7 @@ class OutputFormatterStyle implements OutputFormatterStyleInterface
'blue' => 34,
'magenta' => 35,
'cyan' => 36,
- 'white' => 37
+ 'white' => 37,
);
private static $availableBackgroundColors = array(
'black' => 40,
@@ -38,14 +38,14 @@ class OutputFormatterStyle implements OutputFormatterStyleInterface
'blue' => 44,
'magenta' => 45,
'cyan' => 46,
- 'white' => 47
+ 'white' => 47,
);
private static $availableOptions = array(
'bold' => 1,
'underscore' => 4,
'blink' => 5,
'reverse' => 7,
- 'conceal' => 8
+ 'conceal' => 8,
);
private $foreground;
diff --git a/src/Symfony/Component/Console/Helper/DialogHelper.php b/src/Symfony/Component/Console/Helper/DialogHelper.php
index 6605e8939d..89c1587f43 100644
--- a/src/Symfony/Component/Console/Helper/DialogHelper.php
+++ b/src/Symfony/Component/Console/Helper/DialogHelper.php
@@ -146,7 +146,8 @@ class DialogHelper extends Helper
// Pop the last character off the end of our string
$ret = substr($ret, 0, $i);
- } elseif ("\033" === $c) { // Did we read an escape sequence?
+ } elseif ("\033" === $c) {
+ // Did we read an escape sequence?
$c .= fread($inputStream, 2);
// A = Up Arrow. B = Down Arrow
diff --git a/src/Symfony/Component/Console/Input/ArgvInput.php b/src/Symfony/Component/Console/Input/ArgvInput.php
index 3a0f0a7193..1e02a1cba8 100644
--- a/src/Symfony/Component/Console/Input/ArgvInput.php
+++ b/src/Symfony/Component/Console/Input/ArgvInput.php
@@ -169,7 +169,7 @@ class ArgvInput extends Input
// if input is expecting another argument, add it
if ($this->definition->hasArgument($c)) {
$arg = $this->definition->getArgument($c);
- $this->arguments[$arg->getName()] = $arg->isArray()? array($token) : $token;
+ $this->arguments[$arg->getName()] = $arg->isArray() ? array($token) : $token;
// if last argument isArray(), append token to last argument
} elseif ($this->definition->hasArgument($c - 1) && $this->definition->getArgument($c - 1)->isArray()) {
@@ -336,7 +336,7 @@ class ArgvInput extends Input
$self = $this;
$tokens = array_map(function ($token) use ($self) {
if (preg_match('{^(-[^=]+=)(.+)}', $token, $match)) {
- return $match[1] . $self->escapeToken($match[2]);
+ return $match[1].$self->escapeToken($match[2]);
}
if ($token && $token[0] !== '-') {
diff --git a/src/Symfony/Component/Console/Input/ArrayInput.php b/src/Symfony/Component/Console/Input/ArrayInput.php
index 27d91323f3..e723f75be0 100644
--- a/src/Symfony/Component/Console/Input/ArrayInput.php
+++ b/src/Symfony/Component/Console/Input/ArrayInput.php
@@ -120,7 +120,7 @@ class ArrayInput extends Input
$params = array();
foreach ($this->parameters as $param => $val) {
if ($param && '-' === $param[0]) {
- $params[] = $param . ('' != $val ? '='.$this->escapeToken($val) : '');
+ $params[] = $param.('' != $val ? '='.$this->escapeToken($val) : '');
} else {
$params[] = $this->escapeToken($val);
}
diff --git a/src/Symfony/Component/Console/Tests/ApplicationTest.php b/src/Symfony/Component/Console/Tests/ApplicationTest.php
index 2c27339a6e..07411444f4 100644
--- a/src/Symfony/Component/Console/Tests/ApplicationTest.php
+++ b/src/Symfony/Component/Console/Tests/ApplicationTest.php
@@ -240,7 +240,7 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase
return array(
array('f', 'Command "f" is not defined.'),
array('a', 'Command "a" is ambiguous (afoobar, afoobar1 and 1 more).'),
- array('foo:b', 'Command "foo:b" is ambiguous (foo:bar, foo:bar1).')
+ array('foo:b', 'Command "foo:b" is ambiguous (foo:bar, foo:bar1).'),
);
}
@@ -270,7 +270,7 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase
{
return array(
array('foo:baR'),
- array('foO:bar')
+ array('foO:bar'),
);
}
diff --git a/src/Symfony/Component/Console/Tests/Command/CommandTest.php b/src/Symfony/Component/Console/Tests/Command/CommandTest.php
index 872bb7fc42..6505f0da80 100644
--- a/src/Symfony/Component/Console/Tests/Command/CommandTest.php
+++ b/src/Symfony/Component/Console/Tests/Command/CommandTest.php
@@ -111,7 +111,7 @@ class CommandTest extends \PHPUnit_Framework_TestCase
{
return array(
array(''),
- array('foo:')
+ array('foo:'),
);
}
diff --git a/src/Symfony/Component/Console/Tests/Command/ListCommandTest.php b/src/Symfony/Component/Console/Tests/Command/ListCommandTest.php
index ca50874912..fbb9feeb68 100644
--- a/src/Symfony/Component/Console/Tests/Command/ListCommandTest.php
+++ b/src/Symfony/Component/Console/Tests/Command/ListCommandTest.php
@@ -49,7 +49,6 @@ EOF;
public function testExecuteListsCommandsWithNamespaceArgument()
{
-
require_once realpath(__DIR__.'/../Fixtures/FooCommand.php');
$application = new Application();
$application->add(new \FooCommand());
diff --git a/src/Symfony/Component/Console/Tests/Helper/DialogHelperTest.php b/src/Symfony/Component/Console/Tests/Helper/DialogHelperTest.php
index 118cc44dbb..7bd24ed039 100644
--- a/src/Symfony/Component/Console/Tests/Helper/DialogHelperTest.php
+++ b/src/Symfony/Component/Console/Tests/Helper/DialogHelperTest.php
@@ -133,7 +133,7 @@ class DialogHelperTest extends \PHPUnit_Framework_TestCase
$helperSet = new HelperSet(array(new FormatterHelper()));
$dialog->setHelperSet($helperSet);
- $question ='What color was the white horse of Henry IV?';
+ $question = 'What color was the white horse of Henry IV?';
$error = 'This is not a color!';
$validator = function ($color) use ($error) {
if (!in_array($color, array('white', 'black'))) {
diff --git a/src/Symfony/Component/Console/Tests/Helper/FormatterHelperTest.php b/src/Symfony/Component/Console/Tests/Helper/FormatterHelperTest.php
index db61de4f61..e332774757 100644
--- a/src/Symfony/Component/Console/Tests/Helper/FormatterHelperTest.php
+++ b/src/Symfony/Component/Console/Tests/Helper/FormatterHelperTest.php
@@ -37,15 +37,15 @@ class FormatterHelperTest extends \PHPUnit_Framework_TestCase
);
$this->assertEquals(
- ' Some text to display '."\n" .
+ ' Some text to display '."\n".
' foo bar ',
$formatter->formatBlock(array('Some text to display', 'foo bar'), 'error'),
'::formatBlock() formats a message in a block'
);
$this->assertEquals(
- ' '."\n" .
- ' Some text to display '."\n" .
+ ' '."\n".
+ ' Some text to display '."\n".
' ',
$formatter->formatBlock('Some text to display', 'error', true),
'::formatBlock() formats a message in a block'
@@ -61,8 +61,8 @@ class FormatterHelperTest extends \PHPUnit_Framework_TestCase
$formatter = new FormatterHelper();
$this->assertEquals(
- ' '."\n" .
- ' Du texte à afficher '."\n" .
+ ' '."\n".
+ ' Du texte à afficher '."\n".
' ',
$formatter->formatBlock('Du texte à afficher', 'error', true),
'::formatBlock() formats a message in a block'
@@ -76,8 +76,8 @@ class FormatterHelperTest extends \PHPUnit_Framework_TestCase
}
$formatter = new FormatterHelper();
$this->assertEquals(
- ' '."\n" .
- ' 表示するテキスト '."\n" .
+ ' '."\n".
+ ' 表示するテキスト '."\n".
' ',
$formatter->formatBlock('表示するテキスト', 'error', true),
'::formatBlock() formats a message in a block'
@@ -89,8 +89,8 @@ class FormatterHelperTest extends \PHPUnit_Framework_TestCase
$formatter = new FormatterHelper();
$this->assertEquals(
- ' '."\n" .
- ' \some info\ '."\n" .
+ ' '."\n".
+ ' \some info\ '."\n".
' ',
$formatter->formatBlock('some info', 'error', true),
'::formatBlock() escapes \'<\' chars'
diff --git a/src/Symfony/Component/Console/Tests/Helper/ProgressHelperTest.php b/src/Symfony/Component/Console/Tests/Helper/ProgressHelperTest.php
index 266cc3d1c3..2d2ec82b12 100644
--- a/src/Symfony/Component/Console/Tests/Helper/ProgressHelperTest.php
+++ b/src/Symfony/Component/Console/Tests/Helper/ProgressHelperTest.php
@@ -88,8 +88,8 @@ class ProgressHelperTest extends \PHPUnit_Framework_TestCase
rewind($output->getStream());
$this->assertEquals(
- $this->generateOutput(' 0/50 [>---------------------------] 0%') .
- $this->generateOutput(' 1/50 [>---------------------------] 2%') .
+ $this->generateOutput(' 0/50 [>---------------------------] 0%').
+ $this->generateOutput(' 1/50 [>---------------------------] 2%').
$this->generateOutput(' 2/50 [=>--------------------------] '),
stream_get_contents($output->getStream())
);
@@ -106,9 +106,9 @@ class ProgressHelperTest extends \PHPUnit_Framework_TestCase
rewind($output->getStream());
$this->assertEquals(
- $this->generateOutput(' 0/50 [>---------------------------] 0%') .
- $this->generateOutput(' 1/50 [>---------------------------] 2%') .
- $this->generateOutput(' 15/50 [========>-------------------] 30%') .
+ $this->generateOutput(' 0/50 [>---------------------------] 0%').
+ $this->generateOutput(' 1/50 [>---------------------------] 2%').
+ $this->generateOutput(' 15/50 [========>-------------------] 30%').
$this->generateOutput(' 25/50 [==============>-------------] 50%'),
stream_get_contents($output->getStream())
);
diff --git a/src/Symfony/Component/Console/Tests/Input/ArgvInputTest.php b/src/Symfony/Component/Console/Tests/Input/ArgvInputTest.php
index 507990d2cf..451b108179 100644
--- a/src/Symfony/Component/Console/Tests/Input/ArgvInputTest.php
+++ b/src/Symfony/Component/Console/Tests/Input/ArgvInputTest.php
@@ -57,92 +57,92 @@ class ArgvInputTest extends \PHPUnit_Framework_TestCase
array('cli.php', '--foo'),
array(new InputOption('foo')),
array('foo' => true),
- '->parse() parses long options without a value'
+ '->parse() parses long options without a value',
),
array(
array('cli.php', '--foo=bar'),
array(new InputOption('foo', 'f', InputOption::VALUE_REQUIRED)),
array('foo' => 'bar'),
- '->parse() parses long options with a required value (with a = separator)'
+ '->parse() parses long options with a required value (with a = separator)',
),
array(
array('cli.php', '--foo', 'bar'),
array(new InputOption('foo', 'f', InputOption::VALUE_REQUIRED)),
array('foo' => 'bar'),
- '->parse() parses long options with a required value (with a space separator)'
+ '->parse() parses long options with a required value (with a space separator)',
),
array(
array('cli.php', '-f'),
array(new InputOption('foo', 'f')),
array('foo' => true),
- '->parse() parses short options without a value'
+ '->parse() parses short options without a value',
),
array(
array('cli.php', '-fbar'),
array(new InputOption('foo', 'f', InputOption::VALUE_REQUIRED)),
array('foo' => 'bar'),
- '->parse() parses short options with a required value (with no separator)'
+ '->parse() parses short options with a required value (with no separator)',
),
array(
array('cli.php', '-f', 'bar'),
array(new InputOption('foo', 'f', InputOption::VALUE_REQUIRED)),
array('foo' => 'bar'),
- '->parse() parses short options with a required value (with a space separator)'
+ '->parse() parses short options with a required value (with a space separator)',
),
array(
array('cli.php', '-f', ''),
array(new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL)),
array('foo' => ''),
- '->parse() parses short options with an optional empty value'
+ '->parse() parses short options with an optional empty value',
),
array(
array('cli.php', '-f', '', 'foo'),
array(new InputArgument('name'), new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL)),
array('foo' => ''),
- '->parse() parses short options with an optional empty value followed by an argument'
+ '->parse() parses short options with an optional empty value followed by an argument',
),
array(
array('cli.php', '-f', '', '-b'),
array(new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL), new InputOption('bar', 'b')),
array('foo' => '', 'bar' => true),
- '->parse() parses short options with an optional empty value followed by an option'
+ '->parse() parses short options with an optional empty value followed by an option',
),
array(
array('cli.php', '-f', '-b', 'foo'),
array(new InputArgument('name'), new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL), new InputOption('bar', 'b')),
array('foo' => null, 'bar' => true),
- '->parse() parses short options with an optional value which is not present'
+ '->parse() parses short options with an optional value which is not present',
),
array(
array('cli.php', '-fb'),
array(new InputOption('foo', 'f'), new InputOption('bar', 'b')),
array('foo' => true, 'bar' => true),
- '->parse() parses short options when they are aggregated as a single one'
+ '->parse() parses short options when they are aggregated as a single one',
),
array(
array('cli.php', '-fb', 'bar'),
array(new InputOption('foo', 'f'), new InputOption('bar', 'b', InputOption::VALUE_REQUIRED)),
array('foo' => true, 'bar' => 'bar'),
- '->parse() parses short options when they are aggregated as a single one and the last one has a required value'
+ '->parse() parses short options when they are aggregated as a single one and the last one has a required value',
),
array(
array('cli.php', '-fb', 'bar'),
array(new InputOption('foo', 'f'), new InputOption('bar', 'b', InputOption::VALUE_OPTIONAL)),
array('foo' => true, 'bar' => 'bar'),
- '->parse() parses short options when they are aggregated as a single one and the last one has an optional value'
+ '->parse() parses short options when they are aggregated as a single one and the last one has an optional value',
),
array(
array('cli.php', '-fbbar'),
array(new InputOption('foo', 'f'), new InputOption('bar', 'b', InputOption::VALUE_OPTIONAL)),
array('foo' => true, 'bar' => 'bar'),
- '->parse() parses short options when they are aggregated as a single one and the last one has an optional value with no separator'
+ '->parse() parses short options when they are aggregated as a single one and the last one has an optional value with no separator',
),
array(
array('cli.php', '-fbbar'),
array(new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL), new InputOption('bar', 'b', InputOption::VALUE_OPTIONAL)),
array('foo' => 'bbar', 'bar' => null),
- '->parse() parses short options when they are aggregated as a single one and one of them takes a value'
- )
+ '->parse() parses short options when they are aggregated as a single one and one of them takes a value',
+ ),
);
}
@@ -163,43 +163,43 @@ class ArgvInputTest extends \PHPUnit_Framework_TestCase
array(
array('cli.php', '--foo'),
new InputDefinition(array(new InputOption('foo', 'f', InputOption::VALUE_REQUIRED))),
- 'The "--foo" option requires a value.'
+ 'The "--foo" option requires a value.',
),
array(
array('cli.php', '-f'),
new InputDefinition(array(new InputOption('foo', 'f', InputOption::VALUE_REQUIRED))),
- 'The "--foo" option requires a value.'
+ 'The "--foo" option requires a value.',
),
array(
array('cli.php', '-ffoo'),
new InputDefinition(array(new InputOption('foo', 'f', InputOption::VALUE_NONE))),
- 'The "-o" option does not exist.'
+ 'The "-o" option does not exist.',
),
array(
array('cli.php', '--foo=bar'),
new InputDefinition(array(new InputOption('foo', 'f', InputOption::VALUE_NONE))),
- 'The "--foo" option does not accept a value.'
+ 'The "--foo" option does not accept a value.',
),
array(
array('cli.php', 'foo', 'bar'),
new InputDefinition(),
- 'Too many arguments.'
+ 'Too many arguments.',
),
array(
array('cli.php', '--foo'),
new InputDefinition(),
- 'The "--foo" option does not exist.'
+ 'The "--foo" option does not exist.',
),
array(
array('cli.php', '-f'),
new InputDefinition(),
- 'The "-f" option does not exist.'
+ 'The "-f" option does not exist.',
),
array(
array('cli.php', '-1'),
new InputDefinition(array(new InputArgument('number'))),
- 'The "-1" option does not exist.'
- )
+ 'The "-1" option does not exist.',
+ ),
);
}
diff --git a/src/Symfony/Component/Console/Tests/Input/ArrayInputTest.php b/src/Symfony/Component/Console/Tests/Input/ArrayInputTest.php
index 73f2e33e4e..7cf28e8f49 100644
--- a/src/Symfony/Component/Console/Tests/Input/ArrayInputTest.php
+++ b/src/Symfony/Component/Console/Tests/Input/ArrayInputTest.php
@@ -62,26 +62,26 @@ class ArrayInputTest extends \PHPUnit_Framework_TestCase
array('--foo' => 'bar'),
array(new InputOption('foo')),
array('foo' => 'bar'),
- '->parse() parses long options'
+ '->parse() parses long options',
),
array(
array('--foo' => 'bar'),
array(new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL, '', 'default')),
array('foo' => 'bar'),
- '->parse() parses long options with a default value'
+ '->parse() parses long options with a default value',
),
array(
array('--foo' => null),
array(new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL, '', 'default')),
array('foo' => 'default'),
- '->parse() parses long options with a default value'
+ '->parse() parses long options with a default value',
),
array(
array('-f' => 'bar'),
array(new InputOption('foo', 'f')),
array('foo' => 'bar'),
- '->parse() parses short options'
- )
+ '->parse() parses short options',
+ ),
);
}
@@ -101,23 +101,23 @@ class ArrayInputTest extends \PHPUnit_Framework_TestCase
array(
array('foo' => 'foo'),
new InputDefinition(array(new InputArgument('name'))),
- 'The "foo" argument does not exist.'
+ 'The "foo" argument does not exist.',
),
array(
array('--foo' => null),
new InputDefinition(array(new InputOption('foo', 'f', InputOption::VALUE_REQUIRED))),
- 'The "--foo" option requires a value.'
+ 'The "--foo" option requires a value.',
),
array(
array('--foo' => 'foo'),
new InputDefinition(),
- 'The "--foo" option does not exist.'
+ 'The "--foo" option does not exist.',
),
array(
array('-o' => 'foo'),
new InputDefinition(),
- 'The "-o" option does not exist.'
- )
+ 'The "-o" option does not exist.',
+ ),
);
}
diff --git a/src/Symfony/Component/Console/Tests/Input/InputArgumentTest.php b/src/Symfony/Component/Console/Tests/Input/InputArgumentTest.php
index 3bfc796696..cfb37cd410 100644
--- a/src/Symfony/Component/Console/Tests/Input/InputArgumentTest.php
+++ b/src/Symfony/Component/Console/Tests/Input/InputArgumentTest.php
@@ -50,7 +50,7 @@ class InputArgumentTest extends \PHPUnit_Framework_TestCase
{
return array(
array('ANOTHER_ONE'),
- array(-1)
+ array(-1),
);
}
diff --git a/src/Symfony/Component/Console/Tests/Input/InputOptionTest.php b/src/Symfony/Component/Console/Tests/Input/InputOptionTest.php
index 5817e8fb8e..53ce1df8cf 100644
--- a/src/Symfony/Component/Console/Tests/Input/InputOptionTest.php
+++ b/src/Symfony/Component/Console/Tests/Input/InputOptionTest.php
@@ -86,7 +86,7 @@ class InputOptionTest extends \PHPUnit_Framework_TestCase
{
return array(
array('ANOTHER_ONE'),
- array(-1)
+ array(-1),
);
}
diff --git a/src/Symfony/Component/CssSelector/Parser/Parser.php b/src/Symfony/Component/CssSelector/Parser/Parser.php
index 6c7c3be583..c622383e84 100644
--- a/src/Symfony/Component/CssSelector/Parser/Parser.php
+++ b/src/Symfony/Component/CssSelector/Parser/Parser.php
@@ -96,7 +96,7 @@ class Parser implements ParserInterface
return array(
$first ? ('-' === $first || '+' === $first ? $int($first.'1') : $int($first)) : 1,
- isset($split[1]) && $split[1] ? $int($split[1]) : 0
+ isset($split[1]) && $split[1] ? $int($split[1]) : 0,
);
}
diff --git a/src/Symfony/Component/CssSelector/Parser/Shortcut/ClassParser.php b/src/Symfony/Component/CssSelector/Parser/Shortcut/ClassParser.php
index db352334f0..bb9653ce01 100644
--- a/src/Symfony/Component/CssSelector/Parser/Shortcut/ClassParser.php
+++ b/src/Symfony/Component/CssSelector/Parser/Shortcut/ClassParser.php
@@ -41,7 +41,7 @@ class ClassParser implements ParserInterface
// 4 => string 'ab6bd_field' (length=11)
if (preg_match('/^(([a-z]+)\|)?([\w-]+|\*)?\.([\w-]+)$/i', trim($source), $matches)) {
return array(
- new SelectorNode(new ClassNode(new ElementNode($matches[2] ?: null, $matches[3] ?: null), $matches[4]))
+ new SelectorNode(new ClassNode(new ElementNode($matches[2] ?: null, $matches[3] ?: null), $matches[4])),
);
}
diff --git a/src/Symfony/Component/CssSelector/Parser/Shortcut/HashParser.php b/src/Symfony/Component/CssSelector/Parser/Shortcut/HashParser.php
index 95d7d5f911..28c7d296f1 100644
--- a/src/Symfony/Component/CssSelector/Parser/Shortcut/HashParser.php
+++ b/src/Symfony/Component/CssSelector/Parser/Shortcut/HashParser.php
@@ -41,7 +41,7 @@ class HashParser implements ParserInterface
// 4 => string 'ab6bd_field' (length=11)
if (preg_match('/^(([a-z]+)\|)?([\w-]+|\*)?#([\w-]+)$/i', trim($source), $matches)) {
return array(
- new SelectorNode(new HashNode(new ElementNode($matches[2] ?: null, $matches[3] ?: null), $matches[4]))
+ new SelectorNode(new HashNode(new ElementNode($matches[2] ?: null, $matches[3] ?: null), $matches[4])),
);
}
diff --git a/src/Symfony/Component/CssSelector/Parser/Tokenizer/TokenizerEscaping.php b/src/Symfony/Component/CssSelector/Parser/Tokenizer/TokenizerEscaping.php
index 921fc393a9..76386c9371 100644
--- a/src/Symfony/Component/CssSelector/Parser/Tokenizer/TokenizerEscaping.php
+++ b/src/Symfony/Component/CssSelector/Parser/Tokenizer/TokenizerEscaping.php
@@ -72,10 +72,10 @@ class TokenizerEscaping
return chr($c);
}
if (0x800 > $c) {
- return chr(0xC0 | $c>>6).chr(0x80 | $c & 0x3F);
+ return chr(0xC0 | $c >> 6).chr(0x80 | $c & 0x3F);
}
if (0x10000 > $c) {
- return chr(0xE0 | $c>>12).chr(0x80 | $c>>6 & 0x3F).chr(0x80 | $c & 0x3F);
+ return chr(0xE0 | $c >> 12).chr(0x80 | $c >> 6 & 0x3F).chr(0x80 | $c & 0x3F);
}
}, $value);
}
diff --git a/src/Symfony/Component/Debug/Tests/Exception/FlattenExceptionTest.php b/src/Symfony/Component/Debug/Tests/Exception/FlattenExceptionTest.php
index 4caa9ed345..0c0f42d80b 100644
--- a/src/Symfony/Component/Debug/Tests/Exception/FlattenExceptionTest.php
+++ b/src/Symfony/Component/Debug/Tests/Exception/FlattenExceptionTest.php
@@ -114,7 +114,6 @@ class FlattenExceptionTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($exception->getMessage(), $flattened->getMessage(), 'The message is copied from the original exception.');
$this->assertEquals($exception->getCode(), $flattened->getCode(), 'The code is copied from the original exception.');
$this->assertInstanceOf($flattened->getClass(), $exception, 'The class is set to the class of the original exception');
-
}
/**
@@ -160,13 +159,13 @@ class FlattenExceptionTest extends \PHPUnit_Framework_TestCase
$this->assertEquals(array(
array(
- 'message'=> 'test',
- 'class'=>'Exception',
- 'trace'=>array(array(
+ 'message' => 'test',
+ 'class' => 'Exception',
+ 'trace' => array(array(
'namespace' => '', 'short_class' => '', 'class' => '','type' => '','function' => '', 'file' => 'foo.php', 'line' => 123,
- 'args' => array()
+ 'args' => array(),
)),
- )
+ ),
), $flattened->toArray());
}
@@ -202,7 +201,7 @@ class FlattenExceptionTest extends \PHPUnit_Framework_TestCase
'line' => 123,
'function' => 'test',
'args' => array(
- unserialize('O:14:"BogusTestClass":0:{}')
+ unserialize('O:14:"BogusTestClass":0:{}'),
),
),
),
@@ -211,9 +210,9 @@ class FlattenExceptionTest extends \PHPUnit_Framework_TestCase
$this->assertEquals(array(
array(
- 'message'=> 'test',
- 'class'=>'Exception',
- 'trace'=>array(
+ 'message' => 'test',
+ 'class' => 'Exception',
+ 'trace' => array(
array(
'namespace' => '', 'short_class' => '', 'class' => '','type' => '','function' => '',
'file' => 'foo.php', 'line' => 123,
@@ -224,12 +223,12 @@ class FlattenExceptionTest extends \PHPUnit_Framework_TestCase
'file' => __FILE__, 'line' => 123,
'args' => array(
array(
- 'incomplete-object', 'BogusTestClass'
+ 'incomplete-object', 'BogusTestClass',
),
),
- )
+ ),
),
- )
+ ),
), $flattened->toArray());
}
}
diff --git a/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php b/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php
index 7e18a52022..b8addc10f5 100644
--- a/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php
+++ b/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php
@@ -196,7 +196,7 @@ class PhpDumper extends Dumper
$code = '';
foreach ($definitions as $definition) {
- $code .= "\n" . $this->getProxyDumper()->getProxyCode($definition);
+ $code .= "\n".$this->getProxyDumper()->getProxyCode($definition);
}
return $code;
@@ -844,7 +844,7 @@ EOF;
$code .= ' '.var_export($id, true).' => '.var_export('get'.$this->camelize($id).'Service', true).",\n";
}
- return $code . " );\n";
+ return $code." );\n";
}
/**
@@ -872,7 +872,7 @@ EOF;
$code .= ' '.var_export($alias, true).' => '.var_export($id, true).",\n";
}
- return $code . " );\n";
+ return $code." );\n";
}
/**
diff --git a/src/Symfony/Component/DependencyInjection/IntrospectableContainerInterface.php b/src/Symfony/Component/DependencyInjection/IntrospectableContainerInterface.php
index c2fe7745d2..f0853fe01e 100644
--- a/src/Symfony/Component/DependencyInjection/IntrospectableContainerInterface.php
+++ b/src/Symfony/Component/DependencyInjection/IntrospectableContainerInterface.php
@@ -29,5 +29,4 @@ interface IntrospectableContainerInterface extends ContainerInterface
*
*/
public function initialized($id);
-
}
diff --git a/src/Symfony/Component/DependencyInjection/Tests/ContainerBuilderTest.php b/src/Symfony/Component/DependencyInjection/Tests/ContainerBuilderTest.php
index 5890ed84c1..c42db5adeb 100644
--- a/src/Symfony/Component/DependencyInjection/Tests/ContainerBuilderTest.php
+++ b/src/Symfony/Component/DependencyInjection/Tests/ContainerBuilderTest.php
@@ -477,7 +477,7 @@ class ContainerBuilderTest extends \PHPUnit_Framework_TestCase
'foo' => array(
array('foo' => 'foo'),
array('foofoo' => 'foofoo'),
- )
+ ),
), '->findTaggedServiceIds() returns an array of service ids and its tag attributes');
$this->assertEquals(array(), $builder->findTaggedServiceIds('foobar'), '->findTaggedServiceIds() returns an empty array if there is annotated services');
}
@@ -659,7 +659,7 @@ class ContainerBuilderTest extends \PHPUnit_Framework_TestCase
$container->addDefinitions(array(
'bar' => $fooDefinition,
- 'bar_user' => $fooUserDefinition
+ 'bar_user' => $fooUserDefinition,
));
$container->compile();
@@ -820,7 +820,9 @@ class ContainerBuilderTest extends \PHPUnit_Framework_TestCase
}
}
-class FooClass {}
+class FooClass
+{
+}
class ProjectContainer extends ContainerBuilder
{
diff --git a/src/Symfony/Component/DependencyInjection/Tests/ContainerTest.php b/src/Symfony/Component/DependencyInjection/Tests/ContainerTest.php
index e145c7a10c..314f3e61f1 100644
--- a/src/Symfony/Component/DependencyInjection/Tests/ContainerTest.php
+++ b/src/Symfony/Component/DependencyInjection/Tests/ContainerTest.php
@@ -228,7 +228,6 @@ class ContainerTest extends \PHPUnit_Framework_TestCase
public function testGetCircularReference()
{
-
$sc = new ProjectServiceContainer();
try {
$sc->get('circular');
diff --git a/src/Symfony/Component/DependencyInjection/Tests/Dumper/PhpDumperTest.php b/src/Symfony/Component/DependencyInjection/Tests/Dumper/PhpDumperTest.php
index 1a64508413..1900af1851 100644
--- a/src/Symfony/Component/DependencyInjection/Tests/Dumper/PhpDumperTest.php
+++ b/src/Symfony/Component/DependencyInjection/Tests/Dumper/PhpDumperTest.php
@@ -62,7 +62,7 @@ class PhpDumperTest extends \PHPUnit_Framework_TestCase
'concatenation from the start value' => '\'\'.',
'.' => 'dot as a key',
'.\'\'.' => 'concatenation as a key',
- '\'\'.' =>'concatenation from the start key',
+ '\'\'.' => 'concatenation from the start key',
'optimize concatenation' => "string1%some_string%string2",
'optimize concatenation with empty string' => "string1%empty_value%string2",
'optimize concatenation from the start' => '%empty_value%start',
diff --git a/src/Symfony/Component/DependencyInjection/Tests/Extension/ExtensionTest.php b/src/Symfony/Component/DependencyInjection/Tests/Extension/ExtensionTest.php
index e35bbd5d3c..e7f19a6e94 100644
--- a/src/Symfony/Component/DependencyInjection/Tests/Extension/ExtensionTest.php
+++ b/src/Symfony/Component/DependencyInjection/Tests/Extension/ExtensionTest.php
@@ -54,7 +54,7 @@ class ExtensionTest extends \PHPUnit_Framework_TestCase
{
return array(
array(true),
- array(false)
+ array(false),
);
}
diff --git a/src/Symfony/Component/DomCrawler/FormFieldRegistry.php b/src/Symfony/Component/DomCrawler/FormFieldRegistry.php
index 150f94dfc6..39d4774a08 100644
--- a/src/Symfony/Component/DomCrawler/FormFieldRegistry.php
+++ b/src/Symfony/Component/DomCrawler/FormFieldRegistry.php
@@ -33,16 +33,16 @@ class FormFieldRegistry
{
$segments = $this->getSegments($field->getName());
- $target =& $this->fields;
+ $target = & $this->fields;
while ($segments) {
if (!is_array($target)) {
$target = array();
}
$path = array_shift($segments);
if ('' === $path) {
- $target =& $target[];
+ $target = & $target[];
} else {
- $target =& $target[$path];
+ $target = & $target[$path];
}
}
$target = $field;
@@ -58,13 +58,13 @@ class FormFieldRegistry
public function remove($name)
{
$segments = $this->getSegments($name);
- $target =& $this->fields;
+ $target = & $this->fields;
while (count($segments) > 1) {
$path = array_shift($segments);
if (!array_key_exists($path, $target)) {
return;
}
- $target =& $target[$path];
+ $target = & $target[$path];
}
unset($target[array_shift($segments)]);
}
@@ -82,13 +82,13 @@ class FormFieldRegistry
public function &get($name)
{
$segments = $this->getSegments($name);
- $target =& $this->fields;
+ $target = & $this->fields;
while ($segments) {
$path = array_shift($segments);
if (!array_key_exists($path, $target)) {
throw new \InvalidArgumentException(sprintf('Unreachable field "%s"', $path));
}
- $target =& $target[$path];
+ $target = & $target[$path];
}
return $target;
@@ -123,7 +123,7 @@ class FormFieldRegistry
*/
public function set($name, $value)
{
- $target =& $this->get($name);
+ $target = & $this->get($name);
if (!is_array($value) || $target instanceof Field\ChoiceFormField) {
$target->setValue($value);
} else {
diff --git a/src/Symfony/Component/DomCrawler/Tests/Field/FileFormFieldTest.php b/src/Symfony/Component/DomCrawler/Tests/Field/FileFormFieldTest.php
index 066cdb0ef3..3ce49a46ef 100644
--- a/src/Symfony/Component/DomCrawler/Tests/Field/FileFormFieldTest.php
+++ b/src/Symfony/Component/DomCrawler/Tests/Field/FileFormFieldTest.php
@@ -111,5 +111,4 @@ class FileFormFieldTest extends FormFieldTestCase
$this->assertEquals(__FILE__, $field->getValue());
}
-
}
diff --git a/src/Symfony/Component/DomCrawler/Tests/FormTest.php b/src/Symfony/Component/DomCrawler/Tests/FormTest.php
index 0195813858..4a556c6eea 100644
--- a/src/Symfony/Component/DomCrawler/Tests/FormTest.php
+++ b/src/Symfony/Component/DomCrawler/Tests/FormTest.php
@@ -132,13 +132,13 @@ class FormTest extends \PHPUnit_Framework_TestCase
'apples' => array('1', '2'),
'form_name' => 'form-1',
'button_1' => 'Capture fields',
- 'outer_field' => 'success'
+ 'outer_field' => 'success',
);
$values2 = array(
'oranges' => array('1', '2', '3'),
'form_name' => 'form_2',
'button_2' => '',
- 'app_frontend_form_type_contact_form_type' => array('contactType' => '', 'firstName' => 'John')
+ 'app_frontend_form_type_contact_form_type' => array('contactType' => '', 'firstName' => 'John'),
);
$this->assertEquals($values1, $form1->getPhpValues(), 'HTML5-compliant form attribute handled incorrectly');
@@ -178,7 +178,6 @@ class FormTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($form->get('bar[foo][0]')->getValue(), 'bar');
$this->assertEquals($form->get('bar[foo][foobar]')->getValue(), 'foobar');
-
}
/**
@@ -414,7 +413,6 @@ class FormTest extends \PHPUnit_Framework_TestCase
$form = $this->createForm('');
$this->assertEquals(array('foo' => array('bar' => 'foo'), 'bar' => 'bar'), $form->getPhpValues(), "->getPhpValues() doesn't return empty values");
-
}
public function testGetFiles()
@@ -480,7 +478,7 @@ class FormTest extends \PHPUnit_Framework_TestCase
public function testGetUriActionAbsolute()
{
- $formHtml='';
+ $formHtml = '';
$form = $this->createForm($formHtml);
$this->assertEquals('https://login.foo.com/login.php?login_attempt=1', $form->getUri(), '->getUri() returns absolute URIs set in the action form');
@@ -527,52 +525,52 @@ class FormTest extends \PHPUnit_Framework_TestCase
'returns the URI of the form',
'',
array(),
- '/foo'
+ '/foo',
),
array(
'appends the form values if the method is get',
'',
array(),
- '/foo?foo=foo'
+ '/foo?foo=foo',
),
array(
'appends the form values and merges the submitted values',
'',
array('foo' => 'bar'),
- '/foo?foo=bar'
+ '/foo?foo=bar',
),
array(
'does not append values if the method is post',
'',
array(),
- '/foo'
+ '/foo',
),
array(
'does not append values if the method is patch',
'',
array(),
'/foo',
- 'PUT'
+ 'PUT',
),
array(
'does not append values if the method is delete',
'',
array(),
'/foo',
- 'DELETE'
+ 'DELETE',
),
array(
'does not append values if the method is put',
'',
array(),
'/foo',
- 'PATCH'
+ 'PATCH',
),
array(
'appends the form values to an existing query string',
'',
array(),
- '/foo?bar=bar&foo=foo'
+ '/foo?bar=bar&foo=foo',
),
array(
'returns an empty URI if the action is empty',
@@ -777,8 +775,8 @@ class FormTest extends \PHPUnit_Framework_TestCase
2 => 2,
3 => 3,
'bar' => array(
- 'baz' => 'fbb'
- )
+ 'baz' => 'fbb',
+ ),
));
}
@@ -908,8 +906,8 @@ class FormTest extends \PHPUnit_Framework_TestCase
public function testgetPhpValuesWithEmptyTextarea()
{
- $dom = new \DOMDocument();
- $dom->loadHTML('
+ $dom = new \DOMDocument();
+ $dom->loadHTML('
',
'/form
[./input[@type="hidden"][@name="_method"][@value="PUT"]]
[@method="post"]
@@ -1859,7 +1859,7 @@ abstract class AbstractLayoutTest extends \Symfony\Component\Form\Test\FormInteg
$html = $this->renderStart($form->createView(), array(
'method' => 'post',
- 'action' => 'http://foo.com/directory'
+ 'action' => 'http://foo.com/directory',
));
$this->assertSame('