Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion templates/bake/Command/helper.twig
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
class {{ name }}Helper extends Helper
{
/**
* This method should output content using `$this->_io`.
* This method should output content using `$this->io`.
*
* @param array $args The arguments for the helper.
* @return void
Expand Down
2 changes: 1 addition & 1 deletion templates/bake/Controller/component.twig
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ class {{ name }}Component extends Component
*
* @var array<string, mixed>
*/
protected array $_defaultConfig = [];
protected array $defaultConfig = [];
}
4 changes: 2 additions & 2 deletions templates/bake/Form/form.twig
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class {{ name }}Form extends Form
* @param \Cake\Form\Schema $schema From schema
* @return \Cake\Form\Schema
*/
protected function _buildSchema(Schema $schema): Schema
protected function buildSchema(Schema $schema): Schema
{
return $schema;
}
Expand All @@ -55,7 +55,7 @@ class {{ name }}Form extends Form
* @param array $data Form data.
* @return bool
*/
protected function _execute(array $data): bool
protected function process(array $data): bool
{
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion templates/bake/Model/behavior.twig
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ class {{ name }}Behavior extends Behavior
*
* @var array<string, mixed>
*/
protected array $_defaultConfig = [];
protected array $defaultConfig = [];
}
2 changes: 1 addition & 1 deletion templates/bake/View/helper.twig
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ class {{ name }}Helper extends Helper
*
* @var array<string, mixed>
*/
protected array $_defaultConfig = [];
protected array $defaultConfig = [];
}
2 changes: 2 additions & 0 deletions tests/TestCase/Command/FormCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,7 @@ public function testCommand(): void
$this->assertExitCode(CommandInterface::CODE_SUCCESS);
$this->assertFilesExist($this->generatedFiles);
$this->assertFileContains('class TestForm extends Form', $this->generatedFiles[0]);
$this->assertFileContains('protected function buildSchema(Schema $schema): Schema', $this->generatedFiles[0]);
$this->assertFileContains('protected function process(array $data): bool', $this->generatedFiles[0]);
}
}
2 changes: 1 addition & 1 deletion tests/comparisons/Command/testBakeCommandHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
class ErrorHelper extends Helper
{
/**
* This method should output content using `$this->_io`.
* This method should output content using `$this->io`.
*
* @param array $args The arguments for the helper.
* @return void
Expand Down
2 changes: 1 addition & 1 deletion tests/comparisons/Command/testBakeCommandHelperPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
class ErrorHelper extends Helper
{
/**
* This method should output content using `$this->_io`.
* This method should output content using `$this->io`.
*
* @param array $args The arguments for the helper.
* @return void
Expand Down
2 changes: 1 addition & 1 deletion tests/comparisons/Plugin/Simple/testBake.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ class ExampleBehavior extends Behavior
*
* @var array<string, mixed>
*/
protected array $_defaultConfig = [];
protected array $defaultConfig = [];
}
2 changes: 1 addition & 1 deletion tests/comparisons/Plugin/Simple/testBakePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ class ExampleBehavior extends Behavior
*
* @var array<string, mixed>
*/
protected array $_defaultConfig = [];
protected array $defaultConfig = [];
}
Loading