Skip to content

Commit f82b419

Browse files
committed
Update php doc blocks
1 parent 5f6ee45 commit f82b419

19 files changed

+43
-12
lines changed

app/Http/Controllers/Admin/Nests/EggVariableController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,11 @@ public function view(int $egg): View
9090
* Handle a request to create a new Egg variable.
9191
*
9292
* @param \Pterodactyl\Http\Requests\Admin\Egg\EggVariableFormRequest $request
93-
* @param \Pterodactyl\Models\Egg $egg
93+
* @param \Pterodactyl\Models\Egg $egg
9494
*
9595
* @return \Illuminate\Http\RedirectResponse
9696
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
97+
* @throws \Pterodactyl\Exceptions\Service\Egg\Variable\BadValidationRuleException
9798
* @throws \Pterodactyl\Exceptions\Service\Egg\Variable\ReservedVariableNameException
9899
*/
99100
public function store(EggVariableFormRequest $request, Egg $egg): RedirectResponse

app/Http/Controllers/Admin/ServersController.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,7 @@ public function reinstallServer(Server $server)
462462
*
463463
* @param \Pterodactyl\Models\Server $server
464464
* @return \Illuminate\Http\RedirectResponse
465+
* @throws \Pterodactyl\Exceptions\Http\Connection\DaemonConnectionException
465466
*/
466467
public function rebuildContainer(Server $server)
467468
{
@@ -536,11 +537,12 @@ public function delete(Request $request, Server $server)
536537
/**
537538
* Update the startup command as well as variables.
538539
*
539-
* @param \Illuminate\Http\Request $request
540+
* @param \Illuminate\Http\Request $request
540541
* @param \Pterodactyl\Models\Server $server
541542
* @return \Illuminate\Http\RedirectResponse
542543
*
543-
* @throws \Pterodactyl\Exceptions\DisplayException
544+
* @throws \Illuminate\Validation\ValidationException
545+
* @throws \Pterodactyl\Exceptions\Http\Connection\DaemonConnectionException
544546
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
545547
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
546548
*/

app/Http/Controllers/Admin/Settings/AdvancedController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ public function index(): View
7676
/**
7777
* @param \Pterodactyl\Http\Requests\Admin\Settings\AdvancedSettingsFormRequest $request
7878
* @return \Illuminate\Http\RedirectResponse
79+
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
80+
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
7981
*/
8082
public function update(AdvancedSettingsFormRequest $request): RedirectResponse
8183
{

app/Http/Controllers/Admin/Settings/IndexController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ public function index(): View
7474
*
7575
* @param \Pterodactyl\Http\Requests\Admin\Settings\BaseSettingsFormRequest $request
7676
* @return \Illuminate\Http\RedirectResponse
77+
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
78+
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
7779
*/
7880
public function update(BaseSettingsFormRequest $request): RedirectResponse
7981
{

app/Http/Controllers/Admin/Settings/MailController.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ public function index(): View
8383
* @param \Pterodactyl\Http\Requests\Admin\Settings\MailSettingsFormRequest $request
8484
* @return \Illuminate\Http\RedirectResponse
8585
*
86-
* @throws \Pterodactyl\Exceptions\DisplayException
86+
* @throws DisplayException
87+
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
88+
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
8789
*/
8890
public function update(MailSettingsFormRequest $request): RedirectResponse
8991
{

app/Models/EggVariable.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ class EggVariable extends Model implements CleansAttributes, ValidableContract
8282
];
8383

8484
/**
85+
* @param $value
8586
* @return bool
8687
*/
8788
public function getRequiredAttribute($value)

app/Providers/AuthServiceProvider.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ class AuthServiceProvider extends ServiceProvider
1818
/**
1919
* Register any application authentication / authorization services.
2020
*
21-
* @param \Illuminate\Contracts\Auth\Access\Gate $gate
2221
*/
2322
public function boot()
2423
{

app/Repositories/Daemon/CommandRepository.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class CommandRepository extends BaseRepository implements CommandRepositoryInter
1212
*
1313
* @param string $command
1414
* @return \Psr\Http\Message\ResponseInterface
15+
* @throws \GuzzleHttp\Exception\GuzzleException
1516
*/
1617
public function send(string $command): ResponseInterface
1718
{

app/Repositories/Daemon/ConfigurationRepository.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class ConfigurationRepository extends BaseRepository implements ConfigurationRep
1212
*
1313
* @param array $overrides
1414
* @return \Psr\Http\Message\ResponseInterface
15+
* @throws \GuzzleHttp\Exception\GuzzleException
1516
*/
1617
public function update(array $overrides = []): ResponseInterface
1718
{

app/Repositories/Daemon/FileRepository.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class FileRepository extends BaseRepository implements FileRepositoryInterface
1414
* @param string $path
1515
* @return \stdClass
1616
*
17-
* @throws \GuzzleHttp\Exception\RequestException
17+
* @throws \GuzzleHttp\Exception\GuzzleException
1818
*/
1919
public function getFileStat(string $path): stdClass
2020
{
@@ -35,7 +35,7 @@ public function getFileStat(string $path): stdClass
3535
* @param string $path
3636
* @return string
3737
*
38-
* @throws \GuzzleHttp\Exception\RequestException
38+
* @throws \GuzzleHttp\Exception\GuzzleException
3939
*/
4040
public function getContent(string $path): string
4141
{
@@ -57,7 +57,7 @@ public function getContent(string $path): string
5757
* @param string $content
5858
* @return \Psr\Http\Message\ResponseInterface
5959
*
60-
* @throws \GuzzleHttp\Exception\RequestException
60+
* @throws \GuzzleHttp\Exception\GuzzleException
6161
*/
6262
public function putContent(string $path, string $content): ResponseInterface
6363
{
@@ -78,7 +78,7 @@ public function putContent(string $path, string $content): ResponseInterface
7878
* @param string $path
7979
* @return array
8080
*
81-
* @throws \GuzzleHttp\Exception\RequestException
81+
* @throws \GuzzleHttp\Exception\GuzzleException
8282
*/
8383
public function getDirectory(string $path): array
8484
{

0 commit comments

Comments
 (0)