Skip to content

Commit 2828b61

Browse files
committed
property code style extensions
1 parent e38c8c4 commit 2828b61

File tree

11 files changed

+14
-6
lines changed

11 files changed

+14
-6
lines changed

CodeFile.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ class CodeFile extends Object
5454
*/
5555
public $operation;
5656

57+
5758
/**
5859
* Constructor.
5960
* @param string $path the file path that the new code should be saved to.

Generator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ abstract class Generator extends Model
5858
*/
5959
public $messageCategory = 'app';
6060

61+
6162
/**
6263
* @return string name of the code generator
6364
*/

components/ActiveField.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class ActiveField extends \yii\widgets\ActiveField
2121
*/
2222
public $model;
2323

24+
2425
/**
2526
* @inheritdoc
2627
*/

controllers/DefaultController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class DefaultController extends Controller
2727
*/
2828
public $generator;
2929

30+
3031
public function actionIndex()
3132
{
3233
$this->layout = 'main';

generators/controller/Generator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ class Generator extends \yii\gii\Generator
4646
*/
4747
public $actions = 'index';
4848

49+
4950
/**
5051
* @inheritdoc
5152
*/

generators/crud/Generator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class Generator extends \yii\gii\Generator
3838
public $indexWidgetType = 'grid';
3939
public $searchModelClass = '';
4040

41+
4142
/**
4243
* @inheritdoc
4344
*/

generators/extension/Generator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class Generator extends \yii\gii\Generator
3434
public $authorName;
3535
public $authorEmail;
3636

37+
3738
/**
3839
* @inheritdoc
3940
*/

generators/extension/default/AutoloadExample.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
<?php
2-
/**
3-
* This is just an example.
4-
*/
5-
echo "<?php\n";
6-
?>
1+
<?= "<?php\n" ?>
72

83
namespace <?= substr($generator->namespace, 0, -1) ?>;
94

5+
/**
6+
* This is just an example.
7+
*/
108
class AutoloadExample extends \yii\base\Widget
119
{
1210
public function run()

generators/form/Generator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class Generator extends \yii\gii\Generator
2626
public $viewName;
2727
public $scenarioName;
2828

29+
2930
/**
3031
* @inheritdoc
3132
*/

generators/model/Generator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class Generator extends \yii\gii\Generator
3232
public $generateLabelsFromComments = false;
3333
public $useTablePrefix = false;
3434

35+
3536
/**
3637
* @inheritdoc
3738
*/

generators/module/Generator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class Generator extends \yii\gii\Generator
2626
public $moduleClass;
2727
public $moduleID;
2828

29+
2930
/**
3031
* @inheritdoc
3132
*/

0 commit comments

Comments
 (0)