From 66ff46cc84546ac8789745f82f71149137bbb839 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Mon, 31 Oct 2022 23:35:14 -0700 Subject: [PATCH] Lint with latest fixer --- lib/Migration/Version000000Date20220812163631.php | 5 ++--- lib/Migration/Version200000Date20220924015634.php | 13 ++++++------- lib/Migration/Version400000Date20221015121115.php | 13 ++++++------- lib/Migration/Version400307Date20221025002524.php | 13 ++++++------- lib/Migration/Version400308Date20221026151748.php | 13 ++++++------- lib/Migration/Version400503Date20221101033144.php | 13 ++++++------- 6 files changed, 32 insertions(+), 38 deletions(-) diff --git a/lib/Migration/Version000000Date20220812163631.php b/lib/Migration/Version000000Date20220812163631.php index 18428519..e3404e40 100644 --- a/lib/Migration/Version000000Date20220812163631.php +++ b/lib/Migration/Version000000Date20220812163631.php @@ -23,7 +23,6 @@ declare(strict_types=1); namespace OCA\Memories\Migration; -use Closure; use OCP\DB\ISchemaWrapper; use OCP\DB\Types; use OCP\Migration\IOutput; @@ -32,11 +31,11 @@ use OCP\Migration\SimpleMigrationStep; class Version000000Date20220812163631 extends SimpleMigrationStep { /** - * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` + * @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` * * @return null|ISchemaWrapper */ - public function changeSchema(IOutput $output, Closure $schemaClosure, array $options) + public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options) { /** @var ISchemaWrapper $schema */ $schema = $schemaClosure(); diff --git a/lib/Migration/Version200000Date20220924015634.php b/lib/Migration/Version200000Date20220924015634.php index 689088da..cc3d8d67 100644 --- a/lib/Migration/Version200000Date20220924015634.php +++ b/lib/Migration/Version200000Date20220924015634.php @@ -23,7 +23,6 @@ declare(strict_types=1); namespace OCA\Memories\Migration; -use Closure; use OCP\DB\ISchemaWrapper; use OCP\IDBConnection; use OCP\Migration\IOutput; @@ -43,9 +42,9 @@ class Version200000Date20220924015634 extends SimpleMigrationStep } /** - * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` + * @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` */ - public function preSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void + public function preSchemaChange(IOutput $output, \Closure $schemaClosure, array $options): void { /** @var ISchemaWrapper $schema */ $schema = $schemaClosure(); @@ -59,9 +58,9 @@ class Version200000Date20220924015634 extends SimpleMigrationStep } /** - * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` + * @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` */ - public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper + public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options): ?ISchemaWrapper { /** @var ISchemaWrapper $schema */ $schema = $schemaClosure(); @@ -85,9 +84,9 @@ class Version200000Date20220924015634 extends SimpleMigrationStep } /** - * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` + * @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` */ - public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void + public function postSchemaChange(IOutput $output, \Closure $schemaClosure, array $options): void { } } diff --git a/lib/Migration/Version400000Date20221015121115.php b/lib/Migration/Version400000Date20221015121115.php index e4fcf4ea..b911b61f 100644 --- a/lib/Migration/Version400000Date20221015121115.php +++ b/lib/Migration/Version400000Date20221015121115.php @@ -23,7 +23,6 @@ declare(strict_types=1); namespace OCA\Memories\Migration; -use Closure; use OCP\DB\ISchemaWrapper; use OCP\DB\Types; use OCP\Migration\IOutput; @@ -35,16 +34,16 @@ use OCP\Migration\SimpleMigrationStep; class Version400000Date20221015121115 extends SimpleMigrationStep { /** - * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` + * @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` */ - public function preSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void + public function preSchemaChange(IOutput $output, \Closure $schemaClosure, array $options): void { } /** - * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` + * @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` */ - public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper + public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options): ?ISchemaWrapper { /** @var ISchemaWrapper $schema */ $schema = $schemaClosure(); @@ -68,9 +67,9 @@ class Version400000Date20221015121115 extends SimpleMigrationStep } /** - * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` + * @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` */ - public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void + public function postSchemaChange(IOutput $output, \Closure $schemaClosure, array $options): void { } } diff --git a/lib/Migration/Version400307Date20221025002524.php b/lib/Migration/Version400307Date20221025002524.php index 70de12f6..694aae6e 100644 --- a/lib/Migration/Version400307Date20221025002524.php +++ b/lib/Migration/Version400307Date20221025002524.php @@ -23,7 +23,6 @@ declare(strict_types=1); namespace OCA\Memories\Migration; -use Closure; use OCP\DB\ISchemaWrapper; use OCP\Migration\IOutput; use OCP\Migration\SimpleMigrationStep; @@ -34,16 +33,16 @@ use OCP\Migration\SimpleMigrationStep; class Version400307Date20221025002524 extends SimpleMigrationStep { /** - * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` + * @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` */ - public function preSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void + public function preSchemaChange(IOutput $output, \Closure $schemaClosure, array $options): void { } /** - * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` + * @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` */ - public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper + public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options): ?ISchemaWrapper { /** @var ISchemaWrapper $schema */ $schema = $schemaClosure(); @@ -59,9 +58,9 @@ class Version400307Date20221025002524 extends SimpleMigrationStep } /** - * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` + * @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` */ - public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void + public function postSchemaChange(IOutput $output, \Closure $schemaClosure, array $options): void { } } diff --git a/lib/Migration/Version400308Date20221026151748.php b/lib/Migration/Version400308Date20221026151748.php index c6297085..9caf6b4b 100644 --- a/lib/Migration/Version400308Date20221026151748.php +++ b/lib/Migration/Version400308Date20221026151748.php @@ -23,7 +23,6 @@ declare(strict_types=1); namespace OCA\Memories\Migration; -use Closure; use OCP\DB\ISchemaWrapper; use OCP\Migration\IOutput; use OCP\Migration\SimpleMigrationStep; @@ -34,16 +33,16 @@ use OCP\Migration\SimpleMigrationStep; class Version400308Date20221026151748 extends SimpleMigrationStep { /** - * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` + * @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` */ - public function preSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void + public function preSchemaChange(IOutput $output, \Closure $schemaClosure, array $options): void { } /** - * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` + * @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` */ - public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper + public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options): ?ISchemaWrapper { /** @var ISchemaWrapper $schema */ $schema = $schemaClosure(); @@ -57,9 +56,9 @@ class Version400308Date20221026151748 extends SimpleMigrationStep } /** - * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` + * @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` */ - public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void + public function postSchemaChange(IOutput $output, \Closure $schemaClosure, array $options): void { } } diff --git a/lib/Migration/Version400503Date20221101033144.php b/lib/Migration/Version400503Date20221101033144.php index 33a412da..c6b9e470 100644 --- a/lib/Migration/Version400503Date20221101033144.php +++ b/lib/Migration/Version400503Date20221101033144.php @@ -23,7 +23,6 @@ declare(strict_types=1); namespace OCA\Memories\Migration; -use Closure; use OCP\DB\ISchemaWrapper; use OCP\IDBConnection; use OCP\Migration\IOutput; @@ -43,16 +42,16 @@ class Version400503Date20221101033144 extends SimpleMigrationStep } /** - * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` + * @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` */ - public function preSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void + public function preSchemaChange(IOutput $output, \Closure $schemaClosure, array $options): void { } /** - * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` + * @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` */ - public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper + public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options): ?ISchemaWrapper { /** @var ISchemaWrapper $schema */ $schema = $schemaClosure(); @@ -76,9 +75,9 @@ class Version400503Date20221101033144 extends SimpleMigrationStep } /** - * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` + * @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` */ - public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void + public function postSchemaChange(IOutput $output, \Closure $schemaClosure, array $options): void { // Update oc_memories to set objectid equal to fileid for all rows $this->dbc->executeQuery('UPDATE *PREFIX*memories SET objectid = CAST(fileid AS CHAR(64))');