Skip to content

Commit d842912

Browse files
kalessilfabpot
authored andcommitted
[2.6] Static Code Analysis for Components and Bundles
1 parent c68b535 commit d842912

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Loader/JsonFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*
2121
* @author singles
2222
*/
23-
class JsonFileLoader extends ArrayLoader implements LoaderInterface
23+
class JsonFileLoader extends ArrayLoader
2424
{
2525
/**
2626
* {@inheritdoc}

Tests/TranslatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ public function testTransChoiceFallbackWithNoTranslation()
502502
public function testGetMessages($resources, $locale, $expected)
503503
{
504504
$locales = array_keys($resources);
505-
$_locale = !is_null($locale) ? $locale : reset($locales);
505+
$_locale = null !== $locale ? $locale : reset($locales);
506506
$locales = array_slice($locales, 0, array_search($_locale, $locales));
507507

508508
$translator = new Translator($_locale, new MessageSelector());

0 commit comments

Comments
 (0)