@@ -36,15 +36,15 @@ discard block |
||
| 36 | 36 | $app['intaro_pinba.script_name_configure.enable'] = true; |
| 37 | 37 | |
| 38 | 38 | |
| 39 | - $app['intaro_pinba.script_name_configure.listener'] = function () use ($app) { |
|
| 39 | + $app['intaro_pinba.script_name_configure.listener'] = function() use ($app) { |
|
| 40 | 40 | return new $app['intaro_pinba.script_name_configure.class']; |
| 41 | 41 | }; |
| 42 | 42 | |
| 43 | - $app['intaro_pinba.stopwatch'] = function () use ($app) { |
|
| 43 | + $app['intaro_pinba.stopwatch'] = function() use ($app) { |
|
| 44 | 44 | return new $app['intaro_pinba.stopwatch.class']; |
| 45 | 45 | }; |
| 46 | 46 | |
| 47 | - $app['doctrine.dbal.logger'] = function () use ($app) { |
|
| 47 | + $app['doctrine.dbal.logger'] = function() use ($app) { |
|
| 48 | 48 | /** |
| 49 | 49 | * @see \Intaro\PinbaBundle\Logger\DbalLogger |
| 50 | 50 | */ |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | return new $className($app["intaro_pinba.stopwatch"], $host); |
| 54 | 54 | }; |
| 55 | 55 | |
| 56 | - $app['dbs.config'] = function ($app) { |
|
| 56 | + $app['dbs.config'] = function($app) { |
|
| 57 | 57 | $app['dbs.options.initializer'](); |
| 58 | 58 | |
| 59 | 59 | $configs = new Container(); |
@@ -68,12 +68,12 @@ discard block |
||
| 68 | 68 | return $configs; |
| 69 | 69 | }; |
| 70 | 70 | |
| 71 | - $app['twig.environment_factory'] = $app->protect(function ($app) { |
|
| 71 | + $app['twig.environment_factory'] = $app->protect(function($app) { |
|
| 72 | 72 | $className = $app['intaro_pinba.templating.engine.twig.class']; |
| 73 | 73 | $twig = new $className($app['twig.loader'], $app['twig.options']); |
| 74 | - if($twig instanceof TimedTwigEnvironment) { |
|
| 74 | + if ($twig instanceof TimedTwigEnvironment) { |
|
| 75 | 75 | $twig |
| 76 | - ->setStopwatch( $app['intaro_pinba.stopwatch']) |
|
| 76 | + ->setStopwatch($app['intaro_pinba.stopwatch']) |
|
| 77 | 77 | ->setServerName($app['intaro_pinba.server.name']) |
| 78 | 78 | ; |
| 79 | 79 | } |
@@ -23,15 +23,15 @@ discard block |
||
| 23 | 23 | $storage = new \ArrayObject(); |
| 24 | 24 | $app = new ApplicationEmulator(); |
| 25 | 25 | $emulate = false; |
| 26 | - if(!function_exists('pinba_script_name_set')) { |
|
| 26 | + if (!function_exists('pinba_script_name_set')) { |
|
| 27 | 27 | $emulate = true; |
| 28 | - $app['pinba_logger'] = function () { |
|
| 28 | + $app['pinba_logger'] = function() { |
|
| 29 | 29 | return new PinbaLogger(); |
| 30 | 30 | }; |
| 31 | 31 | require __DIR__.'/../pinba_emulator.php'; |
| 32 | 32 | } |
| 33 | 33 | $app |
| 34 | - ->register(new TwigServiceProvider(),array( |
|
| 34 | + ->register(new TwigServiceProvider(), array( |
|
| 35 | 35 | 'twig.templates' => array('hello' => 'Hello {{ name }}!'), |
| 36 | 36 | )) |
| 37 | 37 | ->register(new SilexPinbaProvider()); |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | $stopwatch-> setStorage($storage); |
| 47 | 47 | $app->renderView('hello'); |
| 48 | 48 | $this->assertTrue(is_array($storage['tags']), var_export($storage, true)); |
| 49 | - if($emulate) { |
|
| 49 | + if ($emulate) { |
|
| 50 | 50 | /** |
| 51 | 51 | * @var $logger PinbaLogger |
| 52 | 52 | */ |