Skip to content

Commit

Permalink
Updates to release v3.0.4 fixes #118
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-v committed Mar 4, 2022
1 parent 9de9f02 commit b37e19a
Show file tree
Hide file tree
Showing 25 changed files with 370 additions and 188 deletions.
7 changes: 7 additions & 0 deletions CHANGE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Change Log: `yii2-krajee-base`
==============================

## Version 3.0.4

**Date:** 26-Feb-2022

- (enh #118): Correct `substr` function use and add new `strncmp` method.
- Enhance PHP Documentation.

## Version 3.0.3

**Date:** 26-Feb-2022
Expand Down
2 changes: 1 addition & 1 deletion src/AddonTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-krajee-base
* @author Kartik Visweswaran <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2022
* @version 3.0.3
* @version 3.0.4
*/

namespace kartik\base;
Expand Down
2 changes: 1 addition & 1 deletion src/AnimateAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-krajee-base
* @author Kartik Visweswaran <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2022
* @version 3.0.3
* @version 3.0.4
*/

namespace kartik\base;
Expand Down
2 changes: 1 addition & 1 deletion src/AssetBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-krajee-base
* @author Kartik Visweswaran <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2022
* @version 3.0.3
* @version 3.0.4
*/

namespace kartik\base;
Expand Down
2 changes: 1 addition & 1 deletion src/BaseAssetBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-krajee-base
* @author Kartik Visweswaran <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2022
* @version 3.0.3
* @version 3.0.4
*/

namespace kartik\base;
Expand Down
2 changes: 1 addition & 1 deletion src/BootstrapIconsAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-krajee-base
* @author Kartik Visweswaran <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2022
* @version 3.0.3
* @version 3.0.4
*/

namespace kartik\base;
Expand Down
2 changes: 1 addition & 1 deletion src/BootstrapInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-krajee-base
* @author Kartik Visweswaran <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2022
* @version 3.0.3
* @version 3.0.4
*/

namespace kartik\base;
Expand Down
10 changes: 5 additions & 5 deletions src/BootstrapTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-krajee-base
* @author Kartik Visweswaran <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2022
* @version 3.0.3
* @version 3.0.4
*/

namespace kartik\base;
Expand Down Expand Up @@ -205,9 +205,9 @@ trait BootstrapTrait
/**
* @var bool flag to detect whether bootstrap 4.x version is set
*
* This property is deprecated since v3.0.3 and replaced by the more flexible [[_bsVer]] flag.
* This property is deprecated since v3.0.4 and replaced by the more flexible [[_bsVer]] flag.
*
* @deprecated since v3.0.3 and replaced by [[_bsVer]] flag
* @deprecated since v3.0.4 and replaced by [[_bsVer]] flag
*/
protected $_isBs4;

Expand Down Expand Up @@ -332,9 +332,9 @@ public function getBsVer()
/**
* Validate if Bootstrap 4.x version.
*
* This property is deprecated since v3.0.3 and replaced by the [[isBs]] method.
* This property is deprecated since v3.0.4 and replaced by the [[isBs]] method.
*
* @deprecated since v3.0.3 and replaced by the [[isBs]] method
* @deprecated since v3.0.4 and replaced by the [[isBs]] method
*
* @return bool
* @throws Exception
Expand Down
2 changes: 1 addition & 1 deletion src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-krajee-base
* @author Kartik Visweswaran <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2022
* @version 3.0.3
* @version 3.0.4
*/

namespace kartik\base;
Expand Down
2 changes: 1 addition & 1 deletion src/Html5Input.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-krajee-base
* @author Kartik Visweswaran <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2022
* @version 3.0.3
* @version 3.0.4
*/

namespace kartik\base;
Expand Down
2 changes: 1 addition & 1 deletion src/Html5InputAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2022
* @package yii2-krajee-base
* @version 3.0.3
* @version 3.0.4
*/

namespace kartik\base;
Expand Down
6 changes: 3 additions & 3 deletions src/InputWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-krajee-base
* @author Kartik Visweswaran <kartikv2@gmail.com>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2022
* @version 3.0.3
* @version 3.0.4
*/

namespace kartik\base;
Expand Down Expand Up @@ -302,7 +302,7 @@ protected function parseDateFormat($type)
}
if (isset($this->pluginOptions['format'])) {
$format = $this->pluginOptions['format'];
$format = strncmp($format, 'php:', 4) === 0 ? Lib::substr($format, 4) :
$format = Lib::strncmp($format, 'php:', 4) === 0 ? Lib::substr($format, 4) :
FormatConverter::convertDateIcuToPhp($format, $type);
$this->pluginOptions['format'] = static::convertDateFormat($format);
return;
Expand All @@ -312,7 +312,7 @@ protected function parseDateFormat($type)
if (empty($format)) {
throw new InvalidConfigException("Error parsing '{$type}' format.");
}
$format = strncmp($format, 'php:', 4) === 0 ? Lib::substr($format, 4) :
$format = Lib::strncmp($format, 'php:', 4) === 0 ? Lib::substr($format, 4) :
FormatConverter::convertDateIcuToPhp($format, $type);
$this->pluginOptions['format'] = static::convertDateFormat($format);
}
Expand Down
Loading

0 comments on commit b37e19a

Please sign in to comment.