Skip to content

Commit 2c9b4ac

Browse files
Moved declare(strict_types=1) before the license docblock and standardized PHPDoc headers across framework and test files. (#20815)
1 parent 0dfe7d6 commit 2c9b4ac

100 files changed

Lines changed: 245 additions & 253 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

framework/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Yii Framework 2 Change Log
3838
- Bug: Fix `ActiveField::generateLabel()` to strip `label`/`for` attributes for custom tags and preserve prior label in `radio()`/`checkbox()` (terabytesoftw)
3939
- Bug: Fix `clientScript` not being instantiated in validators when a custom array config is set and `useJquery` is `false` (terabytesoftw)
4040
- Bug: Fix `CompareValidator` client-side closure `compareValue` resolution to pass `($model, $attribute)` and avoid mutating validator state (terabytesoftw)
41+
- Bug: Moved `declare(strict_types=1)` before the license docblock and standardized PHPDoc headers across framework and test files (terabytesoftw)
4142

4243

4344
2.0.55 under development

framework/caching/ApcuCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* For more details and usage information on Cache, see the [guide article on caching](guide:caching-overview).
3434
*
3535
* @author Wilmer Arambula <terabytesoftw@gmail.com>
36-
* @since 2.2
36+
* @since 22.0
3737
*/
3838
class ApcuCache extends Cache
3939
{

framework/console/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class Application extends \yii\base\Application
8484
*
8585
* When enabled, jQuery assets will be registered for validators and widgets that require it.
8686
*
87-
* @since 2.2.0
87+
* @since 22.0
8888
*/
8989
public bool $useJquery = false;
9090

framework/jquery/grid/CheckboxColumnJqueryClientScript.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
/**
46
* @link https://www.yiiframework.com/
57
* @copyright Copyright (c) 2008 Yii Software LLC
68
* @license https://www.yiiframework.com/license/
79
*/
810

9-
declare(strict_types=1);
10-
1111
namespace yii\jquery\grid;
1212

1313
use yii\base\BaseObject;
@@ -17,7 +17,7 @@
1717
use yii\web\View;
1818

1919
/**
20-
* CheckboxColumnJqueryClientScript provides client-side script registration for gridview checkbox columns.
20+
* Provides client-side script registration for gridview checkbox columns.
2121
*
2222
* This class implements {@see ClientScriptInterface} to supply client-side options and register the corresponding
2323
* JavaScript code for checkbox selection columns in Yii2 gridviews using jQuery.
@@ -26,7 +26,7 @@
2626
* @implements ClientScriptInterface<T>
2727
*
2828
* @author Wilmer Arambula <terabytesoftw@gmail.com>
29-
* @since 2.2.0
29+
* @since 22.0
3030
*/
3131
class CheckboxColumnJqueryClientScript implements ClientScriptInterface
3232
{

framework/jquery/grid/GridViewJqueryClientScript.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
/**
46
* @link https://www.yiiframework.com/
57
* @copyright Copyright (c) 2008 Yii Software LLC
68
* @license https://www.yiiframework.com/license/
79
*/
810

9-
declare(strict_types=1);
10-
1111
namespace yii\jquery\grid;
1212

1313
use Yii;
@@ -22,7 +22,7 @@
2222
use function array_merge;
2323

2424
/**
25-
* GridViewJqueryClientScript provides client-side script registration for GridView widgets using jQuery.
25+
* Provides client-side script registration for GridView widgets using jQuery.
2626
*
2727
* This class implements {@see ClientScriptInterface} to supply client-side options and register the corresponding
2828
* JavaScript code for GridView widgets in Yii2 applications using jQuery.
@@ -31,7 +31,7 @@
3131
* @implements ClientScriptInterface<T>
3232
*
3333
* @author Wilmer Arambula <terabytesoftw@gmail.com>
34-
* @since 2.2.0
34+
* @since 22.0
3535
*/
3636
class GridViewJqueryClientScript implements ClientScriptInterface
3737
{

framework/jquery/validators/BooleanValidatorJqueryClientScript.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
/**
46
* @link https://www.yiiframework.com/
57
* @copyright Copyright (c) 2008 Yii Software LLC
68
* @license https://www.yiiframework.com/license/
79
*/
810

9-
declare(strict_types=1);
10-
1111
namespace yii\jquery\validators;
1212

1313
use yii\base\Model;
@@ -19,7 +19,7 @@
1919
use yii\web\View;
2020

2121
/**
22-
* BooleanValidatorJqueryClientScript provides client-side validation script generation for boolean attributes.
22+
* Provides client-side validation script generation for boolean attributes.
2323
*
2424
* This class implements {@see ClientValidatorScriptInterface} to supply client-side validation options and register the
2525
* corresponding JavaScript code for boolean validation in Yii2 forms using jQuery.
@@ -28,7 +28,7 @@
2828
* @implements ClientValidatorScriptInterface<T>
2929
*
3030
* @author Wilmer Arambula <terabytesoftw@gmail.com>
31-
* @since 2.2.0
31+
* @since 22.0
3232
*/
3333
class BooleanValidatorJqueryClientScript implements ClientValidatorScriptInterface
3434
{

framework/jquery/validators/CompareValidatorJqueryClientScript.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* @implements ClientValidatorScriptInterface<T>
3333
*
3434
* @author Wilmer Arambula <terabytesoftw@gmail.com>
35-
* @since 2.2
35+
* @since 22.0
3636
*/
3737
class CompareValidatorJqueryClientScript implements ClientValidatorScriptInterface
3838
{

framework/jquery/validators/EmailValidatorJqueryClientScript.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
/**
46
* @link https://www.yiiframework.com/
57
* @copyright Copyright (c) 2008 Yii Software LLC
68
* @license https://www.yiiframework.com/license/
79
*/
810

9-
declare(strict_types=1);
10-
1111
namespace yii\jquery\validators;
1212

1313
use yii\base\Model;
@@ -21,7 +21,7 @@
2121
use yii\web\View;
2222

2323
/**
24-
* EmailValidatorJqueryClientScript provides client-side validation script generation for email attributes.
24+
* Provides client-side validation script generation for email attributes.
2525
*
2626
* This class implements {@see ClientValidatorScriptInterface} to supply client-side validation options and register the
2727
* corresponding JavaScript code for email validation in Yii2 forms using jQuery.
@@ -30,7 +30,7 @@
3030
* @implements ClientValidatorScriptInterface<T>
3131
*
3232
* @author Wilmer Arambula <terabytesoftw@gmail.com>
33-
* @since 2.2.0
33+
* @since 22.0
3434
*/
3535
class EmailValidatorJqueryClientScript implements ClientValidatorScriptInterface
3636
{

framework/jquery/validators/FileValidatorJqueryClientScript.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
/**
46
* @link https://www.yiiframework.com/
57
* @copyright Copyright (c) 2008 Yii Software LLC
68
* @license https://www.yiiframework.com/license/
79
*/
810

9-
declare(strict_types=1);
10-
1111
namespace yii\jquery\validators;
1212

1313
use Yii;
@@ -23,7 +23,7 @@
2323
use yii\web\View;
2424

2525
/**
26-
* FileValidatorJqueryClientScript provides client-side validation script generation for file attributes.
26+
* Provides client-side validation script generation for file attributes.
2727
*
2828
* This class implements {@see ClientValidatorScriptInterface} to supply client-side validation options and register the
2929
* corresponding JavaScript code for file validation in Yii2 forms using jQuery.
@@ -32,7 +32,7 @@
3232
* @implements ClientValidatorScriptInterface<T>
3333
*
3434
* @author Wilmer Arambula <terabytesoftw@gmail.com>
35-
* @since 2.2.0
35+
* @since 22.0
3636
*/
3737
class FileValidatorJqueryClientScript implements ClientValidatorScriptInterface
3838
{

framework/jquery/validators/ImageValidatorJqueryClientScript.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
/**
46
* @link https://www.yiiframework.com/
57
* @copyright Copyright (c) 2008 Yii Software LLC
68
* @license https://www.yiiframework.com/license/
79
*/
810

9-
declare(strict_types=1);
10-
1111
namespace yii\jquery\validators;
1212

1313
use yii\base\Model;
1414
use yii\validators\ImageValidator;
1515
use yii\validators\Validator;
1616

1717
/**
18-
* ImageValidatorJqueryClientScript provides client-side validation script generation for image attributes.
18+
* Provides client-side validation script generation for image attributes.
1919
*
2020
* This class implements {@see ClientValidatorScriptInterface} to supply client-side validation options and register the
2121
* corresponding JavaScript code for image validation in Yii2 forms using jQuery.
2222
*
2323
* @extends FileValidatorJqueryClientScript<ImageValidator>
2424
*
2525
* @author Wilmer Arambula <terabytesoftw@gmail.com>
26-
* @since 2.2.0
26+
* @since 22.0
2727
*/
2828
class ImageValidatorJqueryClientScript extends FileValidatorJqueryClientScript
2929
{

0 commit comments

Comments
 (0)