@@ -1,13 +1,13 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Misc Functions |
|
4 | - * |
|
5 | - * @package Give |
|
6 | - * @subpackage Functions |
|
7 | - * @copyright Copyright (c) 2016, WordImpress |
|
8 | - * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
|
9 | - * @since 1.0 |
|
10 | - */ |
|
3 | + * Misc Functions |
|
4 | + * |
|
5 | + * @package Give |
|
6 | + * @subpackage Functions |
|
7 | + * @copyright Copyright (c) 2016, WordImpress |
|
8 | + * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
|
9 | + * @since 1.0 |
|
10 | + */ |
|
11 | 11 | |
12 | 12 | // Exit if accessed directly |
13 | 13 | if ( ! defined( 'ABSPATH' ) ) { |
@@ -770,10 +770,10 @@ discard block |
||
770 | 770 | } |
771 | 771 | |
772 | 772 | if ( ! is_int( $params[1] ) |
773 | - && ! is_float( $params[1] ) |
|
774 | - && ! is_string( $params[1] ) |
|
775 | - && $params[1] !== null |
|
776 | - && ! ( is_object( $params[1] ) && method_exists( $params[1], '__toString' ) ) |
|
773 | + && ! is_float( $params[1] ) |
|
774 | + && ! is_string( $params[1] ) |
|
775 | + && $params[1] !== null |
|
776 | + && ! ( is_object( $params[1] ) && method_exists( $params[1], '__toString' ) ) |
|
777 | 777 | ) { |
778 | 778 | trigger_error( 'array_column(): The column key should be either a string or an integer', E_USER_WARNING ); |
779 | 779 | |
@@ -781,10 +781,10 @@ discard block |
||
781 | 781 | } |
782 | 782 | |
783 | 783 | if ( isset( $params[2] ) |
784 | - && ! is_int( $params[2] ) |
|
785 | - && ! is_float( $params[2] ) |
|
786 | - && ! is_string( $params[2] ) |
|
787 | - && ! ( is_object( $params[2] ) && method_exists( $params[2], '__toString' ) ) |
|
784 | + && ! is_int( $params[2] ) |
|
785 | + && ! is_float( $params[2] ) |
|
786 | + && ! is_string( $params[2] ) |
|
787 | + && ! ( is_object( $params[2] ) && method_exists( $params[2], '__toString' ) ) |
|
788 | 788 | ) { |
789 | 789 | trigger_error( 'array_column(): The index key should be either a string or an integer', E_USER_WARNING ); |
790 | 790 |