Skip to content

Commit

Permalink
Applied fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
alexislefebvre authored and StyleCIBot committed Jun 3, 2016
1 parent d5a476c commit 0d1b2ba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 7 additions & 5 deletions DependencyInjection/Configuration.php
Expand Up @@ -28,15 +28,17 @@ public function getConfigTreeBuilder()
$rootNode = $treeBuilder->root('liip_functional_test', 'array');
$rootNode
->beforeNormalization()
->ifArray()->then(function ($v) { if (!empty($v['query_count.max_query_count'])) {
// Normalization is for BC.
->ifArray()->then(function ($v) {
if (!empty($v['query_count.max_query_count'])) {
// Normalization is for BC.
// @codeCoverageIgnoreStart
$v['query']['max_query_count'] = $v['query_count.max_query_count'];
unset($v['query_count.max_query_count']);
}
unset($v['query_count.max_query_count']);
}
// @codeCoverageIgnoreEnd

return $v; })
return $v;
})
->end()
->children()
->booleanNode('cache_sqlite_db')->defaultFalse()->end()
Expand Down
4 changes: 3 additions & 1 deletion Test/WebTestCase.php
Expand Up @@ -390,7 +390,9 @@ protected function loadFixtures(array $classNames, $omName = null, $registryName

if (!isset(self::$cachedMetadatas[$omName])) {
self::$cachedMetadatas[$omName] = $om->getMetadataFactory()->getAllMetadata();
usort(self::$cachedMetadatas[$omName], function ($a, $b) { return strcmp($a->name, $b->name); });
usort(self::$cachedMetadatas[$omName], function ($a, $b) {
return strcmp($a->name, $b->name);
});
}
$metadatas = self::$cachedMetadatas[$omName];

Expand Down

0 comments on commit 0d1b2ba

Please sign in to comment.