These parens are not needed.
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
committed by
Julius Härtl
parent
84a8db7b75
commit
86dde2d6b8
@@ -67,7 +67,7 @@ class BoardApiController extends ApiController {
|
|||||||
public function index() {
|
public function index() {
|
||||||
$boards = $this->service->findAll($this->getUserInfo());
|
$boards = $this->service->findAll($this->getUserInfo());
|
||||||
|
|
||||||
return (new DataResponse($boards));
|
return new DataResponse($boards);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -84,7 +84,7 @@ class BoardApiController extends ApiController {
|
|||||||
|
|
||||||
// FIXME: this should probably 404 if the board has been deleted
|
// FIXME: this should probably 404 if the board has been deleted
|
||||||
|
|
||||||
return (new DataResponse($board));
|
return new DataResponse($board);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -99,7 +99,7 @@ class BoardApiController extends ApiController {
|
|||||||
public function delete($id) {
|
public function delete($id) {
|
||||||
$board = $this->service->delete($id);
|
$board = $this->service->delete($id);
|
||||||
|
|
||||||
return (new DataResponse($board));
|
return new DataResponse($board);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -115,7 +115,7 @@ class BoardApiController extends ApiController {
|
|||||||
$board = $this->service->find($id);
|
$board = $this->service->find($id);
|
||||||
$this->service->deleteUndo($id);
|
$this->service->deleteUndo($id);
|
||||||
|
|
||||||
return (new DataResponse($board));
|
return new DataResponse($board);
|
||||||
}
|
}
|
||||||
|
|
||||||
// this is taken from BoardController, but it's not ideal
|
// this is taken from BoardController, but it's not ideal
|
||||||
|
|||||||
Reference in New Issue
Block a user