Browse Source

fixed some coding standards problems

Fabien Potencier 15 years ago
parent
commit
10424155bf

+ 1 - 2
src/Symfony/Components/HttpKernel/Request.php

@@ -278,8 +278,7 @@ class Request
     public function getUri()
     {
         $qs = $this->getQueryString();
-        if (null !== $qs)
-        {
+        if (null !== $qs) {
             $qs = '?'.$qs;
         }
 

+ 1 - 2
src/Symfony/Foundation/packager.php

@@ -18,8 +18,7 @@ $loader = new UniversalClassLoader();
 $loader->registerNamespaces(array('Symfony' => __DIR__.'/../..'));
 $loader->register();
 
-if (file_exists(__DIR__.'/bootstrap.php'))
-{
+if (file_exists(__DIR__.'/bootstrap.php')) {
     unlink(__DIR__.'/bootstrap.php');
 }
 ClassCollectionLoader::load(array(

+ 1 - 2
src/Symfony/Framework/WebBundle/Resources/skeleton/web/front_controller_debug.php

@@ -2,8 +2,7 @@
 
 // this check prevents access to debug front controllers that are deployed by accident to production servers.
 // feel free to remove this, extend it, or make something more sophisticated.
-if (!in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1')))
-{
+if (!in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1'))) {
     die('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
 }