diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-05-05 10:03:47 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-05-05 10:03:47 +0200 |
commit | d2754af7c39b2573db455e38e7700a338d979631 (patch) | |
tree | c77e8e6507b9f8622046bd9fd02905458c8415e9 | |
parent | 51d1e6c8b1d9d5a9a50e5d2454b8f73f80f13a8d (diff) | |
parent | 5cfc9d973d13aeec4e5ff1c1643eb758cf3a8064 (diff) | |
download | nextcloud-server-d2754af7c39b2573db455e38e7700a338d979631.tar.gz nextcloud-server-d2754af7c39b2573db455e38e7700a338d979631.zip |
Merge pull request #8442 from owncloud/fix-typo
Fix typo and PHPDoc
-rw-r--r-- | lib/private/l10n.php | 2 | ||||
-rwxr-xr-x | lib/private/util.php | 16 |
2 files changed, 9 insertions, 9 deletions
diff --git a/lib/private/l10n.php b/lib/private/l10n.php index c7e4328161e..d6680d63445 100644 --- a/lib/private/l10n.php +++ b/lib/private/l10n.php @@ -326,7 +326,7 @@ class OC_L10N implements \OCP\IL10N { /** * @brief Localization * @param string $type Type of localization - * @param array $data parameters for this localization + * @param array|int|string $data parameters for this localization * @returns String or false * * Returns the localized data. diff --git a/lib/private/util.php b/lib/private/util.php index e6aa7b061b5..e2005d31c38 100755 --- a/lib/private/util.php +++ b/lib/private/util.php @@ -299,7 +299,7 @@ class OC_Util { } // Assume that if checkServer() succeeded before in this session, then all is fine. - if(\OC::$session->exists('checkServer_suceeded') && \OC::$session->get('checkServer_suceeded')) { + if(\OC::$session->exists('checkServer_succeeded') && \OC::$session->get('checkServer_succeeded')) { return $errors; } @@ -491,7 +491,7 @@ class OC_Util { $errors = array_merge($errors, self::checkDatabaseVersion()); // Cache the result of this function - \OC::$session->set('checkServer_suceeded', count($errors) == 0); + \OC::$session->set('checkServer_succeeded', count($errors) == 0); return $errors; } @@ -748,7 +748,7 @@ class OC_Util { /** * @brief Register an get/post call. Important to prevent CSRF attacks. * @todo Write howto: CSRF protection guide - * @return $token Generated token. + * @return string Generated token. * @description * Creates a 'request token' (random) and stores it inside the session. * Ever subsequent (ajax) request must use such a valid token to succeed, @@ -781,7 +781,7 @@ class OC_Util { } /** - * @brief Check an ajax get/post call if the request token is valid. exit if not. + * @brief Check an ajax get/post call if the request token is valid. Exit if not. * @todo Write howto * @return void */ @@ -1100,7 +1100,7 @@ class OC_Util { curl_setopt($curl, CURLOPT_FOLLOWLOCATION, false); $mr = $max_redirects; if ($mr > 0) { - $newurl = curl_getinfo($curl, CURLINFO_EFFECTIVE_URL); + $newURL = curl_getinfo($curl, CURLINFO_EFFECTIVE_URL); $rcurl = curl_copy_handle($curl); curl_setopt($rcurl, CURLOPT_HEADER, true); @@ -1108,7 +1108,7 @@ class OC_Util { curl_setopt($rcurl, CURLOPT_FORBID_REUSE, false); curl_setopt($rcurl, CURLOPT_RETURNTRANSFER, true); do { - curl_setopt($rcurl, CURLOPT_URL, $newurl); + curl_setopt($rcurl, CURLOPT_URL, $newURL); $header = curl_exec($rcurl); if (curl_errno($rcurl)) { $code = 0; @@ -1116,7 +1116,7 @@ class OC_Util { $code = curl_getinfo($rcurl, CURLINFO_HTTP_CODE); if ($code == 301 || $code == 302) { preg_match('/Location:(.*?)\n/', $header, $matches); - $newurl = trim(array_pop($matches)); + $newURL = trim(array_pop($matches)); } else { $code = 0; } @@ -1124,7 +1124,7 @@ class OC_Util { } while ($code && --$mr); curl_close($rcurl); if ($mr > 0) { - curl_setopt($curl, CURLOPT_URL, $newurl); + curl_setopt($curl, CURLOPT_URL, $newURL); } } |