Skip to content

Commit 4170f61

Browse files
committed
Php Inspections (EA Ultimate): address some of one-time used local variables
1 parent ab3d2bd commit 4170f61

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Translation/TwigExtractor.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ public function __construct(Environment $twig)
5454
*/
5555
public function extract($resource, MessageCatalogue $catalogue)
5656
{
57-
$files = $this->extractFiles($resource);
58-
foreach ($files as $file) {
57+
foreach ($this->extractFiles($resource) as $file) {
5958
try {
6059
$this->extractTemplate(file_get_contents($file->getPathname()), $catalogue);
6160
} catch (Error $e) {

0 commit comments

Comments
 (0)