Skip to content

Commit

Permalink
performance optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
everzet committed Apr 1, 2011
1 parent 740cba9 commit d1224da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Behat/Behat/Definition/DefinitionDispatcher.php
Expand Up @@ -187,8 +187,8 @@ public function findDefinition(StepNode $step)
$arguments = array_merge(array_slice($arguments, 1), $args);

// transform arguments
foreach ($this->transformations as $transformation) {
foreach ($arguments as $num => $argument) {
foreach ($arguments as $num => $argument) {
foreach ($this->transformations as $transformation) {
if ($newArgument = $transformation->transform($argument)) {
$arguments[$num] = $newArgument;
}
Expand Down

0 comments on commit d1224da

Please sign in to comment.