Skip to content

Commit eefe19d

Browse files
committed
Code style fixes :)
1 parent 37b610d commit eefe19d

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

WordPressVIPMinimum/Sniffs/Plugins/ZoninatorSniff.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function process( File $phpcsFile, $stackPtr ) {
4949

5050
if ( T_OPEN_PARENTHESIS !== $tokens[ $openBracket ]['code'] ) {
5151
// Not a function call.
52-
return ;
52+
return;
5353
}
5454

5555
$plugin_name = $phpcsFile->findNext( Tokens::$emptyTokens, ( $openBracket + 1 ), null, true );
@@ -83,6 +83,13 @@ public function process( File $phpcsFile, $stackPtr ) {
8383

8484
}//end process()
8585

86+
/**
87+
* Removes the quotation marks around T_CONSTANT_ENCAPSED_STRING.
88+
*
89+
* @param $string T_CONSTANT_ENCAPSED_STRING containing wrapping quotation marks.
90+
*
91+
* @return string String w/o wrapping quotation marks.
92+
*/
8693
public function remove_wrapping_quotation_marks( $string ) {
8794
return trim( str_replace( '"', "'", $string ), "'" );
8895
}

WordPressVIPMinimum/Tests/Plugins/ZoninatorUnitTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ public function getErrorList() {
3232
*/
3333
public function getWarningList() {
3434
return array(
35-
3 => 1,
36-
4 => 1,
35+
3 => 1,
36+
4 => 1,
3737
5 => 1,
3838
6 => 1,
3939
);

0 commit comments

Comments
 (0)