Skip to content

Commit 6efb19d

Browse files
committed
minor #21537 Static code analysis with Php Inspections (EA Extended) (kalessil)
This PR was squashed before being merged into the 2.7 branch (closes #21537). Discussion ---------- Static code analysis with Php Inspections (EA Extended) | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | -- | License | MIT | Doc PR | -- - Unnecessary proxy methods and methods duplicating parents ones removed; - Type casings instead of PHP4 functions; - Usage of copy instead of file combining file get/put contents; - One time use variables cleaned up; - Superfluous functions calls in loop termination conditions fixed; Commits ------- 3feeca74d0 Static code analysis with Php Inspections (EA Extended)
2 parents c114c6f + 9e4fa49 commit 6efb19d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Tests/DataCollectorTranslatorTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ private function createCollector()
6868
$translator->addResource('array', array('bar' => 'bar (fr)'), 'fr');
6969
$translator->addResource('array', array('bar_ru' => 'bar (ru)'), 'ru');
7070

71-
$collector = new DataCollectorTranslator($translator);
72-
73-
return $collector;
71+
return new DataCollectorTranslator($translator);
7472
}
7573
}

0 commit comments

Comments
 (0)