Skip to content

Commit

Permalink
Adding some exclude rules for capital letters in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
adeojonathan committed May 24, 2015
1 parent 5a63889 commit b607ed1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions advert.php
@@ -1,11 +1,11 @@
<?php
/**
* snippet to display adverts
* Snippet to display adverts
* @package multiloquent\template_parts
*/

/**
* advert template part
* Advert template part
*
* @package multiloquent\template_parts
*/
Expand Down
11 changes: 6 additions & 5 deletions comments.php
@@ -1,15 +1,16 @@
<?php
/**
* comment form
*/
* Comment form
* @package multiloquent\template_parts
*
* /
/**
* comment template part.
* Comment template part.
* this is a direct lift of the comments from shoestrap;
* I personally use disqus for my comments, but this comment system was already done :D
* http://shoestrap.org/
*
* @package multiloquent\template_parts
*/
if (post_password_required()) {
return;
Expand Down Expand Up @@ -73,7 +74,7 @@
<?php
} else {
$comments_args = array(
// redefine your own textarea (the comment body)
// Redefine your own textarea (the comment body)
'comment_field' => '<p class="comment-form-comment"><label for="comment">Comment</label><br /><textarea class="form-control" id="comment" name="comment" aria-required="true"></textarea></p>'
);
comment_form($comments_args);
Expand Down
2 changes: 2 additions & 0 deletions ruleset.xml
Expand Up @@ -17,5 +17,7 @@
<exclude name="PEAR.Functions.FunctionCallSignature.Indent"/>
<exclude name="PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket"/>
<exclude name="PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket"/>
<exclude name="Generic.Commenting.DocComment.ShortNotCapital"/>
<exclude name="Squiz.Commenting.InlineComment.NotCapital"/>
</rule>
</ruleset>

0 comments on commit b607ed1

Please sign in to comment.