From e11edef2a380c4a9da50b27d7e0ff788ebca7fd3 Mon Sep 17 00:00:00 2001 From: Corey Taylor Date: Wed, 1 Apr 2020 01:41:04 -0500 Subject: [PATCH] Fix CS errors --- src/Command/BehaviorCommand.php | 6 +++--- src/Command/CellCommand.php | 6 +++--- src/Command/CommandCommand.php | 6 +++--- src/Command/ComponentCommand.php | 6 +++--- src/Command/EntryCommand.php | 2 +- src/Command/FormCommand.php | 6 +++--- src/Command/HelperCommand.php | 6 +++--- src/Command/MailerCommand.php | 6 +++--- src/Command/MiddlewareCommand.php | 6 +++--- src/Command/ShellCommand.php | 6 +++--- src/Command/ShellHelperCommand.php | 6 +++--- src/Command/TaskCommand.php | 6 +++--- src/Utility/SubsetSchemaCollection.php | 3 +-- src/View/BakeView.php | 1 - src/View/Helper/DocBlockHelper.php | 3 --- tests/Fixture/BakeTemplateAuthorsFixture.php | 1 + tests/TestCase/Command/ControllerAllCommandTest.php | 1 - tests/TestCase/Command/FixtureAllCommandTest.php | 1 - tests/TestCase/Command/FixtureCommandTest.php | 1 - tests/TestCase/Command/TestCommandTest.php | 1 - 20 files changed, 36 insertions(+), 44 deletions(-) diff --git a/src/Command/BehaviorCommand.php b/src/Command/BehaviorCommand.php index e43c8bb48..b34d8cfc1 100644 --- a/src/Command/BehaviorCommand.php +++ b/src/Command/BehaviorCommand.php @@ -29,7 +29,7 @@ class BehaviorCommand extends SimpleBakeCommand public $pathFragment = 'Model/Behavior/'; /** - * {@inheritDoc} + * @inheritDoc */ public function name(): string { @@ -37,7 +37,7 @@ public function name(): string } /** - * {@inheritDoc} + * @inheritDoc */ public function fileName(string $name): string { @@ -45,7 +45,7 @@ public function fileName(string $name): string } /** - * {@inheritDoc} + * @inheritDoc */ public function template(): string { diff --git a/src/Command/CellCommand.php b/src/Command/CellCommand.php index 9bbc62824..22df4a4f6 100644 --- a/src/Command/CellCommand.php +++ b/src/Command/CellCommand.php @@ -34,7 +34,7 @@ class CellCommand extends SimpleBakeCommand public $pathFragment = 'View/Cell/'; /** - * {@inheritDoc} + * @inheritDoc */ public function name(): string { @@ -42,7 +42,7 @@ public function name(): string } /** - * {@inheritDoc} + * @inheritDoc */ public function fileName(string $name): string { @@ -50,7 +50,7 @@ public function fileName(string $name): string } /** - * {@inheritDoc} + * @inheritDoc */ public function template(): string { diff --git a/src/Command/CommandCommand.php b/src/Command/CommandCommand.php index de73a5b62..e981508b8 100644 --- a/src/Command/CommandCommand.php +++ b/src/Command/CommandCommand.php @@ -29,7 +29,7 @@ class CommandCommand extends SimpleBakeCommand public $pathFragment = 'Command/'; /** - * {@inheritDoc} + * @inheritDoc */ public function name(): string { @@ -37,7 +37,7 @@ public function name(): string } /** - * {@inheritDoc} + * @inheritDoc */ public function fileName(string $name): string { @@ -45,7 +45,7 @@ public function fileName(string $name): string } /** - * {@inheritDoc} + * @inheritDoc */ public function template(): string { diff --git a/src/Command/ComponentCommand.php b/src/Command/ComponentCommand.php index c5c5f2a99..299c49cbc 100644 --- a/src/Command/ComponentCommand.php +++ b/src/Command/ComponentCommand.php @@ -29,7 +29,7 @@ class ComponentCommand extends SimpleBakeCommand public $pathFragment = 'Controller/Component/'; /** - * {@inheritDoc} + * @inheritDoc */ public function name(): string { @@ -37,7 +37,7 @@ public function name(): string } /** - * {@inheritDoc} + * @inheritDoc */ public function fileName(string $name): string { @@ -45,7 +45,7 @@ public function fileName(string $name): string } /** - * {@inheritDoc} + * @inheritDoc */ public function template(): string { diff --git a/src/Command/EntryCommand.php b/src/Command/EntryCommand.php index 57b2e3cc4..ee094b722 100644 --- a/src/Command/EntryCommand.php +++ b/src/Command/EntryCommand.php @@ -50,7 +50,7 @@ class EntryCommand extends Command implements CommandCollectionAwareInterface protected $help; /** - * {@inheritDoc} + * @inheritDoc */ public function setCommandCollection(CommandCollection $commands): void { diff --git a/src/Command/FormCommand.php b/src/Command/FormCommand.php index fb84488e1..02f467be9 100644 --- a/src/Command/FormCommand.php +++ b/src/Command/FormCommand.php @@ -29,7 +29,7 @@ class FormCommand extends SimpleBakeCommand public $pathFragment = 'Form/'; /** - * {@inheritDoc} + * @inheritDoc */ public function name(): string { @@ -37,7 +37,7 @@ public function name(): string } /** - * {@inheritDoc} + * @inheritDoc */ public function fileName(string $name): string { @@ -45,7 +45,7 @@ public function fileName(string $name): string } /** - * {@inheritDoc} + * @inheritDoc */ public function template(): string { diff --git a/src/Command/HelperCommand.php b/src/Command/HelperCommand.php index f46225786..d920cd894 100644 --- a/src/Command/HelperCommand.php +++ b/src/Command/HelperCommand.php @@ -29,7 +29,7 @@ class HelperCommand extends SimpleBakeCommand public $pathFragment = 'View/Helper/'; /** - * {@inheritDoc} + * @inheritDoc */ public function name(): string { @@ -37,7 +37,7 @@ public function name(): string } /** - * {@inheritDoc} + * @inheritDoc */ public function fileName(string $name): string { @@ -45,7 +45,7 @@ public function fileName(string $name): string } /** - * {@inheritDoc} + * @inheritDoc */ public function template(): string { diff --git a/src/Command/MailerCommand.php b/src/Command/MailerCommand.php index 05f84d0cf..49e9fa011 100644 --- a/src/Command/MailerCommand.php +++ b/src/Command/MailerCommand.php @@ -32,7 +32,7 @@ class MailerCommand extends SimpleBakeCommand public $pathFragment = 'Mailer/'; /** - * {@inheritDoc} + * @inheritDoc */ public function name(): string { @@ -40,7 +40,7 @@ public function name(): string } /** - * {@inheritDoc} + * @inheritDoc */ public function fileName(string $name): string { @@ -48,7 +48,7 @@ public function fileName(string $name): string } /** - * {@inheritDoc} + * @inheritDoc */ public function template(): string { diff --git a/src/Command/MiddlewareCommand.php b/src/Command/MiddlewareCommand.php index a94d90a8d..4ded7f66d 100644 --- a/src/Command/MiddlewareCommand.php +++ b/src/Command/MiddlewareCommand.php @@ -29,7 +29,7 @@ class MiddlewareCommand extends SimpleBakeCommand public $pathFragment = 'Middleware/'; /** - * {@inheritDoc} + * @inheritDoc */ public function name(): string { @@ -37,7 +37,7 @@ public function name(): string } /** - * {@inheritDoc} + * @inheritDoc */ public function fileName(string $name): string { @@ -45,7 +45,7 @@ public function fileName(string $name): string } /** - * {@inheritDoc} + * @inheritDoc */ public function template(): string { diff --git a/src/Command/ShellCommand.php b/src/Command/ShellCommand.php index a8863143e..1aa0ff5a3 100644 --- a/src/Command/ShellCommand.php +++ b/src/Command/ShellCommand.php @@ -29,7 +29,7 @@ class ShellCommand extends SimpleBakeCommand public $pathFragment = 'Shell/'; /** - * {@inheritDoc} + * @inheritDoc */ public function name(): string { @@ -37,7 +37,7 @@ public function name(): string } /** - * {@inheritDoc} + * @inheritDoc */ public function fileName(string $name): string { @@ -45,7 +45,7 @@ public function fileName(string $name): string } /** - * {@inheritDoc} + * @inheritDoc */ public function template(): string { diff --git a/src/Command/ShellHelperCommand.php b/src/Command/ShellHelperCommand.php index 0b14810e6..0f377f43c 100644 --- a/src/Command/ShellHelperCommand.php +++ b/src/Command/ShellHelperCommand.php @@ -29,7 +29,7 @@ class ShellHelperCommand extends SimpleBakeCommand public $pathFragment = 'Shell/Helper/'; /** - * {@inheritDoc} + * @inheritDoc */ public function name(): string { @@ -37,7 +37,7 @@ public function name(): string } /** - * {@inheritDoc} + * @inheritDoc */ public function fileName(string $name): string { @@ -45,7 +45,7 @@ public function fileName(string $name): string } /** - * {@inheritDoc} + * @inheritDoc */ public function template(): string { diff --git a/src/Command/TaskCommand.php b/src/Command/TaskCommand.php index 7c8408e45..84463550f 100644 --- a/src/Command/TaskCommand.php +++ b/src/Command/TaskCommand.php @@ -29,7 +29,7 @@ class TaskCommand extends SimpleBakeCommand public $pathFragment = 'Shell/Task/'; /** - * {@inheritDoc} + * @inheritDoc */ public function name(): string { @@ -37,7 +37,7 @@ public function name(): string } /** - * {@inheritDoc} + * @inheritDoc */ public function fileName(string $name): string { @@ -45,7 +45,7 @@ public function fileName(string $name): string } /** - * {@inheritDoc} + * @inheritDoc */ public function template(): string { diff --git a/src/Utility/SubsetSchemaCollection.php b/src/Utility/SubsetSchemaCollection.php index 0694e9917..790219442 100644 --- a/src/Utility/SubsetSchemaCollection.php +++ b/src/Utility/SubsetSchemaCollection.php @@ -38,7 +38,6 @@ class SubsetSchemaCollection implements CollectionInterface protected $tables = []; /** - * * @param \Cake\Database\Schema\CollectionInterface $collection The wrapped collection * @param string[] $tables The subset of tables. */ @@ -69,7 +68,7 @@ public function listTables(): array } /** - * {@inheritDoc} + * @inheritDoc */ public function describe(string $name, array $options = []): TableSchemaInterface { diff --git a/src/View/BakeView.php b/src/View/BakeView.php index 355ce9496..24084c2e4 100644 --- a/src/View/BakeView.php +++ b/src/View/BakeView.php @@ -136,7 +136,6 @@ public function render(?string $view = null, $layout = null): string * * @param mixed $subject The object that this event applies to * ($this by default). - * * @return \Cake\Event\EventInterface */ public function dispatchEvent(string $name, $data = null, $subject = null): EventInterface diff --git a/src/View/Helper/DocBlockHelper.php b/src/View/Helper/DocBlockHelper.php index f42ddf74a..a127e3758 100644 --- a/src/View/Helper/DocBlockHelper.php +++ b/src/View/Helper/DocBlockHelper.php @@ -100,7 +100,6 @@ public function associatedEntityTypeToHintType(string $type, Association $associ * ``` * * @see \Bake\Shell\Task\ModelTask::getEntityPropertySchema - * * @param array $propertySchema The property schema to use for generating the type map. * @return array The property DocType map. */ @@ -138,7 +137,6 @@ public function buildEntityPropertyHintTypeMap(array $propertySchema): array * ``` * * @see \Bake\Shell\Task\ModelTask::getEntityPropertySchema - * * @param array $propertySchema The property schema to use for generating the type map. * @return array The property DocType map. */ @@ -170,7 +168,6 @@ public function buildEntityAssociationHintTypeMap(array $propertySchema): array * custom column/database types will be ignored. * * @see \Cake\Database\Type - * * @param string $type The column type. * @return string|null The DocBlock type, or `null` for unsupported column types. */ diff --git a/tests/Fixture/BakeTemplateAuthorsFixture.php b/tests/Fixture/BakeTemplateAuthorsFixture.php index ef293f24c..48170c9ea 100644 --- a/tests/Fixture/BakeTemplateAuthorsFixture.php +++ b/tests/Fixture/BakeTemplateAuthorsFixture.php @@ -24,6 +24,7 @@ class BakeTemplateAuthorsFixture extends TestFixture { /** * Avoid overriding core.authors + * * @var string */ public $table = 'bake_authors'; diff --git a/tests/TestCase/Command/ControllerAllCommandTest.php b/tests/TestCase/Command/ControllerAllCommandTest.php index 5f35c5da0..e3bc5ab32 100644 --- a/tests/TestCase/Command/ControllerAllCommandTest.php +++ b/tests/TestCase/Command/ControllerAllCommandTest.php @@ -25,7 +25,6 @@ /** * ControllerAllCommand test - * */ class ControllerAllCommandTest extends TestCase { diff --git a/tests/TestCase/Command/FixtureAllCommandTest.php b/tests/TestCase/Command/FixtureAllCommandTest.php index 089f5119f..5f5dd27d4 100644 --- a/tests/TestCase/Command/FixtureAllCommandTest.php +++ b/tests/TestCase/Command/FixtureAllCommandTest.php @@ -24,7 +24,6 @@ /** * FixtureAllCommand Test - * */ class FixtureAllCommandTest extends TestCase { diff --git a/tests/TestCase/Command/FixtureCommandTest.php b/tests/TestCase/Command/FixtureCommandTest.php index 46690da08..2580dc427 100644 --- a/tests/TestCase/Command/FixtureCommandTest.php +++ b/tests/TestCase/Command/FixtureCommandTest.php @@ -25,7 +25,6 @@ /** * FixtureCommand Test - * */ class FixtureCommandTest extends TestCase { diff --git a/tests/TestCase/Command/TestCommandTest.php b/tests/TestCase/Command/TestCommandTest.php index 62fe7c2e7..784495d43 100644 --- a/tests/TestCase/Command/TestCommandTest.php +++ b/tests/TestCase/Command/TestCommandTest.php @@ -29,7 +29,6 @@ /** * TestCommandTest class - * */ class TestCommandTest extends TestCase {