PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.10.8
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.10.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 3.10.4 All 148 releases
← All changes | classes/Visualizer/Source.php +8 -6 4.0.63.10.8 View file →
@@ -108,9 +108,9 @@
108 108 * @abstract
109 109 * @access public
110 110 * @return string The name of source.
111 111 */
112 - abstract public function getSourceName();
112 + public abstract function getSourceName();
113 113
114 114 /**
115 115 * Fetches information from source, parses it and builds series and data arrays.
116 116 *
@@ -118,9 +118,9 @@
118 118 *
119 119 * @abstract
120 120 * @access public
121 121 */
122 - abstract public function fetch();
122 + public abstract function fetch();
123 123
124 124 /**
125 125 * Returns series parsed from source.
126 126 *
@@ -262,9 +262,9 @@
262 262 * @param string $datum The data to convert.
263 263 *
264 264 * @return string The converted data.
265 265 */
266 - final protected function toUTF8( $datum ) {
266 + protected final function toUTF8( $datum ) {
267 267 if ( ! function_exists( 'mb_detect_encoding' ) || mb_detect_encoding( $datum ) !== 'ASCII' ) {
268 268 $datum = \ForceUTF8\Encoding::toUTF8( $datum );
269 269 }
270 270 return $datum;
@@ -279,9 +279,9 @@
279 279 * @param array $data The actual array of data.
280 280 *
281 281 * @return array
282 282 */
283 - final public static function get_date_formats_if_exists( $series, $data ) {
283 + public static final function get_date_formats_if_exists( $series, $data ) {
284 284 $date_formats = array();
285 285 $types = array();
286 286 $index = 0;
287 287 foreach ( $series as $column ) {
@@ -287,9 +287,9 @@
287 287 foreach ( $series as $column ) {
288 288 if ( in_array( $column['type'], array( 'date', 'datetime', 'timeofday' ), true ) ) {
289 289 $types[] = array( 'index' => $index, 'type' => $column['type'] );
290 290 }
291 - ++$index;
291 + $index++;
292 292 }
293 293
294 294 if ( ! $types ) {
295 295 return $date_formats;
@@ -428,9 +428,9 @@
428 428 if ( $headers ) {
429 429 foreach ( $headers as $header ) {
430 430 if ( ! empty( $types[ $header ] ) ) {
431 431 $this->_series[] = array(
432 - 'label' => sanitize_text_field( wp_strip_all_tags( $header ) ),
432 + 'label' => $header,
433 433 'type' => $types[ $header ],
434 434 );
435 435 }
436 436 }
@@ -473,5 +473,7 @@
473 473 do_action( 'themeisle_log_event', Visualizer_Plugin::NAME, sprintf( 'Data found for %s = %s', print_r( $this->_args, true ), print_r( $this->_data, true ) ), 'debug', __FILE__, __LINE__ );
474 474
475 475 return true;
476 476 }
477 +
478 +
477 479 }