diff options
Diffstat (limited to 'lib')
29 files changed, 36 insertions, 36 deletions
diff --git a/lib/base.php b/lib/base.php index a76edb1192a..610ee325550 100644 --- a/lib/base.php +++ b/lib/base.php @@ -417,7 +417,7 @@ class OC { $session = $cryptoWrapper->wrapSession($session); self::$server->setSession($session); - // if session cant be started break with http 500 error + // if session can't be started break with http 500 error } catch (Exception $e) { \OCP\Util::logException('base', $e); //show the user a detailed error page @@ -788,7 +788,7 @@ class OC { protected static function registerAutoloaderCache() { // The class loader takes an optional low-latency cache, which MUST be // namespaced. The instanceid is used for namespacing, but might be - // unavailable at this point. Futhermore, it might not be possible to + // unavailable at this point. Furthermore, it might not be possible to // generate an instanceid via \OC_Util::getInstanceId() because the // config file may not be writable. As such, we only register a class // loader cache if instanceid is available without trying to create one. diff --git a/lib/private/app/dependencyanalyzer.php b/lib/private/app/dependencyanalyzer.php index 0cf4bc72161..6519e15bd8b 100644 --- a/lib/private/app/dependencyanalyzer.php +++ b/lib/private/app/dependencyanalyzer.php @@ -97,7 +97,7 @@ class DependencyAnalyzer { * @return bool result similar to version_compare */ private function compare($first, $second, $operator) { - // we cant normalize versions if one of the given parameters is not a + // we can't normalize versions if one of the given parameters is not a // version string but null. In case one parameter is null normalization // will therefore be skipped if ($first !== null && $second !== null) { diff --git a/lib/private/appframework/http/output.php b/lib/private/appframework/http/output.php index dfb03e6a516..469c809c21c 100644 --- a/lib/private/appframework/http/output.php +++ b/lib/private/appframework/http/output.php @@ -48,7 +48,7 @@ class Output implements IOutput { /** * @param string $path * - * @return bool false if an error occured + * @return bool false if an error occurred */ public function setReadfile($path) { return @readfile($path); diff --git a/lib/private/appframework/middleware/middlewaredispatcher.php b/lib/private/appframework/middleware/middlewaredispatcher.php index e2b2eff42ab..4bd25f79bba 100644 --- a/lib/private/appframework/middleware/middlewaredispatcher.php +++ b/lib/private/appframework/middleware/middlewaredispatcher.php @@ -107,7 +107,7 @@ class MiddlewareDispatcher { * @param \Exception $exception the thrown exception * @return Response a Response object if the middleware can handle the * exception - * @throws \Exception the passed in exception if it cant handle it + * @throws \Exception the passed in exception if it can't handle it */ public function afterException(Controller $controller, $methodName, \Exception $exception){ for($i=$this->middlewareCounter-1; $i>=0; $i--){ diff --git a/lib/private/appframework/middleware/security/corsmiddleware.php b/lib/private/appframework/middleware/security/corsmiddleware.php index e42513b44a2..258119b326a 100644 --- a/lib/private/appframework/middleware/security/corsmiddleware.php +++ b/lib/private/appframework/middleware/security/corsmiddleware.php @@ -36,7 +36,7 @@ use OCP\AppFramework\Middleware; /** * This middleware sets the correct CORS headers on a response if the * controller has the @CORS annotation. This is needed for webapps that want - * to access an API and dont run on the same domain, see + * to access an API and don't run on the same domain, see * https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS */ class CORSMiddleware extends Middleware { @@ -135,7 +135,7 @@ class CORSMiddleware extends Middleware { * @param string $methodName the name of the method that will be called on * the controller * @param \Exception $exception the thrown exception - * @throws \Exception the passed in exception if it cant handle it + * @throws \Exception the passed in exception if it can't handle it * @return Response a Response object or null in case that the exception could not be handled */ public function afterException($controller, $methodName, \Exception $exception){ diff --git a/lib/private/appframework/middleware/security/securitymiddleware.php b/lib/private/appframework/middleware/security/securitymiddleware.php index f3bc06217cd..75bcc29a926 100644 --- a/lib/private/appframework/middleware/security/securitymiddleware.php +++ b/lib/private/appframework/middleware/security/securitymiddleware.php @@ -179,7 +179,7 @@ class SecurityMiddleware extends Middleware { * @param string $methodName the name of the method that will be called on * the controller * @param \Exception $exception the thrown exception - * @throws \Exception the passed in exception if it cant handle it + * @throws \Exception the passed in exception if it can't handle it * @return Response a Response object or null in case that the exception could not be handled */ public function afterException($controller, $methodName, \Exception $exception) { diff --git a/lib/private/archive/zip.php b/lib/private/archive/zip.php index 8962a8e446e..0d8d3b7ce76 100644 --- a/lib/private/archive/zip.php +++ b/lib/private/archive/zip.php @@ -185,7 +185,7 @@ class OC_Archive_ZIP extends OC_Archive{ if($mode=='r' or $mode=='rb') { return $this->zip->getStream($path); } else { - //since we cant directly get a writable stream, + //since we can't directly get a writable stream, //make a temp copy of the file and put it back //in the archive when the stream is closed if(strrpos($path, '.')!==false) { diff --git a/lib/private/files/cache/wrapper/cachewrapper.php b/lib/private/files/cache/wrapper/cachewrapper.php index 883f4709358..8c77e3c340e 100644 --- a/lib/private/files/cache/wrapper/cachewrapper.php +++ b/lib/private/files/cache/wrapper/cachewrapper.php @@ -72,7 +72,7 @@ class CacheWrapper extends Cache { * @return ICacheEntry[] */ public function getFolderContents($folder) { - // cant do a simple $this->cache->.... call here since getFolderContentsById needs to be called on this + // can't do a simple $this->cache->.... call here since getFolderContentsById needs to be called on this // and not the wrapped cache $fileId = $this->getId($folder); return $this->getFolderContentsById($fileId); diff --git a/lib/private/files/node/root.php b/lib/private/files/node/root.php index 69c98368dfd..04866e60b87 100644 --- a/lib/private/files/node/root.php +++ b/lib/private/files/node/root.php @@ -187,7 +187,7 @@ class Root extends Folder implements IRootFolder { } } - //most operations cant be done on the root + //most operations can't be done on the root /** * @param string $targetPath diff --git a/lib/private/files/storage/common.php b/lib/private/files/storage/common.php index 1d4801e5b97..df0d9695449 100644 --- a/lib/private/files/storage/common.php +++ b/lib/private/files/storage/common.php @@ -634,7 +634,7 @@ abstract class Common implements Storage, ILockingStorage { public function getMetaData($path) { $permissions = $this->getPermissions($path); if (!$permissions & \OCP\Constants::PERMISSION_READ) { - //cant read, nothing we can do + //can't read, nothing we can do return null; } diff --git a/lib/private/files/storage/local.php b/lib/private/files/storage/local.php index b6d0ec3fb34..9f093ce048a 100644 --- a/lib/private/files/storage/local.php +++ b/lib/private/files/storage/local.php @@ -225,7 +225,7 @@ class Local extends \OC\Files\Storage\Common { } if ($this->is_dir($path1)) { - // we cant move folders across devices, use copy instead + // we can't move folders across devices, use copy instead $stat1 = stat(dirname($this->getSourcePath($path1))); $stat2 = stat(dirname($this->getSourcePath($path2))); if ($stat1['dev'] !== $stat2['dev']) { diff --git a/lib/private/files/storage/polyfill/copydirectory.php b/lib/private/files/storage/polyfill/copydirectory.php index 22bfe369738..d4cac117ade 100644 --- a/lib/private/files/storage/polyfill/copydirectory.php +++ b/lib/private/files/storage/polyfill/copydirectory.php @@ -76,7 +76,7 @@ trait CopyDirectory { } /** - * For adapters that dont support copying folders natively + * For adapters that don't support copying folders natively * * @param $source * @param $target diff --git a/lib/private/files/storage/wrapper/permissionsmask.php b/lib/private/files/storage/wrapper/permissionsmask.php index 7fa64f82ba6..01dd78d418c 100644 --- a/lib/private/files/storage/wrapper/permissionsmask.php +++ b/lib/private/files/storage/wrapper/permissionsmask.php @@ -32,7 +32,7 @@ use OCP\Constants; * * This can be used to restrict update, create, delete and/or share permissions of a storage * - * Note that the read permissions cant be masked + * Note that the read permissions can't be masked */ class PermissionsMask extends Wrapper { /** diff --git a/lib/private/files/view.php b/lib/private/files/view.php index 4421a016356..aac33a4598c 100644 --- a/lib/private/files/view.php +++ b/lib/private/files/view.php @@ -742,7 +742,7 @@ class View { $this->writeUpdate($storage2, $internalPath2); } else if ($result) { - if ($internalPath1 !== '') { // dont do a cache update for moved mounts + if ($internalPath1 !== '') { // don't do a cache update for moved mounts $this->renameUpdate($storage1, $storage2, $internalPath1, $internalPath2); } } diff --git a/lib/private/group.php b/lib/private/group.php index c37b4f63575..f1b84069a38 100644 --- a/lib/private/group.php +++ b/lib/private/group.php @@ -66,7 +66,7 @@ class OC_Group { /** * set the group backend - * @param \OC_Group_Backend $backend The backend to use for user managment + * @param \OC_Group_Backend $backend The backend to use for user management * @return bool */ public static function useBackend($backend) { diff --git a/lib/private/memcache/factory.php b/lib/private/memcache/factory.php index 204ded7d5ab..a005f319b3e 100644 --- a/lib/private/memcache/factory.php +++ b/lib/private/memcache/factory.php @@ -112,7 +112,7 @@ class Factory implements ICacheFactory { } } if (!($lockingCacheClass && $lockingCacheClass::isAvailable())) { - // dont fallback since the fallback might not be suitable for storing lock + // don't fallback since the fallback might not be suitable for storing lock $lockingCacheClass = self::NULL_CACHE; } diff --git a/lib/private/memcache/redis.php b/lib/private/memcache/redis.php index db5461db669..b3444a2b4e9 100644 --- a/lib/private/memcache/redis.php +++ b/lib/private/memcache/redis.php @@ -122,7 +122,7 @@ class Redis extends Cache implements IMemcacheTTL { * @return bool */ public function add($key, $value, $ttl = 0) { - // dont encode ints for inc/dec + // don't encode ints for inc/dec if (!is_int($value)) { $value = json_encode($value); } diff --git a/lib/private/response.php b/lib/private/response.php index 5c7eb9b52d5..51e0ff75e6a 100644 --- a/lib/private/response.php +++ b/lib/private/response.php @@ -40,7 +40,7 @@ class OC_Response { * @param integer $cache_time time to cache the response * >0 cache time in seconds * 0 and <0 enable default browser caching - * null cache indefinitly + * null cache indefinitely */ static public function enableCaching($cache_time = null) { if (is_numeric($cache_time)) { @@ -113,7 +113,7 @@ class OC_Response { } /** - * Set reponse expire time + * Set response expire time * @param string|DateTime $expires date-time when the response expires * string for DateInterval from now * DateTime object when to expire response @@ -152,7 +152,7 @@ class OC_Response { /** * Checks and set Last-Modified header, when the request matches sends a * 'not modified' response - * @param int|DateTime|string $lastModified time when the reponse was last modified + * @param int|DateTime|string $lastModified time when the response was last modified */ static public function setLastModifiedHeader($lastModified) { if (empty($lastModified)) { diff --git a/lib/private/setup/mysql.php b/lib/private/setup/mysql.php index de2466676c1..ba1b2ca854c 100644 --- a/lib/private/setup/mysql.php +++ b/lib/private/setup/mysql.php @@ -55,7 +55,7 @@ class MySQL extends AbstractDatabase { try{ $name = $this->dbName; $user = $this->dbUser; - //we cant use OC_BD functions here because we need to connect as the administrative user. + //we can't use OC_BD functions here because we need to connect as the administrative user. $query = "CREATE DATABASE IF NOT EXISTS `$name` CHARACTER SET utf8 COLLATE utf8_bin;"; $connection->executeUpdate($query); diff --git a/lib/private/setup/postgresql.php b/lib/private/setup/postgresql.php index 4c17de4b84d..893999bb0b9 100644 --- a/lib/private/setup/postgresql.php +++ b/lib/private/setup/postgresql.php @@ -113,7 +113,7 @@ class PostgreSQL extends AbstractDatabase { } private function createDatabase($connection) { - //we cant use OC_BD functions here because we need to connect as the administrative user. + //we can't use OC_BD functions here because we need to connect as the administrative user. $e_name = pg_escape_string($this->dbName); $e_user = pg_escape_string($this->dbUser); $query = "select datname from pg_database where datname = '$e_name'"; diff --git a/lib/private/tempmanager.php b/lib/private/tempmanager.php index b233edd8b35..dd97a36cd7f 100644 --- a/lib/private/tempmanager.php +++ b/lib/private/tempmanager.php @@ -251,8 +251,8 @@ class TempManager implements ITempManager { * @return bool */ private function checkTemporaryDirectory($directory) { - // surpress any possible errors caused by is_writable - // checks missing or invalid path or characters, wrong permissions ect + // suppress any possible errors caused by is_writable + // checks missing or invalid path or characters, wrong permissions etc try { if (is_writeable($directory)) { return true; diff --git a/lib/private/util.php b/lib/private/util.php index b320394f26d..039bc7e9156 100644 --- a/lib/private/util.php +++ b/lib/private/util.php @@ -440,7 +440,7 @@ class OC_Util { * generates a path for JS/CSS files. If no application is provided it will create the path for core. * * @param string $application application to get the files from - * @param string $directory directory withing this application (css, js, vendor, etc) + * @param string $directory directory within this application (css, js, vendor, etc) * @param string $file the file inside of the above folder * @return string the path */ diff --git a/lib/public/appframework/apicontroller.php b/lib/public/appframework/apicontroller.php index 64e07539de4..07b72d9a46c 100644 --- a/lib/public/appframework/apicontroller.php +++ b/lib/public/appframework/apicontroller.php @@ -45,10 +45,10 @@ abstract class ApiController extends Controller { * constructor of the controller * @param string $appName the name of the app * @param IRequest $request an instance of the request - * @param string $corsMethods comma seperated string of HTTP verbs which + * @param string $corsMethods comma separated string of HTTP verbs which * should be allowed for websites or webapps when calling your API, defaults to * 'PUT, POST, GET, DELETE, PATCH' - * @param string $corsAllowedHeaders comma seperated string of HTTP headers + * @param string $corsAllowedHeaders comma separated string of HTTP headers * which should be allowed for websites or webapps when calling your API, * defaults to 'Authorization, Content-Type, Accept' * @param int $corsMaxAge number in seconds how long a preflighted OPTIONS diff --git a/lib/public/appframework/http/ioutput.php b/lib/public/appframework/http/ioutput.php index f4ebc304bde..6c404c0b026 100644 --- a/lib/public/appframework/http/ioutput.php +++ b/lib/public/appframework/http/ioutput.php @@ -39,7 +39,7 @@ interface IOutput { /** * @param string $path * - * @return bool false if an error occured + * @return bool false if an error occurred * @since 8.1.0 */ public function setReadfile($path); diff --git a/lib/public/appframework/middleware.php b/lib/public/appframework/middleware.php index a39e26a2aa0..12ec5f7d573 100644 --- a/lib/public/appframework/middleware.php +++ b/lib/public/appframework/middleware.php @@ -67,7 +67,7 @@ abstract class Middleware { * @param string $methodName the name of the method that will be called on * the controller * @param \Exception $exception the thrown exception - * @throws \Exception the passed in exception if it cant handle it + * @throws \Exception the passed in exception if it can't handle it * @return Response a Response object in case that the exception was handled * @since 6.0.0 */ diff --git a/lib/public/appframework/ocscontroller.php b/lib/public/appframework/ocscontroller.php index b0e77c5d1ec..4736e94326e 100644 --- a/lib/public/appframework/ocscontroller.php +++ b/lib/public/appframework/ocscontroller.php @@ -46,7 +46,7 @@ abstract class OCSController extends ApiController { * @param string $corsMethods comma separated string of HTTP verbs which * should be allowed for websites or webapps when calling your API, defaults to * 'PUT, POST, GET, DELETE, PATCH' - * @param string $corsAllowedHeaders comma seperated string of HTTP headers + * @param string $corsAllowedHeaders comma separated string of HTTP headers * which should be allowed for websites or webapps when calling your API, * defaults to 'Authorization, Content-Type, Accept' * @param int $corsMaxAge number in seconds how long a preflighted OPTIONS diff --git a/lib/public/files.php b/lib/public/files.php index f1b8a855194..f7f0b30bf86 100644 --- a/lib/public/files.php +++ b/lib/public/files.php @@ -123,7 +123,7 @@ class Files { /** * Gets the Storage for an app - creates the needed folder if they are not - * existant + * existent * @param string $app * @return \OC\Files\View * @since 5.0.0 diff --git a/lib/public/response.php b/lib/public/response.php index ff0b4d8463a..a2a7667684a 100644 --- a/lib/public/response.php +++ b/lib/public/response.php @@ -47,7 +47,7 @@ class Response { * @param int $cache_time time to cache the response * >0 cache time in seconds * 0 and <0 enable default browser caching - * null cache indefinitly + * null cache indefinitely * @since 4.0.0 */ static public function enableCaching( $cache_time = null ) { @@ -57,7 +57,7 @@ class Response { /** * Checks and set Last-Modified header, when the request matches sends a * 'not modified' response - * @param string $lastModified time when the reponse was last modified + * @param string $lastModified time when the response was last modified * @since 4.0.0 */ static public function setLastModifiedHeader( $lastModified ) { diff --git a/lib/public/share.php b/lib/public/share.php index e21d82bf62c..9c62ec703e4 100644 --- a/lib/public/share.php +++ b/lib/public/share.php @@ -260,7 +260,7 @@ class Share extends \OC\Share\Constants { * @return bool|string Returns true on success or false on failure, Returns token on success for links * @throws \OC\HintException when the share type is remote and the shareWith is invalid * @throws \Exception - * @since 5.0.0 - parameter $itemSourceName was added in 6.0.0, parameter $expirationDate was added in 7.0.0, paramter $passwordChanged added in 9.0.0 + * @since 5.0.0 - parameter $itemSourceName was added in 6.0.0, parameter $expirationDate was added in 7.0.0, parameter $passwordChanged added in 9.0.0 */ public static function shareItem($itemType, $itemSource, $shareType, $shareWith, $permissions, $itemSourceName = null, \DateTime $expirationDate = null, $passwordChanged = null) { return \OC\Share\Share::shareItem($itemType, $itemSource, $shareType, $shareWith, $permissions, $itemSourceName, $expirationDate, $passwordChanged); |