Skip to content

Commit be26921

Browse files
committed
Merge branch 'develop' into dane/restore-backups
2 parents 0dd0f09 + 8c2d1cd commit be26921

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+440
-362
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Create release archive
3535
run: |
3636
rm -rf node_modules/ test/ codecov.yml CODE_OF_CONDUCT.md CONTRIBUTING.md phpunit.dusk.xml phpunit.xml Vagrantfile
37-
tar -czf panel.tar.gz * .env.example
37+
tar -czf panel.tar.gz * .env.example .babel-plugin-macrosrc.js
3838
3939
- name: Extract changelog
4040
id: extract_changelog

.php_cs.dist

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,17 @@ return (new Config())
2323
'ordered_imports' => [
2424
'sortAlgorithm' => 'length',
2525
],
26+
'phpdoc_align' => [
27+
'align' => 'left',
28+
'tags' => [
29+
'param',
30+
'property',
31+
'return',
32+
'throws',
33+
'type',
34+
'var',
35+
],
36+
],
2637
'random_api_migration' => true,
2738
'ternary_to_null_coalescing' => true,
2839
'yoda_style' => [

app/Contracts/Extensions/HashidsInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ interface HashidsInterface extends VendorHashidsInterface
1717
* Decode an encoded hashid and return the first result.
1818
*
1919
* @param string $encoded
20-
* @param null $default
20+
* @param null $default
2121
*
2222
* @return mixed
2323
*

app/Exceptions/DisplayException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class DisplayException extends PterodactylException
2626
*
2727
* @param string $message
2828
* @param string $level
29-
* @param int $code
29+
* @param int $code
3030
*/
3131
public function __construct($message, Throwable $previous = null, $level = self::LEVEL_ERROR, $code = 0)
3232
{

app/Extensions/DynamicDatabaseConnection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ public function __construct(
5151
/**
5252
* Adds a dynamic database connection entry to the runtime config.
5353
*
54-
* @param string $connection
54+
* @param string $connection
5555
* @param \Pterodactyl\Models\DatabaseHost|int $host
56-
* @param string $database
56+
* @param string $database
5757
*
5858
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
5959
*/

app/Http/Controllers/Auth/ResetPasswordController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function ($user, $password) {
8888
* form with a note telling them their password was changed and to log back in.
8989
*
9090
* @param \Illuminate\Contracts\Auth\CanResetPassword|\Pterodactyl\Models\User $user
91-
* @param string $password
91+
* @param string $password
9292
*
9393
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
9494
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException

app/Http/Requests/Admin/Egg/EggFormRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function rules()
2222
'name' => 'required|string|max:191',
2323
'description' => 'nullable|string',
2424
'docker_images' => 'required|string',
25-
'file_denylist' => 'string',
25+
'file_denylist' => 'array',
2626
'startup' => 'required|string',
2727
'config_from' => 'sometimes|bail|nullable|numeric',
2828
'config_stop' => 'required_without:config_from|nullable|string|max:191',

app/Models/Allocation.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
namespace Pterodactyl\Models;
44

55
/**
6-
* @property int $id
7-
* @property int $node_id
8-
* @property string $ip
9-
* @property string|null $ip_alias
10-
* @property int $port
11-
* @property int|null $server_id
12-
* @property string|null $notes
13-
* @property \Carbon\Carbon|null $created_at
14-
* @property \Carbon\Carbon|null $updated_at
15-
* @property string $alias
16-
* @property bool $has_alias
6+
* @property int $id
7+
* @property int $node_id
8+
* @property string $ip
9+
* @property string|null $ip_alias
10+
* @property int $port
11+
* @property int|null $server_id
12+
* @property string|null $notes
13+
* @property \Carbon\Carbon|null $created_at
14+
* @property \Carbon\Carbon|null $updated_at
15+
* @property string $alias
16+
* @property bool $has_alias
1717
* @property \Pterodactyl\Models\Server|null $server
18-
* @property \Pterodactyl\Models\Node $node
18+
* @property \Pterodactyl\Models\Node $node
1919
*/
2020
class Allocation extends Model
2121
{

app/Models/ApiKey.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
use Pterodactyl\Services\Acl\Api\AdminAcl;
66

77
/**
8-
* @property int $id
9-
* @property int $user_id
10-
* @property int $key_type
11-
* @property string $identifier
12-
* @property string $token
13-
* @property array $allowed_ips
14-
* @property string $memo
8+
* @property int $id
9+
* @property int $user_id
10+
* @property int $key_type
11+
* @property string $identifier
12+
* @property string $token
13+
* @property array $allowed_ips
14+
* @property string $memo
1515
* @property \Carbon\Carbon|null $last_used_at
16-
* @property \Carbon\Carbon $created_at
17-
* @property \Carbon\Carbon $updated_at
16+
* @property \Carbon\Carbon $created_at
17+
* @property \Carbon\Carbon $updated_at
1818
*/
1919
class ApiKey extends Model
2020
{

app/Models/Backup.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@
55
use Illuminate\Database\Eloquent\SoftDeletes;
66

77
/**
8-
* @property int $id
9-
* @property int $server_id
10-
* @property string $uuid
11-
* @property bool $is_successful
12-
* @property string $name
13-
* @property string[] $ignored_files
14-
* @property string $disk
15-
* @property string|null $checksum
16-
* @property int $bytes
17-
* @property string|null $upload_id
8+
* @property int $id
9+
* @property int $server_id
10+
* @property string $uuid
11+
* @property bool $is_successful
12+
* @property string $name
13+
* @property string[] $ignored_files
14+
* @property string $disk
15+
* @property string|null $checksum
16+
* @property int $bytes
17+
* @property string|null $upload_id
1818
* @property \Carbon\CarbonImmutable|null $completed_at
19-
* @property \Carbon\CarbonImmutable $created_at
20-
* @property \Carbon\CarbonImmutable $updated_at
19+
* @property \Carbon\CarbonImmutable $created_at
20+
* @property \Carbon\CarbonImmutable $updated_at
2121
* @property \Carbon\CarbonImmutable|null $deleted_at
22-
* @property \Pterodactyl\Models\Server $server
22+
* @property \Pterodactyl\Models\Server $server
2323
*/
2424
class Backup extends Model
2525
{

0 commit comments

Comments
 (0)