StyleCI cleanup
This commit is contained in:
parent
37a723aa58
commit
1897741381
|
@ -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)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -51,7 +51,7 @@ class Service extends Model
|
|||
*/
|
||||
public function defaultIndexFile()
|
||||
{
|
||||
return <<<EOF
|
||||
return <<<'EOF'
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
|
|
|
@ -28,7 +28,6 @@ use DB;
|
|||
use Validator;
|
||||
use Pterodactyl\Models\ServiceOption;
|
||||
use Pterodactyl\Exceptions\DisplayException;
|
||||
use Pterodactyl\Repositories\VariableRepository;
|
||||
use Pterodactyl\Exceptions\DisplayValidationException;
|
||||
|
||||
class OptionRepository
|
||||
|
|
|
@ -25,12 +25,9 @@
|
|||
namespace Pterodactyl\Repositories;
|
||||
|
||||
use DB;
|
||||
use Uuid;
|
||||
use Validator;
|
||||
use Pterodactyl\Models\Service;
|
||||
use Pterodactyl\Models\ServiceVariable;
|
||||
use Pterodactyl\Exceptions\DisplayException;
|
||||
use Pterodactyl\Repositories\OptionRepository;
|
||||
use Pterodactyl\Exceptions\DisplayValidationException;
|
||||
|
||||
class ServiceRepository
|
||||
|
|
|
@ -23,8 +23,6 @@
|
|||
*/
|
||||
use Pterodactyl\Models\Service;
|
||||
use Pterodactyl\Models\ServiceOption;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class MigrateToNewServiceSystem extends Migration
|
||||
|
|
|
@ -8,7 +8,7 @@ use Illuminate\Database\Migrations\Migration;
|
|||
class MoveFunctionsFromFileToDatabase extends Migration
|
||||
{
|
||||
|
||||
private $default = <<<EOF
|
||||
private $default = <<<'EOF'
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
|
@ -43,7 +43,7 @@ class Service extends Core {}
|
|||
module.exports = Service;
|
||||
EOF;
|
||||
|
||||
private $default_mc = <<<EOF
|
||||
private $default_mc = <<<'EOF'
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue