-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed syntax (backward compatibility for PHP 5.6)
- Loading branch information
Showing
13 changed files
with
15 additions
and
1,770 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* Yii2 Custom array helper | ||
* | ||
* @category Helpers | ||
* @version 1.4.7 | ||
* @version 1.4.8 | ||
* @author Alexsander Vyshnyvetskyy <[email protected]> | ||
* @link https://github.com/wdmg/yii2-helpers | ||
* @copyright Copyright (c) 2019 - 2021 W.D.M.Group, Ukraine | ||
|
@@ -390,7 +390,7 @@ public static function changeKey($array = [], $keySetOrCallBack = []) | |
if (is_callable($keySetOrCallBack)) | ||
$key = call_user_func_array($keySetOrCallBack, [$k, $v]); | ||
else | ||
$key = $keySetOrCallBack[$k] ?? $k; | ||
$key = isset($keySetOrCallBack[$k]) ? $keySetOrCallBack[$k] : $k; | ||
|
||
$output[$key] = is_array($v) ? self::changeKey($v, $keySetOrCallBack) : $v; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* Yii2 Date and Time helper | ||
* | ||
* @category Helpers | ||
* @version 1.4.7 | ||
* @version 1.4.8 | ||
* @author Alexsander Vyshnyvetskyy <[email protected]> | ||
* @link https://github.com/wdmg/yii2-helpers | ||
* @copyright Copyright (c) 2019 - 2021 W.D.M.Group, Ukraine | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* Yii2 Extend DB schema | ||
* | ||
* @category Helpers | ||
* @version 1.4.7 | ||
* @version 1.4.8 | ||
* @author Alexsander Vyshnyvetskyy <[email protected]> | ||
* @link https://github.com/wdmg/yii2-helpers | ||
* @copyright Copyright (c) 2019 - 2021 W.D.M.Group, Ukraine | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* Yii2 Exchange Rates | ||
* | ||
* @category Helpers | ||
* @version 1.4.7 | ||
* @version 1.4.8 | ||
* @author Alexsander Vyshnyvetskyy <[email protected]> | ||
* @link https://github.com/wdmg/yii2-helpers | ||
* @copyright Copyright (c) 2019 - 2021 W.D.M.Group, Ukraine | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* Yii2 Custom file helper | ||
* | ||
* @category Helpers | ||
* @version 1.4.7 | ||
* @version 1.4.8 | ||
* @author Alexsander Vyshnyvetskyy <[email protected]> | ||
* @link https://github.com/wdmg/yii2-helpers | ||
* @copyright Copyright (c) 2019 - 2021 W.D.M.Group, Ukraine | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* Yii2 IP address helper | ||
* | ||
* @category Helpers | ||
* @version 1.4.7 | ||
* @version 1.4.8 | ||
* @author Alexsander Vyshnyvetskyy <[email protected]>, Jonavon Wilcox <[email protected]>, Manuel Kasper <[email protected]> | ||
* @see https://gist.github.com/stibiumz/5e6a92a195c50c875649, https://gist.github.com/jonavon/2028872, http://m0n0.ch/wall, https://www.experts-exchange.com/questions/23903322/Need-PHP-code-for-calculating-subnets.html | ||
* @link https://github.com/wdmg/yii2-helpers | ||
|
Oops, something went wrong.