Skip to content

Commit

Permalink
PrefixAllGlobals: minor fix to the test case files
Browse files Browse the repository at this point in the history
Custom properties should be reset at the end of the unit test file in which they are used.
  • Loading branch information
jrfnl committed Jan 4, 2018
1 parent 8300925 commit ea3808f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ trait T_Example {}

// Issue #1056.
define( __NAMESPACE__ . '\PLUGIN_FILE', __FILE__ );

// @codingStandardsChangeSetting WordPress.NamingConventions.PrefixAllGlobals prefixes false
Original file line number Diff line number Diff line change
Expand Up @@ -326,3 +326,5 @@ do_action( 'add_meta_boxes' );
add_shortcode( 'acronym_hello', function( $attrs, $content = null ) { // OK. Variables are function params.
// Do something.
} );

// @codingStandardsChangeSetting WordPress.NamingConventions.PrefixAllGlobals prefixes false

0 comments on commit ea3808f

Please sign in to comment.