Skip to content

Commit b6c527e

Browse files
committed
1011: Updated docblock for code generator and testing files
1 parent c5a782c commit b6c527e

File tree

19 files changed

+23
-19
lines changed

19 files changed

+23
-19
lines changed

resources/fileTemplates/internal/Magento CLI Command Class.php.ft

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use Symfony\Component\Console\Output\OutputInterface;
1212
class ${NAME} extends Command
1313
{
1414
/**
15-
* Initialization of the command
15+
* Initialization of the command.
1616
*/
1717
protected function configure()
1818
{
@@ -22,7 +22,7 @@ class ${NAME} extends Command
2222
}
2323

2424
/**
25-
* CLI command description
25+
* CLI command description.
2626
*
2727
* @param InputInterface $input
2828
* @param OutputInterface $output

resources/fileTemplates/internal/Magento Collection Class.php.ft

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class ${NAME}#if (${EXTENDS}) extends ${EXTENDS}#end#if (${IMPLEMENTS}) implemen
1717
protected $_eventPrefix = '${DB_NAME}_collection';
1818

1919
/**
20-
* Initialize resource model
20+
* Initialize resource model.
2121
*/
2222
protected function _construct()
2323
{

resources/fileTemplates/internal/Magento Data Model.php.ft

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class ${NAME} #if (${EXTENDS})extends ${EXTENDS} #end #if (${IMPLEMENTS} && $has
1919
{
2020
#if (${PROPERTIES} && !$hasInterface)
2121
/**
22-
* String constants for property names
22+
* String constants for property names.
2323
*/
2424
#set ($properties = ${PROPERTIES})
2525
#foreach ($property in $properties.split(","))

resources/fileTemplates/internal/Magento Entity Search Results.php.ft

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class ${CLASS_NAME} extends ${PARENT_CLASS_NAME} implements ${INTERFACE_NAME}
1717
* Set items list.
1818
*
1919
* @param array $items
20+
*
2021
* @return ${INTERFACE_NAME}
2122
*/
2223
public function setItems(array $items): ${INTERFACE_NAME}

resources/fileTemplates/internal/Magento Grid Ui Component Action Column Class.php.ft

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,10 @@ class ${CLASS_NAME} extends ${PARENT_CLASS}
5353
}
5454

5555
/**
56-
* Prepare Data Source
56+
* Prepare Data Source.
5757
*
5858
* @param array $dataSource
59+
*
5960
* @return array
6061
*/
6162
public function prepareDataSource(array $dataSource): array

resources/fileTemplates/internal/Magento Model Class.php.ft

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class ${NAME}#if (${EXTENDS}) extends ${EXTENDS}#end#if (${IMPLEMENTS}) implemen
1717
protected $_eventPrefix = '${DB_NAME}_model';
1818

1919
/**
20-
* Initialize resource
20+
* Initialize resource.
2121
*
2222
* @return void
2323
*/

resources/fileTemplates/internal/Magento Resource Model Class.php.ft

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class ${NAME}#if (${EXTENDS}) extends ${EXTENDS}#end#if (${IMPLEMENTS}) implemen
1717
protected $_eventPrefix = '${DB_NAME}_resource_model';
1818

1919
/**
20-
* Init resource model
20+
* Init resource model.
2121
*/
2222
protected function _construct()
2323
{

resources/fileTemplates/internal/Magento UI Component Custom Data Provider Class.php.ft

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class ${CLASS_NAME} extends ${EXTENDS}
7676
}
7777

7878
/**
79-
* Returns Search result
79+
* Returns Search result.
8080
*
8181
* @return ${SEARCH_RESULT_FACTORY}
8282
*/

testData/actions/generation/generator/CLICommandClassGenerator/generateCLICommandClass/TestCLICommandPHPClass.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
class TestCLICommandPHPClass extends Command
1010
{
1111
/**
12-
* Initialization of the command
12+
* Initialization of the command.
1313
*/
1414
protected function configure()
1515
{
@@ -19,7 +19,7 @@ protected function configure()
1919
}
2020

2121
/**
22-
* CLI command description
22+
* CLI command description.
2323
*
2424
* @param InputInterface $input
2525
* @param OutputInterface $output

testData/actions/generation/generator/DataModelGenerator/generateDataModelWithoutInterface/Sample.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class Sample extends DataObject
88
{
99
/**
10-
* String constants for property names
10+
* String constants for property names.
1111
*/
1212
const ID_PROPERTY = "id_property";
1313
const SAMPLE_PROPERTY = "sample_property";

0 commit comments

Comments
 (0)