fixed some coding standards problems

This commit is contained in:
Fabien Potencier 2010-05-11 10:36:31 +02:00
parent d8752c7fab
commit 10424155bf
3 changed files with 3 additions and 6 deletions

View File

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

View File

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

View File

@ -2,8 +2,7 @@
// this check prevents access to debug front controllers that are deployed by accident to production servers. // 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. // 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.'); die('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
} }