summaryrefslogtreecommitdiffstats
path: root/lib/private/appframework
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2016-04-07 19:51:27 +0200
committerStefan Weil <sw@weilnetz.de>2016-04-07 19:51:27 +0200
commitb1a856d7b7e184241fcd862842d4aecddd9a00ec (patch)
treedad8a4f1c34e1c97ead9cd50a7c2f44469cb536e /lib/private/appframework
parent6eefea1bb65897b0a1cf8668b15998a12ae197b9 (diff)
downloadnextcloud-server-b1a856d7b7e184241fcd862842d4aecddd9a00ec.tar.gz
nextcloud-server-b1a856d7b7e184241fcd862842d4aecddd9a00ec.zip
lib: Fix typos (found by codespell)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Diffstat (limited to 'lib/private/appframework')
-rw-r--r--lib/private/appframework/http/output.php2
-rw-r--r--lib/private/appframework/middleware/middlewaredispatcher.php2
-rw-r--r--lib/private/appframework/middleware/security/corsmiddleware.php4
-rw-r--r--lib/private/appframework/middleware/security/securitymiddleware.php2
4 files changed, 5 insertions, 5 deletions
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) {