Skip to content

Commit 0cc6afe

Browse files
committed
Updated ruleset for phpcs
1 parent 5219872 commit 0cc6afe

File tree

2 files changed

+27
-23
lines changed

2 files changed

+27
-23
lines changed

multiloquent-base.php

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -237,20 +237,20 @@ function multiloquent_register_and_generate_custom_control($setting_type, $setti
237237
'yeti' => 'yeti'
238238
)
239239
));
240-
}
241-
if ($setting_type == 'paralax_featured') {
242-
$wp_customize->add_control($setting_name, array(
243-
'label' => 'Select Featured posts style:',
244-
'section' => $section,
245-
'type' => 'select',
246-
'choices' => array(
247-
'empty' => 'empty',
248-
'default' => 'tags',
249-
'excerpt' => 'excerpt'
250-
)
251-
));
252-
}
253-
}
240+
}
241+
if ($setting_type == 'paralax_featured') {
242+
$wp_customize->add_control($setting_name, array(
243+
'label' => 'Select Featured posts style:',
244+
'section' => $section,
245+
'type' => 'select',
246+
'choices' => array(
247+
'empty' => 'empty',
248+
'default' => 'tags',
249+
'excerpt' => 'excerpt'
250+
)
251+
));
252+
}
253+
}
254254

255255
/**
256256
* return true if there is a bootswatch other than the default one and a value is set against the checked item,
@@ -1071,11 +1071,11 @@ function multiloquent_render_the_archive($colour)
10711071
the_permalink()?>"><?php
10721072
echo $this->multiloquent_post_title()?></a></span>
10731073
<p>
1074-
<?php
1075-
echo $this->multiloquent_render_tags($post);
1076-
?>
1077-
</p>
1078-
</div>
1074+
<?php
1075+
echo $this->multiloquent_render_tags($post);
1076+
?>
1077+
</p>
1078+
</div>
10791079
</div>
10801080
<?php
10811081
}

ruleset.xml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,15 @@
66
<exclude name="Generic.WhiteSpace.ScopeIndent"/>
77
<exclude name="Generic.WhiteSpace.DisallowSpaceIndent"/>
88
<exclude name="Generic.WhiteSpace.DisallowTabIndent"/>
9-
<exclude name="WordPress.WhiteSpace.PhpIndent"/>
10-
<exclude name="WordPress.WhiteSpace.ControlStructureSpacing"/>
11-
<exclude name="WordPress.Functions.FunctionCallSignature"/>
12-
<exclude name="WordPress.XSS.EscapeOutput"/>
9+
<exclude name="WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeCloseParenthesis"/>
10+
<exclude name="WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterOpenParenthesis"/>
1311
<exclude name="WordPress.Arrays.ArrayDeclaration"/>
1412
<exclude name="WordPress.PHP.YodaConditions"/>
13+
<exclude name="WordPress.XSS.EscapeOutput"/>
14+
<exclude name="WordPress.Arrays.ArrayKeySpacingRestrictions"/>
15+
<exclude name="WordPress.WhiteSpace.CastStructureSpacing"/>
16+
<exclude name="PEAR.Functions.FunctionCallSignature.Indent"/>
17+
<exclude name="PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket"/>
18+
<exclude name="PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket"/>
1519
</rule>
1620
</ruleset>

0 commit comments

Comments
 (0)