summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/appframework/http/dispatcher.php11
-rw-r--r--lib/appframework/http/downloadresponse.php1
2 files changed, 5 insertions, 7 deletions
diff --git a/lib/appframework/http/dispatcher.php b/lib/appframework/http/dispatcher.php
index ab5644274fa..183854650fb 100644
--- a/lib/appframework/http/dispatcher.php
+++ b/lib/appframework/http/dispatcher.php
@@ -29,7 +29,7 @@ use \OC\AppFramework\Middleware\MiddlewareDispatcher;
/**
- * Class to dispatch the request to the middleware disptacher
+ * Class to dispatch the request to the middleware dispatcher
*/
class Dispatcher {
@@ -67,11 +67,10 @@ class Dispatcher {
$methodName);
$response = $controller->$methodName();
-
- // if an exception appears, the middleware checks if it can handle the
- // exception and creates a response. If no response is created, it is
- // assumed that theres no middleware who can handle it and the error is
- // thrown again
+ // if an exception appears, the middleware checks if it can handle the
+ // exception and creates a response. If no response is created, it is
+ // assumed that theres no middleware who can handle it and the error is
+ // thrown again
} catch(\Exception $exception){
$response = $this->middlewareDispatcher->afterException(
$controller, $methodName, $exception);
diff --git a/lib/appframework/http/downloadresponse.php b/lib/appframework/http/downloadresponse.php
index 5a0db325fe6..096e4fc8331 100644
--- a/lib/appframework/http/downloadresponse.php
+++ b/lib/appframework/http/downloadresponse.php
@@ -30,7 +30,6 @@ namespace OC\AppFramework\Http;
*/
abstract class DownloadResponse extends Response {
- private $content;
private $filename;
private $contentType;