clean code with php-cs-fixer

This commit is contained in:
Manuel Raynaud
2012-11-03 09:39:40 +01:00
parent 67fa4f6706
commit 43ec85bb1e
20 changed files with 273 additions and 322 deletions

View File

@@ -6,7 +6,6 @@
//database type : mysql, sqlite, pgsql, etc
define('THELIA_DB_TYPE','mysql');
// database login
define('THELIA_BD_LOGIN', '__DB_LOGIN__');
@@ -15,6 +14,3 @@ define('THELIA_BD_PASSWORD', '__DB_PASSWORD__');
//database DSN
define('THELIA_DB_DSN','mysql:dbname=__DB_NAME__;host:__DB_HOST__');
?>

View File

@@ -12,8 +12,4 @@ define('THELIA_BD_LOGIN', '__DB_LOGIN__');
// database password
define('THELIA_BD_PASSWORD', '__DB_PASSWORD__');
define('THELIA_DB_DSN','pgsql:dbname=__DB_NAME__;host:__DB_HOST__');
?>

View File

@@ -12,8 +12,4 @@ define('THELIA_BD_LOGIN', '__DB_LOGIN__');
// database password
define('THELIA_BD_PASSWORD', '__DB_PASSWORD__');
define('THELIA_DB_DSN','sqlite:__DB_FILE__');
?>

View File

@@ -1,25 +1,18 @@
<?php
if(is_file(__DIR__ . '/config_db.php')){
if (is_file(__DIR__ . '/config_db.php')) {
require __DIR__ . '/config_db.php';
}
else{
} else {
return false;
}
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Reference;
$container = new ContainerBuilder();
$container->register('database','Thelia\\Database\\Connection');
$container->register('http_kernel','Symfony\\Component\\HttpKernel\\HttpKernel');
$container->register('session','Symfony\\Component\\HttpFoundation\\Session\\Session');
return $container;
?>