Skip to content

Commit 2ed3763

Browse files
committed
cs fix
1 parent 6143b65 commit 2ed3763

17 files changed

+18
-19
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
pull_request:
55
jobs:
66
integration_tests:
7+
if: "!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[ci skip]')"
78
runs-on: ubuntu-latest
89
services:
910
mysql:

app/Console/Commands/Migration/CleanOrphanedApiKeysCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function __construct(ApiKeyRepositoryInterface $repository)
3838
/**
3939
* Delete all orphaned API keys from the database when upgrading from 0.6 to 0.7.
4040
*
41-
* @return null|void
41+
* @return void|null
4242
*/
4343
public function handle()
4444
{

app/Contracts/Repository/SessionRepositoryInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function getUserSessions(int $user): Collection;
1919
*
2020
* @param int $user
2121
* @param string $session
22-
* @return null|int
22+
* @return int|null
2323
*/
2424
public function deleteUserSession(int $user, string $session);
2525
}

app/Contracts/Repository/TaskRepositoryInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function getTaskForJobProcess(int $id): Task;
2121
*
2222
* @param int $schedule
2323
* @param int $index
24-
* @return null|\Pterodactyl\Models\Task
24+
* @return \Pterodactyl\Models\Task|null
2525
*/
2626
public function getNextTask(int $schedule, int $index);
2727
}

app/Http/Requests/Api/Application/Nodes/StoreNodeRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class StoreNodeRequest extends ApplicationApiRequest
2121
/**
2222
* Validation rules to apply to this request.
2323
*
24-
* @param null|array $rules
24+
* @param array|null $rules
2525
* @return array
2626
*/
2727
public function rules(array $rules = null): array

app/Repositories/Concerns/Searchable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ trait Searchable
77
/**
88
* The search term to use when filtering results.
99
*
10-
* @var null|string
10+
* @var string|null
1111
*/
1212
protected $searchTerm;
1313

app/Repositories/Eloquent/DatabaseRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public function createDatabase(string $database): bool
140140
*/
141141
public function createUser(string $username, string $remote, string $password, $max_connections): bool
142142
{
143-
if (!$max_connections) {
143+
if (! $max_connections) {
144144
return $this->run(sprintf('CREATE USER `%s`@`%s` IDENTIFIED BY \'%s\'', $username, $remote, $password));
145145
} else {
146146
return $this->run(sprintf('CREATE USER `%s`@`%s` IDENTIFIED BY \'%s\' WITH MAX_USER_CONNECTIONS %s', $username, $remote, $password, $max_connections));

app/Repositories/Eloquent/SessionRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function getUserSessions(int $user): Collection
3434
*
3535
* @param int $user
3636
* @param string $session
37-
* @return null|int
37+
* @return int|null
3838
*/
3939
public function deleteUserSession(int $user, string $session)
4040
{

app/Repositories/Eloquent/TaskRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function getTaskForJobProcess(int $id): Task
4141
*
4242
* @param int $schedule
4343
* @param int $index
44-
* @return null|\Pterodactyl\Models\Task
44+
* @return \Pterodactyl\Models\Task|null
4545
*/
4646
public function getNextTask(int $schedule, int $index)
4747
{

app/Services/Helpers/AssetHashService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class AssetHashService
2424
private $application;
2525

2626
/**
27-
* @var null|array
27+
* @var array|null
2828
*/
2929
protected static $manifest;
3030

0 commit comments

Comments
 (0)