Conditions | 6 |
Paths | 6 |
Total Lines | 17 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | public function testAllLangValuesDifferentInFrenchAndEnglish() { |
||
14 | $locales = ['en', 'fr']; |
||
15 | foreach($locales as $locale) { |
||
16 | $langFiles = $this->getLangFilenames($locale); |
||
17 | foreach($langFiles as $langFile) { |
||
18 | $entries = $this->getAllLangEntriesInFile($langFile); //TODO: create this function |
||
|
|||
19 | foreach($entries as $entry) { |
||
20 | $prevValues = []; |
||
21 | foreach($locales as $configLocale) { |
||
22 | App::setLocale($configLocale); |
||
23 | $value = Lang::get($entry); |
||
24 | if (in_array($value, $this->sameTranslations)) { |
||
25 | //TODO: do nothing? |
||
26 | } else { |
||
27 | //Assert $value not in $prevValues; |
||
28 | } |
||
29 | array_push($prevValues, $value); |
||
30 | } |
||
37 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.