From 10424155bfdb6709639327e06c3f900b2302b21d Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Tue, 11 May 2010 10:36:31 +0200 Subject: [PATCH] fixed some coding standards problems --- src/Symfony/Components/HttpKernel/Request.php | 3 +-- src/Symfony/Foundation/packager.php | 3 +-- .../Resources/skeleton/web/front_controller_debug.php | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/Symfony/Components/HttpKernel/Request.php b/src/Symfony/Components/HttpKernel/Request.php index c1a1789e51..178df2b35e 100644 --- a/src/Symfony/Components/HttpKernel/Request.php +++ b/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; } diff --git a/src/Symfony/Foundation/packager.php b/src/Symfony/Foundation/packager.php index 28b5246302..05f49a0de7 100644 --- a/src/Symfony/Foundation/packager.php +++ b/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( diff --git a/src/Symfony/Framework/WebBundle/Resources/skeleton/web/front_controller_debug.php b/src/Symfony/Framework/WebBundle/Resources/skeleton/web/front_controller_debug.php index d3a10312b3..6fb3ee5ae0 100644 --- a/src/Symfony/Framework/WebBundle/Resources/skeleton/web/front_controller_debug.php +++ b/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.'); }