|
|
|
@ -271,7 +271,7 @@ abstract class StoragesController extends Controller {
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @return DataResponse
|
|
|
|
* @return DataResponse
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public function show($id, $testOnly = true) {
|
|
|
|
public function show(int $id, $testOnly = true) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
$storage = $this->service->getStorage($id);
|
|
|
|
$storage = $this->service->getStorage($id);
|
|
|
|
|
|
|
|
|
|
|
|
@ -303,7 +303,7 @@ abstract class StoragesController extends Controller {
|
|
|
|
* @return DataResponse
|
|
|
|
* @return DataResponse
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
#[PasswordConfirmationRequired]
|
|
|
|
#[PasswordConfirmationRequired]
|
|
|
|
public function destroy($id) {
|
|
|
|
public function destroy(int $id) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
$this->service->removeStorage($id);
|
|
|
|
$this->service->removeStorage($id);
|
|
|
|
} catch (NotFoundException $e) {
|
|
|
|
} catch (NotFoundException $e) {
|
|
|
|
|