Skip to content

Commit d249500

Browse files
committed
CS
1 parent 63f6f4d commit d249500

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/Symfony/Bundle/FrameworkBundle/CacheWarmer/AnnotationsCacheWarmer.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,9 @@ protected function doWarmUp($cacheDir, ArrayAdapter $arrayAdapter)
7979

8080
protected function warmUpPhpArrayAdapter(PhpArrayAdapter $phpArrayAdapter, array $values)
8181
{
82-
$values = array_filter($values, function ($val) {
83-
return null !== $val;
84-
});
85-
8682
// make sure we don't cache null values
83+
$values = array_filter($values, function ($val) { return null !== $val; });
84+
8785
parent::warmUpPhpArrayAdapter($phpArrayAdapter, $values);
8886
}
8987

src/Symfony/Bundle/FrameworkBundle/CacheWarmer/ValidatorCacheWarmer.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,9 @@ protected function doWarmUp($cacheDir, ArrayAdapter $arrayAdapter)
7979

8080
protected function warmUpPhpArrayAdapter(PhpArrayAdapter $phpArrayAdapter, array $values)
8181
{
82-
$values = array_filter($values, function ($val) {
83-
return null !== $val;
84-
});
85-
8682
// make sure we don't cache null values
83+
$values = array_filter($values, function ($val) { return null !== $val; });
84+
8785
parent::warmUpPhpArrayAdapter($phpArrayAdapter, $values);
8886
}
8987

0 commit comments

Comments
 (0)