diff --git a/src/Symfony/Bridge/Doctrine/Tests/Form/ChoiceList/EntityChoiceListTest.php b/src/Symfony/Bridge/Doctrine/Tests/Form/ChoiceList/EntityChoiceListTest.php
index 54d5b51d72..2d8aeed2f3 100644
--- a/src/Symfony/Bridge/Doctrine/Tests/Form/ChoiceList/EntityChoiceListTest.php
+++ b/src/Symfony/Bridge/Doctrine/Tests/Form/ChoiceList/EntityChoiceListTest.php
@@ -53,12 +53,12 @@ class EntityChoiceListTest extends DoctrineOrmTestCase
try {
$schemaTool->dropSchema($classes);
- } catch(\Exception $e) {
+ } catch (\Exception $e) {
}
try {
$schemaTool->createSchema($classes);
- } catch(\Exception $e) {
+ } catch (\Exception $e) {
}
}
diff --git a/src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php b/src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php
index 1300d3e61d..d7a2f11069 100644
--- a/src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php
+++ b/src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php
@@ -67,12 +67,12 @@ class EntityTypeTest extends TypeTestCase
try {
$schemaTool->dropSchema($classes);
- } catch(\Exception $e) {
+ } catch (\Exception $e) {
}
try {
$schemaTool->createSchema($classes);
- } catch(\Exception $e) {
+ } catch (\Exception $e) {
}
}
diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/form_label.html.php b/src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/form_label.html.php
index ac6bf646ce..e236122065 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/form_label.html.php
+++ b/src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/form_label.html.php
@@ -1,3 +1,3 @@
-
+
diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/widget_attributes.html.php b/src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/widget_attributes.html.php
index fe4afa01d2..043620725b 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/widget_attributes.html.php
+++ b/src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/widget_attributes.html.php
@@ -5,5 +5,5 @@ name="escape($full_name) ?>"
required="required"
maxlength="escape($max_length) ?>"
pattern="escape($pattern) ?>"
- $v) { printf('%s="%s" ', $view->escape($k), $view->escape($v)); } ?>
+ $v) { printf('%s="%s" ', $view->escape($k), $view->escape($v)); } ?>
diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/widget_container_attributes.html.php b/src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/widget_container_attributes.html.php
index a36cfbbdfc..2a8e979b7f 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/widget_container_attributes.html.php
+++ b/src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/widget_container_attributes.html.php
@@ -1,2 +1,2 @@
id="escape($id) ?>"
- $v) { printf('%s="%s" ', $view->escape($k), $view->escape($v)); } ?>
+ $v) { printf('%s="%s" ', $view->escape($k), $view->escape($v)); } ?>
diff --git a/src/Symfony/Bundle/FrameworkBundle/Templating/Helper/FormHelper.php b/src/Symfony/Bundle/FrameworkBundle/Templating/Helper/FormHelper.php
index 3d9026d5fb..a15dfe84f1 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Templating/Helper/FormHelper.php
+++ b/src/Symfony/Bundle/FrameworkBundle/Templating/Helper/FormHelper.php
@@ -278,7 +278,7 @@ class FormHelper extends Helper
return trim($html);
}
- } while (--$typeIndex >= 0);
+ } while (--$typeIndex >= 0);
throw new FormException(sprintf(
'Unable to render the form as none of the following blocks exist: "%s".',
diff --git a/src/Symfony/Component/DomCrawler/Form.php b/src/Symfony/Component/DomCrawler/Form.php
index 4e23f77d4b..9e60711981 100644
--- a/src/Symfony/Component/DomCrawler/Form.php
+++ b/src/Symfony/Component/DomCrawler/Form.php
@@ -339,7 +339,7 @@ class Form extends Link implements \ArrayAccess
throw new \LogicException('The selected node does not have a form ancestor.');
}
} while ('form' != $node->nodeName);
- } elseif('form' != $node->nodeName) {
+ } elseif ('form' != $node->nodeName) {
throw new \LogicException(sprintf('Unable to submit on a "%s" tag.', $node->nodeName));
}
diff --git a/src/Symfony/Component/Finder/Tests/FinderTest.php b/src/Symfony/Component/Finder/Tests/FinderTest.php
index fda06079ca..fc06e1ed6d 100644
--- a/src/Symfony/Component/Finder/Tests/FinderTest.php
+++ b/src/Symfony/Component/Finder/Tests/FinderTest.php
@@ -276,7 +276,7 @@ class FinderTest extends Iterator\RealIteratorTestCase
$paths = array();
- foreach($finder as $file) {
+ foreach ($finder as $file) {
$paths[] = $file->getRelativePath();
}
@@ -296,7 +296,7 @@ class FinderTest extends Iterator\RealIteratorTestCase
$paths = array();
- foreach($finder as $file) {
+ foreach ($finder as $file) {
$paths[] = $file->getRelativePathname();
}
diff --git a/src/Symfony/Component/HttpFoundation/Tests/ResponseTest.php b/src/Symfony/Component/HttpFoundation/Tests/ResponseTest.php
index 9b72fe3725..4edcd6dd1d 100644
--- a/src/Symfony/Component/HttpFoundation/Tests/ResponseTest.php
+++ b/src/Symfony/Component/HttpFoundation/Tests/ResponseTest.php
@@ -352,14 +352,14 @@ class ResponseTest extends \PHPUnit_Framework_TestCase
try {
$response->setStatusCode(99);
$this->fail();
- } catch(\InvalidArgumentException $e) {
+ } catch (\InvalidArgumentException $e) {
$this->assertTrue($response->isInvalid());
}
try {
$response->setStatusCode(650);
$this->fail();
- } catch(\InvalidArgumentException $e) {
+ } catch (\InvalidArgumentException $e) {
$this->assertTrue($response->isInvalid());
}
diff --git a/src/Symfony/Component/HttpKernel/Tests/EventListener/ExceptionListenerTest.php b/src/Symfony/Component/HttpKernel/Tests/EventListener/ExceptionListenerTest.php
index f999a35ebb..e5e6124768 100644
--- a/src/Symfony/Component/HttpKernel/Tests/EventListener/ExceptionListenerTest.php
+++ b/src/Symfony/Component/HttpKernel/Tests/EventListener/ExceptionListenerTest.php
@@ -66,7 +66,7 @@ class ExceptionListenerTest extends \PHPUnit_Framework_TestCase
try {
$l->onKernelException($event2);
- } catch(\Exception $e) {
+ } catch (\Exception $e) {
$this->assertSame('foo', $e->getMessage());
}
@@ -88,7 +88,7 @@ class ExceptionListenerTest extends \PHPUnit_Framework_TestCase
try {
$l->onKernelException($event2);
- } catch(\Exception $e) {
+ } catch (\Exception $e) {
$this->assertSame('foo', $e->getMessage());
}
diff --git a/src/Symfony/Component/Process/Process.php b/src/Symfony/Component/Process/Process.php
index a5557d7ebd..23e2e89e41 100644
--- a/src/Symfony/Component/Process/Process.php
+++ b/src/Symfony/Component/Process/Process.php
@@ -339,7 +339,7 @@ class Process
foreach ($fh as $type => $fileHandle) {
fseek($fileHandle, $this->readBytes[$type]);
$data = fread($fileHandle, 8192);
- if(isset($this->readBytes)) {
+ if (isset($this->readBytes)) {
$this->readBytes[$type] += strlen($data);
} else {
$this->readBytes[$type] = strlen($data);
diff --git a/src/Symfony/Component/Routing/Matcher/Dumper/ApacheMatcherDumper.php b/src/Symfony/Component/Routing/Matcher/Dumper/ApacheMatcherDumper.php
index 7499bddff4..6e0561dd58 100644
--- a/src/Symfony/Component/Routing/Matcher/Dumper/ApacheMatcherDumper.php
+++ b/src/Symfony/Component/Routing/Matcher/Dumper/ApacheMatcherDumper.php
@@ -144,7 +144,7 @@ class ApacheMatcherDumper extends MatcherDumper
{
$escaped = false;
$output = '';
- foreach(str_split($string) as $symbol) {
+ foreach (str_split($string) as $symbol) {
if ($escaped) {
$output .= $symbol;
$escaped = false;
diff --git a/src/Symfony/Component/Routing/RouteCompiler.php b/src/Symfony/Component/Routing/RouteCompiler.php
index 8910b10d76..df2f8adeeb 100644
--- a/src/Symfony/Component/Routing/RouteCompiler.php
+++ b/src/Symfony/Component/Routing/RouteCompiler.php
@@ -109,7 +109,7 @@ class RouteCompiler implements RouteCompilerInterface
private function computeRegexp(array $tokens, $index, $firstOptional)
{
$token = $tokens[$index];
- if('text' === $token[0]) {
+ if ('text' === $token[0]) {
// Text tokens
return preg_quote($token[1], self::REGEX_DELIMITER);
} else {
diff --git a/src/Symfony/Component/Translation/Loader/MoFileLoader.php b/src/Symfony/Component/Translation/Loader/MoFileLoader.php
index 2363bb543f..c5daa3561e 100644
--- a/src/Symfony/Component/Translation/Loader/MoFileLoader.php
+++ b/src/Symfony/Component/Translation/Loader/MoFileLoader.php
@@ -147,7 +147,7 @@ class MoFileLoader extends ArrayLoader implements LoaderInterface
}
$messages[$item['ids']['plural']] = stripcslashes(implode('|', $plurals));
}
- } elseif(!empty($item['ids']['singular'])) {
+ } elseif (!empty($item['ids']['singular'])) {
$messages[$item['ids']['singular']] = stripcslashes($item['translated']);
}
}