Skip to content

Commit f90ac05

Browse files
committed
code formatting and removing a rule for code-tests
1 parent 5ec1ce0 commit f90ac05

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

multiloquent-base.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ function multiloquent_category_list_as_hierarchy( $cat = '0' ) {
485485
// Output the markup for each tag found for each character.
486486
// in here I need to recurse down
487487
$old_tile_colour = $this->multiloquent_get_random_blue_class();
488-
foreach ((array)$tags as $tag) {
488+
foreach ((array) $tags as $tag) {
489489
// set the old colour so I can re-set it at the bottom
490490
$new_tile_colour = $this->multiloquent_get_random_solid_class($tag->slug);
491491
// fetch the new colour, if the returned string matches the slug, then set the tile_colour to it,
@@ -681,7 +681,7 @@ function multiloquent_render_the_archive( $colour ) {
681681
global $post;
682682
$thumbnail_id = get_the_ID();
683683
$slider_image = wp_get_attachment_image_src(get_post_thumbnail_id($thumbnail_id), 'single-post-thumbnail');
684-
if (!empty($slider_image)) {
684+
if ( ! empty($slider_image)) {
685685
$the_image = $slider_image[0];
686686
// $width = $slider_image[1];
687687
// $height = $slider_image[2];
@@ -701,7 +701,7 @@ function multiloquent_render_the_archive( $colour ) {
701701
echo $this->multiloquent_post_title();
702702
?>
703703
</a>
704-
</span>
704+
</span>¬
705705

706706
<p>
707707
<?php echo $this->multiloquent_render_tags($post); ?>

ruleset.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
<exclude name="Squiz.Commenting.FunctionComment.MissingParamComment"/>
2828
<exclude name="Squiz.WhiteSpace.SuperfluousWhitespace.EndLine"/>
2929
<exclude name="Generic.Commenting.DocComment.SpacingBeforeTags"/>
30-
31-
32-
30+
<exclude name="WordPress.VIP.RestrictedFunctions.get_category_by_slug"/>
3331
</rule>
3432
</ruleset>

search.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* search results page
1111
*/
1212

13-
if (empty($_REQUEST['search']) || !wp_verify_nonce(sanitize_text_field(wp_unslash($_REQUEST['search'])), 'search')) {
13+
if (empty($_REQUEST['search']) || ! wp_verify_nonce(sanitize_text_field(wp_unslash($_REQUEST['search'])), 'search')) {
1414
// 404 ?
1515
get_header();
1616
echo '<div class="container post"> ';

template-tag-index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
if ($tags) {
4141
$html .= '<ul class="thumbnails row">';
4242
$first_colour = $multiloquent->multiloquent_get_random_solid_class($tag->slug);
43-
foreach ((array)$tags as $tag) {
43+
foreach ((array) $tags as $tag) {
4444
$tag_link = get_tag_link($tag->term_id);
4545
$second_colour = $multiloquent->multiloquent_get_random_blue_class($tag->slug);
4646
if ($tag->slug == $second_colour) {

0 commit comments

Comments
 (0)