1 | <?php |
||
24 | class Give_DB_Payment_Meta extends Give_DB_Meta { |
||
25 | /** |
||
26 | * Post type |
||
27 | * |
||
28 | * @since 2.0 |
||
29 | * @access protected |
||
30 | * @var bool |
||
31 | */ |
||
32 | protected $post_type = 'give_payment'; |
||
33 | |||
34 | /** |
||
35 | * Meta type |
||
36 | * |
||
37 | * @since 2.0 |
||
38 | * @access protected |
||
39 | * @var bool |
||
40 | */ |
||
41 | protected $meta_type = 'donation'; |
||
42 | |||
43 | /** |
||
44 | * Give_DB_Payment_Meta constructor. |
||
45 | * |
||
46 | * @access public |
||
47 | * @since 2.0 |
||
48 | */ |
||
49 | public function __construct() { |
||
65 | |||
66 | /** |
||
67 | * Get table columns and data types. |
||
68 | * |
||
69 | * @access public |
||
70 | * @since 2.0 |
||
71 | * |
||
72 | * @return array Columns and formats. |
||
73 | */ |
||
74 | public function get_columns() { |
||
82 | |||
83 | /** |
||
84 | * check if custom meta table enabled or not. |
||
85 | * |
||
86 | * @since 2.0 |
||
87 | * @access protected |
||
88 | * @return bool |
||
89 | */ |
||
90 | protected function is_custom_meta_table_active() { |
||
93 | } |
||
94 |
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.