Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
willdurand committed Dec 5, 2013
1 parent 3b1a00b commit 626531e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DependencyInjection/BazingaFakerExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public function load(array $configs, ContainerBuilder $container)
}

$definition = $container->getDefinition('faker.populator');
switch($config['orm']) {
switch ($config['orm']) {
case 'doctrine':
$definition->addMethodCall('addEntity', array(new Reference('faker.entities.' . $i), $number, $formatters, $customModifiers, $params['generate_id']));
break;
Expand Down
4 changes: 2 additions & 2 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

namespace Bazinga\Bundle\FakerBundle\DependencyInjection;

use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;

Expand All @@ -31,10 +30,11 @@ public function getConfigTreeBuilder()

$rootNode
->beforeNormalization()
->always(function($v) {
->always(function ($v) {
if (isset($v['orm'])) {
$v['orm'] = strtolower($v['orm']);
}

return $v;
})
->end()
Expand Down
4 changes: 2 additions & 2 deletions Factory/FormatterFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ class FormatterFactory
public static function createClosure($generator, $method, array $parameters = array())
{
if (0 === count($parameters)) {
return function() use ($generator, $method) { return $generator->$method(); };
return function () use ($generator, $method) { return $generator->$method(); };
}

return function() use ($generator, $method, $parameters) { return call_user_func_array(array($generator, $method), (array) $parameters); };
return function () use ($generator, $method, $parameters) { return call_user_func_array(array($generator, $method), (array) $parameters); };
}
}

0 comments on commit 626531e

Please # to comment.