StyleCI cleanup
This commit is contained in:
parent
37a723aa58
commit
1897741381
10 changed files with 17 additions and 36 deletions
|
@ -26,7 +26,6 @@ namespace Pterodactyl\Http\Controllers\Admin;
|
|||
|
||||
use Log;
|
||||
use Alert;
|
||||
use Storage;
|
||||
use Javascript;
|
||||
use Illuminate\Http\Request;
|
||||
use Pterodactyl\Models\Service;
|
||||
|
@ -67,7 +66,7 @@ class OptionController extends Controller
|
|||
$option = $repo->create($request->intersect([
|
||||
'service_id', 'name', 'description', 'tag',
|
||||
'docker_image', 'startup', 'config_from', 'config_startup',
|
||||
'config_logs', 'config_files', 'config_stop'
|
||||
'config_logs', 'config_files', 'config_stop',
|
||||
]));
|
||||
Alert::success('Successfully created new service option.')->flash();
|
||||
|
||||
|
@ -195,7 +194,7 @@ class OptionController extends Controller
|
|||
Alert::success("The service variable '{$variable->name}' has been updated.")->flash();
|
||||
} else {
|
||||
$repo->delete($variable);
|
||||
Alert::success("That service variable has been deleted.")->flash();
|
||||
Alert::success('That service variable has been deleted.')->flash();
|
||||
}
|
||||
} catch (DisplayValidationException $ex) {
|
||||
return redirect()->route('admin.services.option.variables', $option)->withErrors(json_decode($ex->getMessage()));
|
||||
|
|
|
@ -149,16 +149,4 @@ class ServiceController extends Controller
|
|||
|
||||
return redirect()->route($redirectTo, $id);
|
||||
}
|
||||
|
||||
/**
|
||||
* Edits function file for a service.
|
||||
*
|
||||
* @param Request $request
|
||||
* @param int $id
|
||||
* @return \Illuminate\Response\RedirectResponse
|
||||
*/
|
||||
public function editFunctions(Request $request, $id)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -66,7 +66,7 @@ class ServiceController extends Controller
|
|||
|
||||
if ($file === 'index.js') {
|
||||
return response($service->index_file)->header('Content-Type', 'text/plain');
|
||||
} else if ($file === 'main.json') {
|
||||
} elseif ($file === 'main.json') {
|
||||
return response()->json($this->getConfiguration($service->id));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue