Skip to content

Commit d3d8379

Browse files
committed
cs fix
1 parent de2d733 commit d3d8379

File tree

4 files changed

+73
-12
lines changed

4 files changed

+73
-12
lines changed

.gitattributes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Ignore all test and documentation for archive
2+
/.editorconfig export-ignore
3+
/.gitattributes export-ignore
4+
/.gitignore export-ignore
5+
/.php_cs export-ignore

.php_cs

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
3+
$header = <<<EOF
4+
This file is part of the light/yii2-lock-form.
5+
6+
(c) lichunqiang <[email protected]>
7+
8+
This source file is subject to the MIT license that is bundled
9+
with this source code in the file LICENSE.
10+
EOF;
11+
12+
Symfony\CS\Fixer\Contrib\HeaderCommentFixer::setHeader($header);
13+
14+
return Symfony\CS\Config\Config::create()
15+
// use default SYMFONY_LEVEL and extra fixers:
16+
->fixers(array(
17+
'@PSR2',
18+
'header_comment',
19+
'short_array_syntax',
20+
'ordered_use',
21+
'php_unit_construct',
22+
'php_unit_strict',
23+
'phpdoc_order',
24+
// 'strict_param',
25+
'align_double_arrow',
26+
'align_equals'
27+
))
28+
->finder(
29+
Symfony\CS\Finder\DefaultFinder::create()
30+
->exclude('vendor')
31+
->exclude('assets')
32+
->in(__DIR__)
33+
)
34+
;

LockBsFormAsset.php

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,42 @@
1-
<?php namespace light\widgets;
1+
<?php
2+
3+
/*
4+
* This file is part of the light/yii2-lock-form.
5+
*
6+
* (c) lichunqiang <[email protected]>
7+
*
8+
* This source file is subject to the MIT license that is bundled
9+
* with this source code in the file LICENSE.
10+
*/
11+
12+
namespace light\widgets;
213

314
use yii\web\AssetBundle;
415

516
/**
6-
* Asset bundle for the widget
17+
* Asset bundle for the widget.
718
*
819
* Use this bundle when you have install yii2-bootstrap
920
*
10-
* @package light\widgets
1121
* @version 1.0.0
22+
*
1223
* @author lichunqiang <[email protected]>
1324
* @license MIT
1425
*/
1526
class LockBsFormAsset extends AssetBundle
1627
{
1728
/**
18-
* @inheritdoc
29+
* {@inheritdoc}
1930
*/
2031
public $js = ['assets/lock.js'];
2132

2233
/**
23-
* @inheritdoc
34+
* {@inheritdoc}
2435
*/
2536
public $sourcePath = __DIR__;
2637

2738
/**
28-
* @inheritdoc
39+
* {@inheritdoc}
2940
*/
3041
public $depends = [
3142
'yii\web\YiiAsset',

LockFormAsset.php

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,40 @@
1-
<?php namespace light\widgets;
1+
<?php
2+
3+
/*
4+
* This file is part of the light/yii2-lock-form.
5+
*
6+
* (c) lichunqiang <[email protected]>
7+
*
8+
* This source file is subject to the MIT license that is bundled
9+
* with this source code in the file LICENSE.
10+
*/
11+
12+
namespace light\widgets;
213

314
use yii\web\AssetBundle;
415

516
/**
6-
* Asset bundle for the widget
17+
* Asset bundle for the widget.
718
*
8-
* @package light\widgets
919
* @version 1.0.0
20+
*
1021
* @author lichunqiang <[email protected]>
1122
* @license MIT
1223
*/
1324
class LockFormAsset extends AssetBundle
1425
{
1526
/**
16-
* @inheritdoc
27+
* {@inheritdoc}
1728
*/
1829
public $js = ['assets/lock.bootstrap.js'];
1930

2031
/**
21-
* @inheritdoc
32+
* {@inheritdoc}
2233
*/
2334
public $sourcePath = __DIR__;
2435

2536
/**
26-
* @inheritdoc
37+
* {@inheritdoc}
2738
*/
2839
public $depends = [
2940
'yii\web\YiiAsset',

0 commit comments

Comments
 (0)