Skip to content

Commit 1e92e66

Browse files
committed
style: add explicit void return types
1 parent 5e4bb9f commit 1e92e66

92 files changed

Lines changed: 174 additions & 174 deletions

File tree

Some content is hidden

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

src/Command/Cache/CacheTunnelCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function __construct(ApiClient $apiClient, ExecutionContextFactory $conte
5454
/**
5555
* {@inheritdoc}
5656
*/
57-
protected function configure()
57+
protected function configure(): void
5858
{
5959
$this
6060
->setName(self::NAME)
@@ -66,7 +66,7 @@ protected function configure()
6666
/**
6767
* {@inheritdoc}
6868
*/
69-
protected function perform()
69+
protected function perform(): void
7070
{
7171
$cacheCluster = $this->resolve(CacheCluster::class, 'Which cache cluster would you like to connect to?');
7272
$localPort = (int) $this->input->getNumericOption('port');

src/Command/Cache/CreateCacheCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class CreateCacheCommand extends AbstractCommand
3131
/**
3232
* {@inheritdoc}
3333
*/
34-
protected function configure()
34+
protected function configure(): void
3535
{
3636
$this
3737
->setName(self::NAME)
@@ -45,7 +45,7 @@ protected function configure()
4545
/**
4646
* {@inheritdoc}
4747
*/
48-
protected function perform()
48+
protected function perform(): void
4949
{
5050
$cacheCluster = $this->provision(CacheCluster::class);
5151

src/Command/Cache/DeleteCacheCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class DeleteCacheCommand extends AbstractCommand
3030
/**
3131
* {@inheritdoc}
3232
*/
33-
protected function configure()
33+
protected function configure(): void
3434
{
3535
$this
3636
->setName(self::NAME)
@@ -41,7 +41,7 @@ protected function configure()
4141
/**
4242
* {@inheritdoc}
4343
*/
44-
protected function perform()
44+
protected function perform(): void
4545
{
4646
$cacheCluster = $this->resolve(CacheCluster::class, 'Which cache cluster would you like to delete?');
4747

src/Command/Cache/ListCachesCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ListCachesCommand extends AbstractCommand
2828
/**
2929
* {@inheritdoc}
3030
*/
31-
protected function configure()
31+
protected function configure(): void
3232
{
3333
$this
3434
->setName(self::NAME)
@@ -38,7 +38,7 @@ protected function configure()
3838
/**
3939
* {@inheritdoc}
4040
*/
41-
protected function perform()
41+
protected function perform(): void
4242
{
4343
$this->output->table(
4444
['Id', 'Name', 'Provider', 'Network', 'Region', 'Status', 'Engine', 'Type'],

src/Command/Cache/ModifyCacheCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class ModifyCacheCommand extends AbstractCommand
3232
/**
3333
* {@inheritdoc}
3434
*/
35-
protected function configure()
35+
protected function configure(): void
3636
{
3737
$this
3838
->setName(self::NAME)
@@ -44,7 +44,7 @@ protected function configure()
4444
/**
4545
* {@inheritdoc}
4646
*/
47-
protected function perform()
47+
protected function perform(): void
4848
{
4949
$cacheCluster = $this->resolve(CacheCluster::class, 'Which cache cluster would you like to modify?');
5050
$newType = $this->fulfill(new CacheClusterTypeRequirement(sprintf('What should the cache cluster type be changed to? <fg=default>(Currently: <comment>%s</comment>)</>', $cacheCluster->getType())), [

src/Command/Certificate/DeleteCertificateCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class DeleteCertificateCommand extends AbstractCommand
2929
/**
3030
* {@inheritdoc}
3131
*/
32-
protected function configure()
32+
protected function configure(): void
3333
{
3434
$this
3535
->setName(self::NAME)
@@ -40,7 +40,7 @@ protected function configure()
4040
/**
4141
* {@inheritdoc}
4242
*/
43-
protected function perform()
43+
protected function perform(): void
4444
{
4545
$certificate = $this->resolve(Certificate::class, 'Which SSL certificate would you like to delete?');
4646

src/Command/Certificate/GetCertificateInfoCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class GetCertificateInfoCommand extends AbstractCommand
3030
/**
3131
* {@inheritdoc}
3232
*/
33-
protected function configure()
33+
protected function configure(): void
3434
{
3535
$this
3636
->setName(self::NAME)
@@ -41,7 +41,7 @@ protected function configure()
4141
/**
4242
* {@inheritdoc}
4343
*/
44-
protected function perform()
44+
protected function perform(): void
4545
{
4646
$certificate = $this->resolve(Certificate::class, 'Which SSL certificate would you like to get information about?');
4747

src/Command/Certificate/ListCertificatesCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ListCertificatesCommand extends AbstractCommand
2828
/**
2929
* {@inheritdoc}
3030
*/
31-
protected function configure()
31+
protected function configure(): void
3232
{
3333
$this
3434
->setName(self::NAME)
@@ -38,7 +38,7 @@ protected function configure()
3838
/**
3939
* {@inheritdoc}
4040
*/
41-
protected function perform()
41+
protected function perform(): void
4242
{
4343
$certificates = $this->apiClient->getCertificates($this->getTeam());
4444

src/Command/Certificate/RequestCertificateCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class RequestCertificateCommand extends AbstractCommand
3131
/**
3232
* {@inheritdoc}
3333
*/
34-
protected function configure()
34+
protected function configure(): void
3535
{
3636
$this
3737
->setName(self::NAME)
@@ -44,7 +44,7 @@ protected function configure()
4444
/**
4545
* {@inheritdoc}
4646
*/
47-
protected function perform()
47+
protected function perform(): void
4848
{
4949
$domains = $this->input->getArrayArgument('domains');
5050

src/Command/Database/CreateDatabaseCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class CreateDatabaseCommand extends AbstractCommand
3030
/**
3131
* {@inheritdoc}
3232
*/
33-
protected function configure()
33+
protected function configure(): void
3434
{
3535
$this
3636
->setName(self::NAME)
@@ -42,7 +42,7 @@ protected function configure()
4242
/**
4343
* {@inheritdoc}
4444
*/
45-
protected function perform()
45+
protected function perform(): void
4646
{
4747
$this->provision(Database::class);
4848

0 commit comments

Comments
 (0)