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

Lines changed: 2 additions & 4 deletions
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

Lines changed: 2 additions & 4 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy