Skip to content

Commit 0122acb

Browse files
committed
Ran grunt
1 parent d32a66a commit 0122acb

File tree

3 files changed

+21
-22
lines changed

3 files changed

+21
-22
lines changed

classes/Visualizer/Gutenberg/Block.php

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function enqueue_gutenberg_scripts() {
7777
} else {
7878
$version = $this->version;
7979
}
80-
80+
8181
// Enqueue the bundled block JS file
8282
wp_enqueue_script( 'handsontable', $handsontableJS );
8383
wp_enqueue_script( 'visualizer-gutenberg-block', $blockPath, array( 'wp-api', 'handsontable' ), $version );
@@ -92,9 +92,9 @@ public function enqueue_gutenberg_scripts() {
9292
}
9393

9494
$translation_array = array(
95-
'isPro' => $type,
95+
'isPro' => $type,
9696
'proTeaser' => Visualizer_Plugin::PRO_TEASER_URL,
97-
'absurl' => VISUALIZER_ABSURL,
97+
'absurl' => VISUALIZER_ABSURL,
9898
);
9999
wp_localize_script( 'visualizer-gutenberg-block', 'visualizerLocalize', $translation_array );
100100

@@ -213,15 +213,15 @@ public function get_visualizer_data( $post ) {
213213

214214
$schedule = get_post_meta( $post_id, Visualizer_Plugin::CF_CHART_SCHEDULE, true );
215215

216-
if ( ! empty ( $import ) && ! empty ( $schedule ) ) {
216+
if ( ! empty( $import ) && ! empty( $schedule ) ) {
217217
$data['visualizer-chart-url'] = $import;
218218
$data['visualizer-chart-schedule'] = $schedule;
219219
}
220220

221221
if ( VISUALIZER_PRO ) {
222222
$permissions = get_post_meta( $post_id, Visualizer_PRO::CF_PERMISSIONS, true );
223-
224-
if ( ! empty ( $permissions ) ) {
223+
224+
if ( ! empty( $permissions ) ) {
225225
$data['visualizer-permissions'] = $permissions;
226226
}
227227
}
@@ -288,7 +288,6 @@ public function update_chart_data( $data ) {
288288
public function format_chart_data( $data, $series ) {
289289
foreach ( $series as $i => $row ) {
290290
// if no value exists for the seires, then add null
291-
292291
if ( ! isset( $series[ $i ] ) ) {
293292
$series[ $i ] = null;
294293
}
@@ -297,19 +296,19 @@ public function format_chart_data( $data, $series ) {
297296
continue;
298297
}
299298

300-
if ( $row['type'] == 'number' ) {
299+
if ( $row['type'] == 'number' ) {
301300
foreach ( $data as $o => $col ) {
302301
$data[ $o ][ $i ] = ( is_numeric( $col[ $i ] ) ) ? floatval( $col[ $i ] ) : ( is_numeric( str_replace( ',', '', $col[ $i ] ) ) ? floatval( str_replace( ',', '', $col[ $i ] ) ) : null );
303302
}
304303
}
305304

306-
if ( $row['type'] == 'boolean' ) {
305+
if ( $row['type'] == 'boolean' ) {
307306
foreach ( $data as $o => $col ) {
308307
$data[ $o ][ $i ] = ! empty( $col[ $i ] ) ? filter_validate( $col[ $i ], FILTER_VALIDATE_BOOLEAN ) : null;
309308
}
310309
}
311310

312-
if ( $row['type'] == 'timeofday' ) {
311+
if ( $row['type'] == 'timeofday' ) {
313312
foreach ( $data as $o => $col ) {
314313
$date = new DateTime( '1984-03-16T' . $col[ $i ] );
315314
if ( $date ) {
@@ -323,9 +322,9 @@ public function format_chart_data( $data, $series ) {
323322
}
324323
}
325324

326-
if ( $row['type'] == 'string' ) {
325+
if ( $row['type'] == 'string' ) {
327326
foreach ( $data as $o => $col ) {
328-
$data[ $o ][ $i ] = $this->toUTF8( $col[ $i ] );
327+
$data[ $o ][ $i ] = $this->toUTF8( $col[ $i ] );
329328
}
330329
}
331330
}
@@ -385,8 +384,8 @@ public function get_permission_data( $data ) {
385384
if ( ! empty( $users ) ) {
386385
$i = 0;
387386
foreach ( $users as $user ) {
388-
$options[$i]['value'] = $user->ID;
389-
$options[$i]['label'] = $user->display_name;
387+
$options[ $i ]['value'] = $user->ID;
388+
$options[ $i ]['label'] = $user->display_name;
390389
$i++;
391390
}
392391
}
@@ -399,8 +398,8 @@ public function get_permission_data( $data ) {
399398
if ( ! empty( $roles ) ) {
400399
$i = 0;
401400
foreach ( get_editable_roles() as $name => $info ) {
402-
$options[$i]['value'] = $name;
403-
$options[$i]['label'] = $name;
401+
$options[ $i ]['value'] = $name;
402+
$options[ $i ]['label'] = $name;
404403
$i++;
405404
}
406405
}

classes/Visualizer/Render/Page/Data.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ private function getPermissionsLink( $id ) {
287287
$this->$k = $v;
288288
}
289289
}
290-
?>
290+
?>
291291
<li class="viz-group viz-group-category bottom-fixed sidebar-footer-link" id="vz-chart-permissions">
292292
<h2><span class="dashicons dashicons-admin-users"></span><?php _e( 'Permissions', 'visualizer' ); ?></h2>
293293
<div class="viz-group-header">
@@ -304,13 +304,13 @@ private function getPermissionsLink( $id ) {
304304
),
305305
remove_query_arg( 'tab', $_SERVER['REQUEST_URI'] )
306306
);
307-
?>
307+
?>
308308
" method="post">
309309
<?php $this->permissionsSidebar(); ?>
310310
</form>
311311
</ul>
312312
</li>
313-
<?php
313+
<?php
314314
}
315315

316316
/**

index.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
Author: Themeisle
99
Author URI: http://themeisle.com
1010
License: GPL v2.0 or later
11-
WordPress Available: yes
12-
Requires License: no
13-
Pro Slug: visualizer-pro
11+
WordPress Available: yes
12+
Requires License: no
13+
Pro Slug: visualizer-pro
1414
License URI: http://www.opensource.org/licenses/gpl-license.php
1515
*/
1616

0 commit comments

Comments
 (0)