Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Oct 23, 2023
1 parent ac041f6 commit 3c5776e
Show file tree
Hide file tree
Showing 12 changed files with 29 additions and 17 deletions.
5 changes: 3 additions & 2 deletions src/CodeFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@
/**
* CodeFile represents a code file to be generated.
*
* @property-read string $relativePath The code file path relative to the application base path.
* @property-read string $type The code file extension (e.g. php, txt).
* @property string $relativePath The code file path relative to the application base path.
* @property string $type The code file extension (e.g. php, txt).
*
* @author Qiang Xue <qiang.xue@gmail.com>
*
* @since 2.0
*/
class CodeFile extends BaseObject
Expand Down
9 changes: 5 additions & 4 deletions src/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@
* - [[generate()]]: generates the code based on the current user input and the specified code template files.
* This is the place where main code generation code resides.
*
* @property-read string $name The name of the generator.
* @property-read string $description The detailed description of the generator.
* @property-read string $stickyDataFile The file path that stores the sticky attribute values.
* @property-read string $templatePath The root path of the template files that are currently being used.
* @property string $name The name of the generator.
* @property string $description The detailed description of the generator.
* @property string $stickyDataFile The file path that stores the sticky attribute values.
* @property string $templatePath The root path of the template files that are currently being used.
*
* @author Qiang Xue <qiang.xue@gmail.com>
*
* @since 2.0
*/
abstract class Generator extends Model
Expand Down
1 change: 1 addition & 0 deletions src/GiiAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* This declares the asset files required by Gii.
*
* @author Qiang Xue <qiang.xue@gmail.com>
*
* @since 2.0
*/
class GiiAsset extends AssetBundle
Expand Down
1 change: 1 addition & 0 deletions src/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
* you can then access Gii via URL: `http://localhost/path/to/index.php/gii`
*
* @author Qiang Xue <qiang.xue@gmail.com>
*
* @since 2.0
*/
class Module extends \yii\base\Module implements BootstrapInterface
Expand Down
1 change: 1 addition & 0 deletions src/components/ActiveField.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

/**
* @author Qiang Xue <qiang.xue@gmail.com>
*
* @since 2.0
*/
class ActiveField extends \yii\widgets\ActiveField
Expand Down
1 change: 1 addition & 0 deletions src/components/ActiveForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

/**
* @author Wilmer Arambula <terabytesoftw@gmail.com>
*
* @since 2.2
*/
class ActiveForm extends \yii\widgets\ActiveForm
Expand Down
1 change: 1 addition & 0 deletions src/components/DiffRendererHtmlInline.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* Renders diff to HTML. Output adjusted to be copy-paste friendly.
*
* @author Alexander Makarov <sam@rmcreative.ru>
*
* @since 2.0
*/
class DiffRendererHtmlInline extends \Diff_Renderer_Html_Array
Expand Down
1 change: 1 addition & 0 deletions src/console/GenerateAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

/**
* @author Qiang Xue <qiang.xue@gmail.com>
*
* @since 2.0
*/
class GenerateAction extends \yii\base\Action
Expand Down
1 change: 1 addition & 0 deletions src/console/GenerateController.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
*
* @author Tobias Munk <schmunk@usrbin.de>
* @author Qiang Xue <qiang.xue@gmail.com>
*
* @since 2.0
*/
class GenerateController extends Controller
Expand Down
1 change: 1 addition & 0 deletions src/controllers/DefaultController.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

/**
* @author Qiang Xue <qiang.xue@gmail.com>
*
* @since 2.0
*/
class DefaultController extends Controller
Expand Down
11 changes: 6 additions & 5 deletions src/generators/controller/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@
/**
* This generator will generate a controller and one or a few action view files.
*
* @property-read array $actionIDs An array of action IDs entered by the user.
* @property-read string $controllerFile The controller class file path.
* @property-read string $controllerID The controller ID.
* @property-read string $controllerNamespace The namespace of the controller class.
* @property-read string $controllerSubPath The controller sub path.
* @property array $actionIDs An array of action IDs entered by the user.
* @property string $controllerFile The controller class file path.
* @property string $controllerID The controller ID.
* @property string $controllerNamespace The namespace of the controller class.
* @property string $controllerSubPath The controller sub path.
*
* @author Qiang Xue <qiang.xue@gmail.com>
*
* @since 2.0
*/
class Generator extends \yii\gii\Generator
Expand Down
13 changes: 7 additions & 6 deletions src/generators/crud/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,15 @@
/**
* Generates CRUD controller and views.
*
* @property-read string[] $columnNames Model column/attribute names.
* @property-read string $controllerID The controller ID (without the module ID prefix).
* @property-read string $nameAttribute
* @property-read string[] $searchAttributes Searchable attributes.
* @property-read \yii\db\TableSchema|false $tableSchema
* @property-read string $viewPath The controller view path.
* @property string[] $columnNames Model column/attribute names.
* @property string $controllerID The controller ID (without the module ID prefix).
* @property string $nameAttribute
* @property string[] $searchAttributes Searchable attributes.
* @property false|\yii\db\TableSchema $tableSchema
* @property string $viewPath The controller view path.
*
* @author Qiang Xue <qiang.xue@gmail.com>
*
* @since 2.0
*/
class Generator extends \yii\gii\Generator
Expand Down

0 comments on commit 3c5776e

Please sign in to comment.