@@ -24,7 +24,6 @@ |
||
24 | 24 | namespace Pterodactyl\Console\Commands; |
25 | 25 | |
26 | 26 | use DB; |
27 | - |
|
28 | 27 | use Illuminate\Console\Command; |
29 | 28 | |
30 | 29 | class ClearServices extends Command |
@@ -23,14 +23,11 @@ |
||
23 | 23 | */ |
24 | 24 | namespace Pterodactyl\Console\Commands; |
25 | 25 | |
26 | -use DB; |
|
27 | 26 | use Carbon; |
28 | 27 | use Pterodactyl\Models; |
29 | 28 | use Illuminate\Console\Command; |
30 | 29 | use Illuminate\Foundation\Bus\DispatchesJobs; |
31 | 30 | |
32 | -use Pterodactyl\Jobs\SendScheduledTask; |
|
33 | - |
|
34 | 31 | class ClearTasks extends Command |
35 | 32 | { |
36 | 33 |
@@ -23,9 +23,7 @@ |
||
23 | 23 | */ |
24 | 24 | namespace Pterodactyl\Console\Commands; |
25 | 25 | |
26 | -use Hash; |
|
27 | 26 | use Illuminate\Console\Command; |
28 | - |
|
29 | 27 | use Pterodactyl\Repositories\UserRepository; |
30 | 28 | |
31 | 29 | class MakeUser extends Command |
@@ -23,12 +23,10 @@ |
||
23 | 23 | */ |
24 | 24 | namespace Pterodactyl\Console\Commands; |
25 | 25 | |
26 | -use DB; |
|
27 | 26 | use Carbon; |
28 | 27 | use Pterodactyl\Models; |
29 | 28 | use Illuminate\Console\Command; |
30 | 29 | use Illuminate\Foundation\Bus\DispatchesJobs; |
31 | - |
|
32 | 30 | use Pterodactyl\Jobs\SendScheduledTask; |
33 | 31 | |
34 | 32 | class RunTasks extends Command |
@@ -33,7 +33,6 @@ discard block |
||
33 | 33 | * |
34 | 34 | * This is a great spot to send exceptions to Sentry, Bugsnag, etc. |
35 | 35 | * |
36 | - * @param \Exception $e |
|
37 | 36 | * @return void |
38 | 37 | */ |
39 | 38 | public function report(Exception $exception) |
@@ -45,7 +44,6 @@ discard block |
||
45 | 44 | * Render an exception into an HTTP response. |
46 | 45 | * |
47 | 46 | * @param \Illuminate\Http\Request $request |
48 | - * @param \Exception $e |
|
49 | 47 | * @return \Illuminate\Http\Response |
50 | 48 | */ |
51 | 49 | public function render($request, Exception $exception) |
@@ -3,12 +3,8 @@ |
||
3 | 3 | namespace Pterodactyl\Exceptions; |
4 | 4 | |
5 | 5 | use Log; |
6 | - |
|
7 | 6 | use Exception; |
8 | 7 | use DisplayException; |
9 | -use DisplayValidationException; |
|
10 | -use AccountNotFoundException; |
|
11 | - |
|
12 | 8 | use Illuminate\Auth\AuthenticationException; |
13 | 9 | use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; |
14 | 10 |
@@ -26,7 +26,6 @@ |
||
26 | 26 | use Alert; |
27 | 27 | use Settings; |
28 | 28 | use Validator; |
29 | - |
|
30 | 29 | use Pterodactyl\Http\Controllers\Controller; |
31 | 30 | use Illuminate\Http\Request; |
32 | 31 |
@@ -26,12 +26,10 @@ |
||
26 | 26 | use Alert; |
27 | 27 | use DB; |
28 | 28 | use Log; |
29 | - |
|
30 | 29 | use Pterodactyl\Models; |
31 | 30 | use Pterodactyl\Repositories\DatabaseRepository; |
32 | 31 | use Pterodactyl\Exceptions\DisplayException; |
33 | 32 | use Pterodactyl\Exceptions\DisplayValidationException; |
34 | - |
|
35 | 33 | use Pterodactyl\Http\Controllers\Controller; |
36 | 34 | use Illuminate\Http\Request; |
37 | 35 |
@@ -25,14 +25,11 @@ |
||
25 | 25 | |
26 | 26 | use DB; |
27 | 27 | use Alert; |
28 | - |
|
29 | 28 | use Pterodactyl\Models; |
30 | 29 | use Pterodactyl\Repositories\LocationRepository; |
31 | 30 | use Pterodactyl\Http\Controllers\Controller; |
32 | - |
|
33 | 31 | use Pterodactyl\Exceptions\DisplayValidationException; |
34 | 32 | use Pterodactyl\Exceptions\DisplayException; |
35 | - |
|
36 | 33 | use Illuminate\Http\Request; |
37 | 34 | |
38 | 35 | class LocationsController extends Controller |
@@ -24,16 +24,13 @@ |
||
24 | 24 | namespace Pterodactyl\Http\Controllers\Admin; |
25 | 25 | |
26 | 26 | use Alert; |
27 | -use Debugbar; |
|
28 | 27 | use Log; |
29 | 28 | use DB; |
30 | 29 | use Validator; |
31 | - |
|
32 | 30 | use Pterodactyl\Models; |
33 | 31 | use Pterodactyl\Repositories\NodeRepository; |
34 | 32 | use Pterodactyl\Exceptions\DisplayException; |
35 | 33 | use Pterodactyl\Exceptions\DisplayValidationException; |
36 | - |
|
37 | 34 | use Pterodactyl\Http\Controllers\Controller; |
38 | 35 | use Illuminate\Http\Request; |
39 | 36 |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | |
51 | 51 | public function getScript(Request $request, $id) |
52 | 52 | { |
53 | - return response()->view('admin.nodes.remote.deploy', [ 'node' => Models\Node::findOrFail($id) ])->header('Content-Type', 'text/plain'); |
|
53 | + return response()->view('admin.nodes.remote.deploy', ['node' => Models\Node::findOrFail($id)])->header('Content-Type', 'text/plain'); |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | public function getIndex(Request $request) |
@@ -217,17 +217,17 @@ discard block |
||
217 | 217 | } |
218 | 218 | |
219 | 219 | $processedData = []; |
220 | - foreach($request->input('allocate_ip') as $ip) { |
|
220 | + foreach ($request->input('allocate_ip') as $ip) { |
|
221 | 221 | if (!array_key_exists($ip, $processedData)) { |
222 | 222 | $processedData[$ip] = []; |
223 | 223 | } |
224 | 224 | } |
225 | 225 | |
226 | - foreach($request->input('allocate_port') as $portid => $ports) { |
|
226 | + foreach ($request->input('allocate_port') as $portid => $ports) { |
|
227 | 227 | if (array_key_exists($portid, $request->input('allocate_ip'))) { |
228 | 228 | $json = json_decode($ports); |
229 | 229 | if (json_last_error() === 0 && !empty($json)) { |
230 | - foreach($json as &$parsed) { |
|
230 | + foreach ($json as &$parsed) { |
|
231 | 231 | array_push($processedData[$request->input('allocate_ip')[$portid]], $parsed->value); |
232 | 232 | } |
233 | 233 | } |