Skip to content

Commit

Permalink
Change PHP keywords to comply with PSR2 (#21)
Browse files Browse the repository at this point in the history
Signed-off-by: CodeLingoBot <bot@codelingo.io>
  • Loading branch information
CodeLingoTeam authored and andygi committed Jun 6, 2019
1 parent 847ebec commit 63b95c9
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions lib/gettext.php
Expand Up @@ -39,16 +39,16 @@ class gettext_reader {

//private:
var $BYTEORDER = 0; // 0: low endian, 1: big endian
var $STREAM = NULL;
var $STREAM = null;
var $short_circuit = false;
var $enable_cache = false;
var $originals = NULL; // offset of original table
var $translations = NULL; // offset of translation table
var $pluralheader = NULL; // cache header field for plural forms
var $originals = null; // offset of original table
var $translations = null; // offset of translation table
var $pluralheader = null; // cache header field for plural forms
var $total = 0; // total string count
var $table_originals = NULL; // table for original strings (offsets)
var $table_translations = NULL; // table for translated strings (offsets)
var $cache_translations = NULL; // original -> translation mapping
var $table_originals = null; // table for original strings (offsets)
var $table_translations = null; // table for translated strings (offsets)
var $cache_translations = null; // original -> translation mapping


/* Methods */
Expand Down Expand Up @@ -410,7 +410,7 @@ function ngettext($single, $plural, $number) {
function pgettext($context, $msgid) {
$key = $context . chr(4) . $msgid;
$ret = $this->translate($key);
if (strpos($ret, "\004") !== FALSE) {
if (strpos($ret, "\004") !== false) {
return $msgid;
} else {
return $ret;
Expand All @@ -420,7 +420,7 @@ function pgettext($context, $msgid) {
function npgettext($context, $singular, $plural, $number) {
$key = $context . chr(4) . $singular;
$ret = $this->ngettext($key, $plural, $number);
if (strpos($ret, "\004") !== FALSE) {
if (strpos($ret, "\004") !== false) {
return $singular;
} else {
return $ret;
Expand Down

0 comments on commit 63b95c9

Please sign in to comment.