| @@ -47,7 +47,7 @@ discard block | ||
| 47 | 47 |      { | 
| 48 | 48 |          $r = new \ReflectionClass('PommProject\\SymfonyBridge\\DatabaseDataCollector'); | 
| 49 | 49 | |
| 50 | - return dirname(dirname(dirname($r->getFileName()))).'/views'; | |
| 50 | + return dirname(dirname(dirname($r->getFileName()))) . '/views'; | |
| 51 | 51 | } | 
| 52 | 52 | |
| 53 | 53 | /** | 
| @@ -58,7 +58,7 @@ discard block | ||
| 58 | 58 | public function getFilters() | 
| 59 | 59 |      { | 
| 60 | 60 | return [ | 
| 61 | -            new \Twig_SimpleFilter('sql_format', function ($sql) { | |
| 61 | +            new \Twig_SimpleFilter('sql_format', function($sql) { | |
| 62 | 62 | return \SqlFormatter::format($sql); | 
| 63 | 63 | }), | 
| 64 | 64 | ]; | 
| @@ -39,7 +39,7 @@ | ||
| 39 | 39 | public function configure(Pomm $pomm) | 
| 40 | 40 |      { | 
| 41 | 41 |          foreach ($pomm->getSessionBuilders() as $name => $builder) { | 
| 42 | -            $pomm->addPostConfiguration($name, function (Session $session) { | |
| 42 | +            $pomm->addPostConfiguration($name, function(Session $session) { | |
| 43 | 43 |                  foreach ($this->poolers as $pooler) { | 
| 44 | 44 | $session->registerClientPooler($pooler); | 
| 45 | 45 | } | 
| @@ -35,7 +35,7 @@ | ||
| 35 | 35 | */ | 
| 36 | 36 | public function load(array $configs, ContainerBuilder $container) | 
| 37 | 37 |      { | 
| 38 | - $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); | |
| 38 | + $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); | |
| 39 | 39 |          $loader->load('services/pomm.yml'); | 
| 40 | 40 | |
| 41 | 41 |          $loader->load('services/profiler.yml'); | 
| @@ -46,7 +46,7 @@ discard block | ||
| 46 | 46 | ->defaultNull() | 
| 47 | 47 | ->beforeNormalization() | 
| 48 | 48 | ->always() | 
| 49 | -                                    ->then(function ($v) { | |
| 49 | +                                    ->then(function($v) { | |
| 50 | 50 |                                          @trigger_error('class:session_builder is deprecated since version 2.3 and will be removed in 3.0. Use session_builder config key instead with a service id.', E_USER_DEPRECATED); | 
| 51 | 51 | return $v; | 
| 52 | 52 | }) | 
| @@ -56,14 +56,14 @@ discard block | ||
| 56 | 56 |                              ->scalarNode('pomm:default')->end() | 
| 57 | 57 | ->end() | 
| 58 | 58 | ->validate() | 
| 59 | -                            ->ifTrue(function ($v) { | |
| 59 | +                            ->ifTrue(function($v) { | |
| 60 | 60 | return isset($v['session_builder']) && isset($v['class:session_builder']); | 
| 61 | 61 | }) | 
| 62 | 62 |                              ->thenInvalid('You cannot use both "session_builder" and "class:session_builder" at the same time.') | 
| 63 | 63 | ->end() | 
| 64 | 64 | ->beforeNormalization() | 
| 65 | 65 | ->always() | 
| 66 | -                            ->then(function ($v) { | |
| 66 | +                            ->then(function($v) { | |
| 67 | 67 |                                  if (!isset($v['session_builder']) && !isset($v['class:session_builder'])) { | 
| 68 | 68 | $v['session_builder'] = 'pomm.model_manager.session_builder'; | 
| 69 | 69 | } | 
| @@ -11,7 +11,6 @@ | ||
| 11 | 11 | |
| 12 | 12 | use Symfony\Component\HttpKernel\Bundle\Bundle; | 
| 13 | 13 | use Symfony\Component\DependencyInjection\ContainerBuilder; | 
| 14 | -use Symfony\Component\DependencyInjection\Compiler\PassConfig; | |
| 15 | 14 | |
| 16 | 15 | /** | 
| 17 | 16 | * PommBundle |