Skip to content

Commit 355697d

Browse files
authored
Apply fixes from StyleCI (pterodactyl#260)
1 parent 19da4ed commit 355697d

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed

app/Http/Controllers/Server/TaskController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public function getNew(Request $request, $uuid)
7373
'server' => collect($server->makeVisible('daemonSecret'))->only(['uuid', 'uuidShort', 'daemonSecret', 'username']),
7474
'node' => collect($node)->only('fqdn', 'scheme', 'daemonListen'),
7575
]);
76+
7677
return view('server.tasks.new', [
7778
'server' => $server,
7879
'node' => $node,
@@ -89,6 +90,7 @@ public function postNew(Request $request, $uuid)
8990
$repo->create($server->id, $request->except([
9091
'_token',
9192
]));
93+
9294
return redirect()->route('server.tasks', $uuid);
9395
} catch (DisplayValidationException $ex) {
9496
return redirect()->route('server.tasks.new', $uuid)->withErrors(json_decode($ex->getMessage()))->withInput();

app/Http/Middleware/AdminAuthenticate.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public function handle($request, Closure $next)
7171

7272
// @TODO: eventually update admin themes
7373
Theme::set('default');
74+
7475
return $next($request);
7576
}
7677
}

app/Models/User.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,10 @@ public function sendPasswordResetNotification($token)
150150
/**
151151
* Return true or false depending on wether the user is root admin or not.
152152
*
153-
* @return boolean the user is root admin
153+
* @return bool the user is root admin
154154
*/
155-
public function isRootAdmin() {
155+
public function isRootAdmin()
156+
{
156157
return $this->root_admin === 1;
157158
}
158159
}

resources/lang/en/base.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@
3232
'form_title' => 'Details',
3333
'descriptive_memo' => [
3434
'title' => 'Descriptive Memo',
35-
'description' => 'Enter a brief description of what this API key will be used for.'
35+
'description' => 'Enter a brief description of what this API key will be used for.',
3636
],
3737
'allowed_ips' => [
3838
'title' => 'Allowed IPs',
39-
'description' => 'Enter a line delimitated list of IPs that are allowed to access the API using this key. CIDR notation is allowed. Leave blank to allow any IP.'
39+
'description' => 'Enter a line delimitated list of IPs that are allowed to access the API using this key. CIDR notation is allowed. Leave blank to allow any IP.',
4040
],
4141
'base' => [
4242
'title' => 'Base Information',

resources/lang/en/server.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
'update' => 'Update Subuser',
4747
'edit' => [
4848
'header' => 'Edit Subuser',
49-
'header_sub' => 'Modify user\'s access to server.'
49+
'header_sub' => 'Modify user\'s access to server.',
5050
],
5151
'new' => [
5252
'header' => 'Add New User',
@@ -255,7 +255,7 @@
255255
'header_sub' => 'Control the IPs and ports available on this server.',
256256
'available' => 'Available Allocations',
257257
'help' => 'Allocation Help',
258-
'help_text' => 'The list to the left includes all available IPs and ports that are open for your server to use for incoming connections.'
258+
'help_text' => 'The list to the left includes all available IPs and ports that are open for your server to use for incoming connections.',
259259
],
260260
],
261261
];

0 commit comments

Comments
 (0)