Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Commit

Permalink
Codesniffer cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
olefredrik committed May 25, 2015
1 parent 62e2bac commit 24c5fcb
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Travis CI (MIT License) configuration file for the Underscores WordPress theme.
# Travis CI (MIT License) configuration file for the FoundationPress WordPress theme.
# @link https://travis-ci.org/

# For use with the FoundationPress WordPress theme.
Expand Down
6 changes: 6 additions & 0 deletions codesniffer.ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,23 @@
<exclude name="Generic.WhiteSpace.ScopeIndent.Incorrect" />
<exclude name="Generic.Files.EndFileNewline.NotFound" />
<exclude name="Generic.Formatting.DisallowMultipleStatements.SameLine" />
<exclude name="Generic.Functions.OpeningFunctionBraceKernighanRitchie.ContentAfterBrace" />
<exclude name="PEAR.Functions.FunctionCallSignature.Indent" />
<exclude name="PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket" />
<exclude name="PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket" />

<exclude name="Squiz.Commenting.FileComment.WrongStyle" />
<exclude name="Squiz.Commenting.BlockComment.NoEmptyLineBefore" />
<exclude name="Squiz.Commenting.FunctionComment.MissingParamTag" />
<exclude name="Squiz.Commenting.VariableComment.WrongStyle" />
<exclude name="Squiz.Commenting.FunctionComment.Missing" />
<exclude name="Squiz.Commenting.FunctionComment.WrongStyle" />
<exclude name="Squiz.Commenting.InlineComment.InvalidEndChar" />

<exclude name="WordPress.XSS.EscapeOutput.UnsafePrintingFunction" />
<exclude name="WordPress.XSS.EscapeOutput.OutputNotEscaped" />
<exclude name="WordPress.Arrays.ArrayDeclaration.NoSpaceAfterOpenParenthesis" />
<exclude name="WordPress.Variables.GlobalVariables" />

</rule>
</ruleset>
4 changes: 2 additions & 2 deletions comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
* and the comment form.
*
* @package WordPress
* @subpackage Twenty_Fifteen
* @since Twenty Fifteen 1.0
* @subpackage FoundationPress
* @since FoundationPress 1.0
*/

if ( have_comments() ) :
Expand Down
2 changes: 1 addition & 1 deletion library/cleanup.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ function foundationpress_remove_rss_version() { return ''; }
endif;

if ( ! function_exists( 'foundationpress_remove_wp_ver_css_js' ) ) :

// Remove WP version from scripts.
function foundationpress_remove_wp_ver_css_js( $src ) {
if ( strpos( $src, 'ver=' ) ) {
Expand Down Expand Up @@ -138,7 +139,6 @@ function foundationpress_gallery_style($css) {
*/

// Remove default inline style of wp-caption.

if ( ! function_exists( 'foundationpress_fixed_img_caption_shortcode' ) ) :
add_shortcode( 'wp_caption', 'foundationpress_fixed_img_caption_shortcode' );
add_shortcode( 'caption', 'foundationpress_fixed_img_caption_shortcode' );
Expand Down
2 changes: 1 addition & 1 deletion library/enqueue-scripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* Learn more about enqueue_script: {@link https://codex.wordpress.org/Function_Reference/wp_enqueue_script}
* Learn more about enqueue_style: {@link https://codex.wordpress.org/Function_Reference/wp_enqueue_style }
*
*
* @package WordPress
* @subpackage FoundationPress
* @since FoundationPress 1.0
Expand Down
2 changes: 1 addition & 1 deletion library/navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/

register_nav_menus(array(
'top-bar-l' => 'Left Top Bar', // registers the menu in the WordPress admin menu editor
'top-bar-l' => 'Left Top Bar', // Registers the menu in the WordPress admin menu editor.
'top-bar-r' => 'Right Top Bar',
'mobile-off-canvas' => 'Mobile',
));
Expand Down

0 comments on commit 24c5fcb

Please sign in to comment.