From 44d90ab9422677f55e638bde940f16094e3e1eeb Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Tue, 5 May 2015 22:06:02 +0200 Subject: [PATCH] indent --- app/bootstrap.php.d/00-main.php | 1 - app/bootstrap.php.d/20-error.php | 1 - app/bootstrap.php.d/20-routing.php | 2 +- app/bootstrap.php.d/20-twig.php | 1 - app/bootstrap.php.d/50-git.php | 4 ++-- src/Gist/Controller/HomeController.php | 2 +- 6 files changed, 4 insertions(+), 7 deletions(-) diff --git a/app/bootstrap.php.d/00-main.php b/app/bootstrap.php.d/00-main.php index 3a731bf..86d5573 100644 --- a/app/bootstrap.php.d/00-main.php +++ b/app/bootstrap.php.d/00-main.php @@ -5,4 +5,3 @@ use Gist\Application; $app = Application::getInstance(); $app['root_path'] = __DIR__ . '/../..'; - diff --git a/app/bootstrap.php.d/20-error.php b/app/bootstrap.php.d/20-error.php index e32b2a0..02de3a9 100644 --- a/app/bootstrap.php.d/20-error.php +++ b/app/bootstrap.php.d/20-error.php @@ -10,4 +10,3 @@ $app->error(function (Exception $e, $code) use ($app) { ) ); }); - diff --git a/app/bootstrap.php.d/20-routing.php b/app/bootstrap.php.d/20-routing.php index e422277..7f80946 100644 --- a/app/bootstrap.php.d/20-routing.php +++ b/app/bootstrap.php.d/20-routing.php @@ -10,6 +10,6 @@ $app['routing.loader'] = function ($app) { $app['routes'] = $app->extend('routes', function ($routes, $app) { $routes->addCollection($app['routing.loader']->load($app['routing.file'])); + return $routes; }); - diff --git a/app/bootstrap.php.d/20-twig.php b/app/bootstrap.php.d/20-twig.php index 3c1c7c1..df3ce3f 100644 --- a/app/bootstrap.php.d/20-twig.php +++ b/app/bootstrap.php.d/20-twig.php @@ -11,4 +11,3 @@ $app->extend('twig', function ($twig, $app) { return $twig; }); - diff --git a/app/bootstrap.php.d/50-git.php b/app/bootstrap.php.d/50-git.php index 3d7cf11..d460d1f 100644 --- a/app/bootstrap.php.d/50-git.php +++ b/app/bootstrap.php.d/50-git.php @@ -3,7 +3,7 @@ use GitWrapper\GitWrapper; $app['git'] = function ($app) { - echo "ok"; + echo "ok"; + return new GitWrapper(); }; - diff --git a/src/Gist/Controller/HomeController.php b/src/Gist/Controller/HomeController.php index 03dc3fc..638740f 100644 --- a/src/Gist/Controller/HomeController.php +++ b/src/Gist/Controller/HomeController.php @@ -15,7 +15,7 @@ class HomeController public function indexAction(Request $request, Application $app) { $form = new CreateGistForm($app['form.factory'], $app['translator']); - $form = $form->build(); + $form = $form->build(); return $app['twig']->render( 'Home/index.html.twig',