diff --git a/lib/I18n.php b/lib/I18n.php index e99946f6..1bf20a2f 100644 --- a/lib/I18n.php +++ b/lib/I18n.php @@ -186,7 +186,7 @@ class I18n if ($match == 'en') { self::$_translations = array(); } else { - $data = file_get_contents(self::_getPath($match . '.json')); + $data = file_get_contents(self::_getPath($match . '.json')); self::$_translations = Json::decode($data); } } @@ -276,7 +276,7 @@ class I18n { $file = self::_getPath('languages.json'); if (count(self::$_languageLabels) == 0 && is_readable($file)) { - $data = file_get_contents($file); + $data = file_get_contents($file); self::$_languageLabels = Json::decode($data); } if (count($languages) == 0) { diff --git a/lib/Request.php b/lib/Request.php index c72a59fe..67e1b395 100644 --- a/lib/Request.php +++ b/lib/Request.php @@ -111,7 +111,7 @@ class Request // it might be a creation or a deletion, the latter is detected below $this->_operation = 'create'; try { - $data = file_get_contents(self::$_inputStream); + $data = file_get_contents(self::$_inputStream); $this->_params = Json::decode($data); } catch (Exception $e) { // ignore error, $this->_params will remain empty diff --git a/tst/ControllerTest.php b/tst/ControllerTest.php index 89caa03e..4ffdb07f 100644 --- a/tst/ControllerTest.php +++ b/tst/ControllerTest.php @@ -524,7 +524,7 @@ class ControllerTest extends TestCase $_SERVER['HTTP_X_REQUESTED_WITH'] = 'JSONHttpRequest'; $_SERVER['REQUEST_METHOD'] = 'POST'; $_SERVER['REMOTE_ADDR'] = '::1'; - $paste = Helper::getPaste(); + $paste = Helper::getPaste(); $this->_data->create(Helper::getPasteId(), $paste); ob_start(); new Controller; @@ -551,7 +551,7 @@ class ControllerTest extends TestCase $_SERVER['HTTP_X_REQUESTED_WITH'] = 'JSONHttpRequest'; $_SERVER['REQUEST_METHOD'] = 'POST'; $_SERVER['REMOTE_ADDR'] = '::1'; - $paste = Helper::getPaste(); + $paste = Helper::getPaste(); $this->_data->create(Helper::getPasteId(), $paste); ob_start(); new Controller;