Skip to content

Commit

Permalink
fixed CS
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Oct 12, 2013
1 parent a508fde commit d1fcf09
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/Silex/Provider/RememberMeServiceProvider.php
Expand Up @@ -28,11 +28,11 @@ class RememberMeServiceProvider implements ServiceProviderInterface
{
public function register(Application $app)
{
$app['security.remember_me.response_listener'] = $app->share(function() {
$app['security.remember_me.response_listener'] = $app->share(function () {
return new ResponseListener();
});

$app['security.authentication_listener.factory.remember_me'] = $app->protect(function($name, $options) use ($app) {
$app['security.authentication_listener.factory.remember_me'] = $app->protect(function ($name, $options) use ($app) {
if (empty($options['key'])) {
$options['key'] = $name;
}
Expand All @@ -57,7 +57,7 @@ public function register(Application $app)
);
});

$app['security.remember_me.service._proto'] = $app->protect(function($providerKey, $options) use ($app) {
$app['security.remember_me.service._proto'] = $app->protect(function ($providerKey, $options) use ($app) {
return $app->share(function () use ($providerKey, $options, $app) {
$options = array_replace(array(
'name' => 'REMEMBERME',
Expand Down
2 changes: 1 addition & 1 deletion src/Silex/Provider/SecurityServiceProvider.php
Expand Up @@ -131,7 +131,7 @@ public function register(Application $app)
$entryPoint = 'form';
}

$app['security.authentication_listener.factory.'.$type] = $app->protect(function($name, $options) use ($type, $app, $entryPoint) {
$app['security.authentication_listener.factory.'.$type] = $app->protect(function ($name, $options) use ($type, $app, $entryPoint) {
if ($entryPoint && !isset($app['security.entry_point.'.$name.'.'.$entryPoint])) {
$app['security.entry_point.'.$name.'.'.$entryPoint] = $app['security.entry_point.'.$entryPoint.'._proto']($name, $options);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Silex/Provider/SessionServiceProvider.php
Expand Up @@ -62,7 +62,7 @@ public function register(Application $app)
);
});

$app['session.storage.test'] = $app->share(function() {
$app['session.storage.test'] = $app->share(function () {
return new MockFileSessionStorage();
});

Expand Down
2 changes: 1 addition & 1 deletion src/Silex/Provider/ValidatorServiceProvider.php
Expand Up @@ -47,7 +47,7 @@ public function register(Application $app)
return new ClassMetadataFactory(new StaticMethodLoader());
});

$app['validator.validator_factory'] = $app->share(function() use ($app) {
$app['validator.validator_factory'] = $app->share(function () use ($app) {
$validators = isset($app['validator.validator_service_ids']) ? $app['validator.validator_service_ids'] : array();

return new ConstraintValidatorFactory($app, $validators);
Expand Down

0 comments on commit d1fcf09

Please sign in to comment.