small code style improvements, trying to get phpunit with hhvm to work in travis

This commit is contained in:
El RIDO 2016-07-05 17:23:25 +02:00
parent 9267e281f5
commit 8e11f0873c
4 changed files with 8 additions and 7 deletions

View file

@ -328,10 +328,10 @@ $(function() {
{
messageId = args[0];
}
if (messageId.length == 0) return messageId;
if (messageId.length === 0) return messageId;
if (!this.translations.hasOwnProperty(messageId))
{
if (this.language != 'en') console.debug(
if (this.language !== 'en') console.debug(
'Missing translation for: ' + messageId
);
this.translations[messageId] = args[0];
@ -366,10 +366,10 @@ $(function() {
case 'zh':
return (n > 1 ? 1 : 0);
case 'pl':
return (n == 1 ? 0 : n%10 >= 2 && n %10 <=4 && (n%100 < 10 || n%100 >= 20) ? 1 : 2);
return (n === 1 ? 0 : n%10 >= 2 && n %10 <=4 && (n%100 < 10 || n%100 >= 20) ? 1 : 2);
// en, de
default:
return (n != 1 ? 1 : 0);
return (n !== 1 ? 1 : 0);
}
},