Skip to content

Commit 5515871

Browse files
committed
Turns out I hate that huge space formatting, disable that mess
1 parent 0ae90ea commit 5515871

34 files changed

+318
-322
lines changed

.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/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
{

app/Models/Database.php

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

55
/**
6-
* @property int $id
7-
* @property int $server_id
8-
* @property int $database_host_id
9-
* @property string $database
10-
* @property string $username
11-
* @property string $remote
12-
* @property string $password
13-
* @property int $max_connections
14-
* @property \Carbon\Carbon $created_at
15-
* @property \Carbon\Carbon $updated_at
16-
* @property \Pterodactyl\Models\Server $server
6+
* @property int $id
7+
* @property int $server_id
8+
* @property int $database_host_id
9+
* @property string $database
10+
* @property string $username
11+
* @property string $remote
12+
* @property string $password
13+
* @property int $max_connections
14+
* @property \Carbon\Carbon $created_at
15+
* @property \Carbon\Carbon $updated_at
16+
* @property \Pterodactyl\Models\Server $server
1717
* @property \Pterodactyl\Models\DatabaseHost $host
1818
*/
1919
class Database extends Model

app/Models/DatabaseHost.php

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

55
/**
6-
* @property int $id
7-
* @property string $name
8-
* @property string $host
9-
* @property int $port
10-
* @property string $username
11-
* @property string $password
12-
* @property int|null $max_databases
13-
* @property int|null $node_id
6+
* @property int $id
7+
* @property string $name
8+
* @property string $host
9+
* @property int $port
10+
* @property string $username
11+
* @property string $password
12+
* @property int|null $max_databases
13+
* @property int|null $node_id
1414
* @property \Carbon\CarbonImmutable $created_at
1515
* @property \Carbon\CarbonImmutable $updated_at
1616
*/

0 commit comments

Comments
 (0)