From dc0a8ffa65ab1551f15e63e4fe17f427c7e9cc54 Mon Sep 17 00:00:00 2001 From: Romain Neutron Date: Tue, 29 Jan 2013 16:00:49 +0100 Subject: [PATCH] Fix Cs --- lib/Alchemy/Phrasea/Application.php | 14 +++++++------- lib/Alchemy/Phrasea/Controller/Admin/Dashboard.php | 4 ++-- lib/Alchemy/Phrasea/Controller/Admin/Users.php | 2 -- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/lib/Alchemy/Phrasea/Application.php b/lib/Alchemy/Phrasea/Application.php index aad7878792..b644f903d7 100644 --- a/lib/Alchemy/Phrasea/Application.php +++ b/lib/Alchemy/Phrasea/Application.php @@ -110,10 +110,10 @@ use Symfony\Component\HttpFoundation\Response; class Application extends SilexApplication { private static $availableLanguages = array( - 'de_DE' => 'Deutsch' - , 'en_GB' => 'English' - , 'fr_FR' => 'Français' - , 'nl_NL' => 'Dutch' + 'de_DE' => 'Deutsch', + 'en_GB' => 'English', + 'fr_FR' => 'Français', + 'nl_NL' => 'Dutch', ); private $environment; private $sessionCookieEnabled = true; @@ -204,9 +204,9 @@ class Application extends SilexApplication if ($app['phraseanet.registry']->get('GV_smtp')) { $transport = new \Swift_Transport_EsmtpTransport( - $app['swiftmailer.transport.buffer'], - array($app['swiftmailer.transport.authhandler']), - $app['swiftmailer.transport.eventdispatcher'] + $app['swiftmailer.transport.buffer'], + array($app['swiftmailer.transport.authhandler']), + $app['swiftmailer.transport.eventdispatcher'] ); $options = $app['swiftmailer.options'] = array_replace(array( diff --git a/lib/Alchemy/Phrasea/Controller/Admin/Dashboard.php b/lib/Alchemy/Phrasea/Controller/Admin/Dashboard.php index 106461fb01..670ef33415 100644 --- a/lib/Alchemy/Phrasea/Controller/Admin/Dashboard.php +++ b/lib/Alchemy/Phrasea/Controller/Admin/Dashboard.php @@ -32,8 +32,8 @@ class Dashboard implements ControllerProviderInterface $controllers = $app['controllers_factory']; $controllers->before(function(Request $request) use ($app) { - $app['firewall']->requireAdmin(); - }); + $app['firewall']->requireAdmin(); + }); /** * Get admin dashboard diff --git a/lib/Alchemy/Phrasea/Controller/Admin/Users.php b/lib/Alchemy/Phrasea/Controller/Admin/Users.php index d492ac58fa..36488d66e4 100644 --- a/lib/Alchemy/Phrasea/Controller/Admin/Users.php +++ b/lib/Alchemy/Phrasea/Controller/Admin/Users.php @@ -555,7 +555,6 @@ class Users implements ControllerProviderInterface $message .= "\n" . _('login::register:email: Vous avez ete refuse sur les collections suivantes : ') . implode(', ', $deny) . "\n"; } - $receiver = new Receiver(null, $row['usr_mail']); $mail = MailSuccessEmailUpdate::create($this->app, $receiver, null, $message); @@ -784,7 +783,6 @@ class Users implements ControllerProviderInterface return $app->redirect('/admin/users/search/?user-updated=' . $nbCreation); })->bind('users_submit_import'); - $controllers->get('/import/example/csv/', function(Application $app, Request $request) { $file = new \SplFileInfo($app['phraseanet.registry']->get('GV_RootPath') . 'lib/Fixtures/exampleImportUsers.csv');