From 61c167536bf99f5714e2911baf079b93c7433292 Mon Sep 17 00:00:00 2001 From: Jan Pospisil Date: Tue, 6 Dec 2016 14:17:50 +0100 Subject: [PATCH] Removed unused code. --- src/Application.php | 2 +- src/Response.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Application.php b/src/Application.php index 3469c5a..946e1f8 100644 --- a/src/Application.php +++ b/src/Application.php @@ -63,7 +63,7 @@ public function run(){ $path = $path ? $path : '/'; $routeResponse = $this->routeList->match($path, $this->request->method); if(!$routeResponse) - throw new BadRequestException('Unsupported '.$this->request->method.' "'.$path.'"" request'); + throw new BadRequestException('Unsupported '.$this->request->method.' '.$path.' request'); $instance = $this->container->getByType($routeResponse['classname']); if(!$instance instanceof IController) { throw new ApplicationException('Class "' . $routeResponse['classname'] . '" must be instance of RestServer\IController'); diff --git a/src/Response.php b/src/Response.php index 57d83f6..01d7a9c 100644 --- a/src/Response.php +++ b/src/Response.php @@ -43,7 +43,7 @@ public function getHeaders(){ } public function getData(){ - return $this->data = $this->data; + return $this->data; } public function __set($name, $value){