Skip to content

Commit 1c8ff69

Browse files
grunt
1 parent 3505079 commit 1c8ff69

File tree

6 files changed

+18
-14
lines changed

6 files changed

+18
-14
lines changed

classes/Visualizer/Module/Frontend.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,10 @@ public function renderChart( $atts ) {
173173
$atts = shortcode_atts(
174174
array(
175175
'id' => false, // chart id
176-
'class' => false, // chart class
177-
'series' => false, // series filter hook
178-
'data' => false, // data filter hook
179-
'settings' => false, // data filter hook
176+
'class' => false, // chart class
177+
'series' => false, // series filter hook
178+
'data' => false, // data filter hook
179+
'settings' => false, // data filter hook
180180
), $atts
181181
);
182182

classes/Visualizer/Render/Sidebar.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ protected function _renderAdvancedSettings() {
157157

158158
self::_renderGroupStart( esc_html__( 'Manual Configuration', 'visualizer' ) );
159159
self::_renderSectionStart();
160-
self::_renderSectionDescription( __( 'Configure the graph by providing configuration variables right from the','visualizer' ) . ' <a href="https://developers.google.com/chart/interactive/docs/reference" target="_blank">Google Visualization</a> API.' );
160+
self::_renderSectionDescription( __( 'Configure the graph by providing configuration variables right from the', 'visualizer' ) . ' <a href="https://developers.google.com/chart/interactive/docs/reference" target="_blank">Google Visualization</a> API.' );
161161

162162
$example = '
163163
{
@@ -193,7 +193,7 @@ protected function _renderAdvancedSettings() {
193193
*/
194194
protected function _renderActionSettings() {
195195
global $wp_version;
196-
$disable_actions = version_compare( $wp_version, '4.7.0', '<' );
196+
$disable_actions = version_compare( $wp_version, '4.7.0', '<' );
197197
self::_renderSectionStart( esc_html__( 'Actions', 'visualizer' ), false );
198198
self::_renderCheckboxItem(
199199
esc_html__( 'Print', 'visualizer' ),
@@ -668,7 +668,7 @@ protected static function _renderCheckboxItem( $title, $name, $value, $default,
668668
echo '<div class="viz-section-item">';
669669
echo '<a class="more-info" href="javascript:;">[?]</a>';
670670
echo '<b>', $title, '</b>';
671-
echo '<input type="checkbox" class="control-check" value="', $default, '" name="', $name, '" ', ($value == $default ? 'checked' : ''), ' ', ($disabled ? 'disabled=disabled' : ''), '>';
671+
echo '<input type="checkbox" class="control-check" value="', $default, '" name="', $name, '" ', ( $value == $default ? 'checked' : '' ), ' ', ( $disabled ? 'disabled=disabled' : '' ), '>';
672672
echo '<p class="viz-section-description">', $desc, '</p>';
673673
echo '</div>';
674674
}

classes/Visualizer/Render/Sidebar/Graph.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -426,12 +426,12 @@ protected function _renderHorizontalAxisFormatField() {
426426
'%s<br><br>%s<br><br>%s',
427427
esc_html__( 'Enter custom format pattern to apply to horizontal axis labels.', 'visualizer' ),
428428
sprintf(
429-
esc_html__( 'For number axis labels, this is a subset of the decimal formatting %1$sICU pattern set%2$s. For instance, $#,###.## will display values $1,234.56 for value 1234.56. Pay attention that if you use #&#37;&#37; percentage format then your values will be multiplied by 100.','visualizer' ),
429+
esc_html__( 'For number axis labels, this is a subset of the decimal formatting %1$sICU pattern set%2$s. For instance, $#,###.## will display values $1,234.56 for value 1234.56. Pay attention that if you use #&#37;&#37; percentage format then your values will be multiplied by 100.', 'visualizer' ),
430430
'<a href="http://icu-project.org/apiref/icu4c/classDecimalFormat.html#_details" target="_blank">',
431431
'</a>'
432432
),
433433
sprintf(
434-
esc_html__( 'For date axis labels, this is a subset of the date formatting %1$sICU date and time format%2$s.','visualizer' ),
434+
esc_html__( 'For date axis labels, this is a subset of the date formatting %1$sICU date and time format%2$s.', 'visualizer' ),
435435
'<a href="http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax" target="_blank">',
436436
'</a>'
437437
)
@@ -455,12 +455,12 @@ protected function _renderVerticalAxisFormatField() {
455455
'%s<br><br>%s<br><br>%s',
456456
esc_html__( 'Enter custom format pattern to apply to vertical axis labels.', 'visualizer' ),
457457
sprintf(
458-
esc_html__( 'For number axis labels, this is a subset of the decimal formatting %1$sICU pattern set%2$s. For instance, $#,###.## will display values $1,234.56 for value 1234.56. Pay attention that if you use #&#37;&#37; percentage format then your values will be multiplied by 100.','visualizer' ),
458+
esc_html__( 'For number axis labels, this is a subset of the decimal formatting %1$sICU pattern set%2$s. For instance, $#,###.## will display values $1,234.56 for value 1234.56. Pay attention that if you use #&#37;&#37; percentage format then your values will be multiplied by 100.', 'visualizer' ),
459459
'<a href="http://icu-project.org/apiref/icu4c/classDecimalFormat.html#_details" target="_blank">',
460460
'</a>'
461461
),
462462
sprintf(
463-
esc_html__( 'For date axis labels, this is a subset of the date formatting %1$sICU date and time format%2$s.','visualizer' ),
463+
esc_html__( 'For date axis labels, this is a subset of the date formatting %1$sICU date and time format%2$s.', 'visualizer' ),
464464
'<a href="http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax" target="_blank">',
465465
'</a>'
466466
)

classes/Visualizer/Render/Sidebar/Type/Geo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ protected function _renderMapSettings() {
7373

7474
self::_renderSectionStart( esc_html__( 'Region', 'visualizer' ), false );
7575
self::_renderSectionDescription(
76-
esc_html__( 'Configure the region area to display on the map. (Surrounding areas will be displayed as well.) Can be one of the following:' , 'visualizer' ) .
76+
esc_html__( 'Configure the region area to display on the map. (Surrounding areas will be displayed as well.) Can be one of the following:', 'visualizer' ) .
7777
'<ul>' .
7878
'<li>' . esc_html__( "'world' - A map of the entire world.", 'visualizer' ) . '</li>' .
7979
'<li>' . sprintf( esc_html__( "A continent or a sub-continent, specified by its %s code, e.g., '011' for Western Africa.", 'visualizer' ), '<a href="https://google-developers.appspot.com/chart/interactive/docs/gallery/geochart#Continent_Hierarchy" target="_blank">3-digit</a>' ) . '</li>' .

classes/Visualizer/Render/Sidebar/Type/Pie.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ protected function _renderPieSettings() {
6565
'%s<br><br>%s<br><br>%s',
6666
esc_html__( 'Enter custom format pattern to apply to horizontal axis labels.', 'visualizer' ),
6767
sprintf(
68-
esc_html__( 'For number axis labels, this is a subset of the decimal formatting %1$sICU pattern set%2$s. For instance, $#,###.## will display values $1,234.56 for value 1234.56. Pay attention that if you use #&#37;&#37; percentage format then your values will be multiplied by 100.','visualizer' ),
68+
esc_html__( 'For number axis labels, this is a subset of the decimal formatting %1$sICU pattern set%2$s. For instance, $#,###.## will display values $1,234.56 for value 1234.56. Pay attention that if you use #&#37;&#37; percentage format then your values will be multiplied by 100.', 'visualizer' ),
6969
'<a href="http://icu-project.org/apiref/icu4c/classDecimalFormat.html#_details" target="_blank">',
7070
'</a>'
7171
),
7272
sprintf(
73-
esc_html__( 'For date axis labels, this is a subset of the date formatting %1$sICU date and time format%2$s.','visualizer' ),
73+
esc_html__( 'For date axis labels, this is a subset of the date formatting %1$sICU date and time format%2$s.', 'visualizer' ),
7474
'<a href="http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax" target="_blank">',
7575
'</a>'
7676
)

phpcs.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
<exclude name="Squiz.Commenting.FileComment.SpacingAfterComment" />
1212
<exclude name="Generic.Files.LowercasedFilename" />
1313
<exclude name="Generic.NamingConventions.UpperCaseConstantName" />
14+
<exclude name="Generic.Formatting.MultipleStatementAlignment.IncorrectWarning" />
15+
<exclude name="Generic.Formatting.MultipleStatementAlignment.NotSameWarning" />
1416
<exclude name="Squiz.Commenting.FunctionComment.MissingParamTag" />
1517
<exclude name="Squiz.Commenting.InlineComment.InvalidEndChar" />
1618
<exclude name="Squiz.Commenting.InlineComment.NotCapital" />
@@ -22,9 +24,11 @@
2224
<exclude name="WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid" />
2325
<exclude name="WordPress.NamingConventions.ValidVariableName.MemberNotSnakeCase" />
2426
<exclude name="WordPress.NamingConventions.ValidVariableName.NotSnakeCaseMemberVar" />
27+
<exclude name="WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned" />
2528
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
2629
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
2730
<exclude name="WordPress.Arrays.ArrayDeclarationSpacing" />
31+
<exclude name="WordPress.WhiteSpace.PrecisionAlignment.Found" />
2832
<exclude name="Squiz.PHP.CommentedOutCode" />
2933
<exclude name="WordPress.WP.I18n.MissingTranslatorsComment" />
3034
</rule>

0 commit comments

Comments
 (0)