PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.2.1
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.2.1
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 All 149 releases
← All changes | classes/Visualizer/Gutenberg/Block.php +5 -5 3.1.33.2.1 View file →
@@ -45,9 +45,9 @@
45 45 /**
46 46 * Returns an instance of this class.
47 47 */
48 48 public static function get_instance() {
49 - if ( null == self::$instance ) {
49 + if ( null === self::$instance ) {
50 50 self::$instance = new Visualizer_Gutenberg_Block();
51 51 }
52 52 return self::$instance;
53 53 }
@@ -296,21 +296,21 @@
296 296 if ( is_null( $series[ $i ] ) ) {
297 297 continue;
298 298 }
299 299
300 - if ( $row['type'] == 'number' ) {
300 + if ( $row['type'] === 'number' ) {
301 301 foreach ( $data as $o => $col ) {
302 302 $data[ $o ][ $i ] = ( is_numeric( $col[ $i ] ) ) ? floatval( $col[ $i ] ) : ( is_numeric( str_replace( ',', '', $col[ $i ] ) ) ? floatval( str_replace( ',', '', $col[ $i ] ) ) : null );
303 303 }
304 304 }
305 305
306 - if ( $row['type'] == 'boolean' ) {
306 + if ( $row['type'] === 'boolean' ) {
307 307 foreach ( $data as $o => $col ) {
308 308 $data[ $o ][ $i ] = ! empty( $col[ $i ] ) ? filter_validate( $col[ $i ], FILTER_VALIDATE_BOOLEAN ) : null;
309 309 }
310 310 }
311 311
312 - if ( $row['type'] == 'timeofday' ) {
312 + if ( $row['type'] === 'timeofday' ) {
313 313 foreach ( $data as $o => $col ) {
314 314 $date = new DateTime( '1984-03-16T' . $col[ $i ] );
315 315 if ( $date ) {
316 316 $data[ $o ][ $i ] = array(
@@ -322,9 +322,9 @@
322 322 }
323 323 }
324 324 }
325 325
326 - if ( $row['type'] == 'string' ) {
326 + if ( $row['type'] === 'string' ) {
327 327 foreach ( $data as $o => $col ) {
328 328 $data[ $o ][ $i ] = $this->toUTF8( $col[ $i ] );
329 329 }
330 330 }