Skip to content

Commit

Permalink
Removed unused code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Pospisil committed Dec 6, 2016
1 parent 7182a1a commit 61c1675
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion src/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function getHeaders(){
}

public function getData(){
return $this->data = $this->data;
return $this->data;
}

public function __set($name, $value){
Expand Down

0 comments on commit 61c1675

Please sign in to comment.