Skip to content

Commit

Permalink
update coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
robocoder committed Jul 14, 2014
1 parent c110736 commit 275be96
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions src/VIPSoft/DoctrineDataFixturesExtension/Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,31 +24,31 @@ class Extension implements ExtensionInterface
*/
public function getConfig(ArrayNodeDefinition $builder)
{
$builder->
children()->
scalarNode('autoload')->
defaultValue(true)->
end()->
variableNode('migrations')->
defaultNull()->
end()->
arrayNode('directories')->
prototype('scalar')->end()->
end()->
arrayNode('fixtures')->
prototype('scalar')->end()->
end()->
scalarNode('lifetime')->
defaultValue('feature')->
validate()->
ifNotInArray(array('feature', 'scenario'))->
thenInvalid('Invalid fixtures lifetime "%s"')->
end()->
end()->
booleanNode('use_backup')->
defaultValue(true)->
end()->
end();
$builder
->children()
->scalarNode('autoload')
->defaultValue(true)
->end()
->variableNode('migrations')
->defaultNull()
->end()
->arrayNode('directories')
->prototype('scalar')->end()
->end()
->arrayNode('fixtures')
->prototype('scalar')->end()
->end()
->scalarNode('lifetime')
->defaultValue('feature')
->validate()
->ifNotInArray(array('feature', 'scenario'))
->thenInvalid('Invalid fixtures lifetime "%s"')
->end()
->end()
->booleanNode('use_backup')
->defaultValue(true)
->end()
->end();
}

/**
Expand Down

0 comments on commit 275be96

Please sign in to comment.