fixed some coding standards problems
This commit is contained in:
parent
d8752c7fab
commit
10424155bf
@ -278,8 +278,7 @@ class Request
|
||||
public function getUri()
|
||||
{
|
||||
$qs = $this->getQueryString();
|
||||
if (null !== $qs)
|
||||
{
|
||||
if (null !== $qs) {
|
||||
$qs = '?'.$qs;
|
||||
}
|
||||
|
||||
|
@ -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(
|
||||
|
@ -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.');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user