Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -227,5 +227,4 @@ private function test_patterns( $pattern ) {
);
return $pattern;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,4 @@ public function process_token( $stackPtr ) {
$data = [ $this->tokens[ $stackPtr ]['content'] ];
$this->phpcsFile->addError( $message, $tstring_token, 'NotCheckingConstantName', $data );
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,4 @@ public function process_token( $stackPtr ) {

} while ( $curStackPtr > $stackPtr );
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -311,5 +311,4 @@ private function addNonCheckedVariableError( $stackPtr, $variableName, $callee )
$data = [ $variableName, $callee ];
$this->phpcsFile->addError( $message, $stackPtr, 'NonCheckedVariable', $data );
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,4 @@ public function process_token( $stackPtr ) {
$data = [ $this->tokens[ $stackPtr ]['content'] ];
$this->phpcsFile->addError( $message, $stackPtr, 'Found', $data );
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -130,5 +130,4 @@ public function process_token( $stackPtr ) {
}
}
}

}
1 change: 0 additions & 1 deletion WordPressVIPMinimum/Sniffs/JS/InnerHTMLSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,4 @@ public function process_token( $stackPtr ) {
$this->phpcsFile->addWarning( $message, $stackPtr, 'Found', $data );
}
}

}
1 change: 0 additions & 1 deletion WordPressVIPMinimum/Sniffs/JS/StringConcatSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,4 @@ private function addFoundError( $stackPtr, array $data ) {
$message = 'HTML string concatenation detected, this is a security risk, use DOM node construction or a templating language instead: %s.';
$this->phpcsFile->addError( $message, $stackPtr, 'Found', $data );
}

}
1 change: 0 additions & 1 deletion WordPressVIPMinimum/Sniffs/JS/StrippingTagsSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,4 @@ public function process_token( $stackPtr ) {
$this->phpcsFile->addError( $message, $stackPtr, 'VulnerableTagStripping' );
}
}

}
1 change: 0 additions & 1 deletion WordPressVIPMinimum/Sniffs/JS/WindowSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,5 +127,4 @@ public function process_token( $stackPtr ) {
$message = 'Data from JS global "%s" may contain user-supplied values and should be sanitized before output to prevent XSS.';
$this->phpcsFile->addError( $message, $stackPtr, $nextNextToken, $data );
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -142,5 +142,4 @@ private function isVariableAssignment( $stackPtr ) {

return $previous;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,4 @@ public function process_token( $stackPtr ) {
$this->phpcsFile->addWarning( $message, $stackPtr, 'FileGetContentsRemoteFile', $data );
}
}

}
1 change: 0 additions & 1 deletion WordPressVIPMinimum/Sniffs/Performance/NoPagingSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,4 @@ public function callback( $key, $val, $line, $group ) {

return false;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,4 @@ public function callback( $key, $val, $line, $group ) {

return false;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,4 @@ public function callback( $key, $val, $line, $group ) {
return 'Detected regular expression comparison. `%s` is set to `%s`.';
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,4 @@ public function callback( $key, $val, $line, $group ) {
return 'Detected high remote request timeout. `%s` is set to `%d`.';
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,4 @@ public function process_token( $stackPtr ) {
public function callback( $key, $val, $line, $group ) {
return true;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,4 @@ public function process_token( $stackPtr ) {
return;
}
}

}
1 change: 0 additions & 1 deletion WordPressVIPMinimum/Sniffs/Security/MustacheSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,4 @@ public function process_token( $stackPtr ) {
$this->phpcsFile->addWarning( $message, $stackPtr, 'SafeString' );
}
}

}
1 change: 0 additions & 1 deletion WordPressVIPMinimum/Sniffs/Security/TwigSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,4 @@ public function process_token( $stackPtr ) {
$this->phpcsFile->addWarning( $message, $stackPtr, 'RawFound' );
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,4 @@ public function process_token( $stackPtr ) {
$this->phpcsFile->addWarning( $message, $stackPtr, 'InterpolateFound' );
}
}

}
1 change: 0 additions & 1 deletion WordPressVIPMinimum/Sniffs/Security/VuejsSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,4 @@ public function process_token( $stackPtr ) {
$this->phpcsFile->addWarning( $message, $stackPtr, 'RawHTMLDirectiveFound' );
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -425,5 +425,4 @@ public function has_html_open_tag( $tag_name, $stackPtr = null, $content = null

return $content !== null && strpos( $content, '<' . $tag_name ) !== false;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,4 @@ public function getGroups() {
],
];
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,4 @@ public function process_token( $stackPtr ) {
$this->phpcsFile->addError( $message, $stackPtr, 'UserControlledHeaders', $data );
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,4 @@ public function getErrorList() {
public function getWarningList() {
return [];
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,4 @@ public function getWarningList() {
12 => 1,
];
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,4 @@ public function getWarningList() {
6 => 1,
];
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,4 @@ public function getErrorList() {
public function getWarningList() {
return [];
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,4 @@ public function getWarningList() {
7 => 2,
];
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,4 @@ public function getWarningList() {
33 => 1,
];
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,4 @@ public function getErrorList() {
public function getWarningList() {
return [];
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,4 @@ public function getErrorList() {
public function getWarningList() {
return [];
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,4 @@ public function getErrorList() {
public function getWarningList() {
return [];
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -129,5 +129,4 @@ public function getWarningList() {
226 => 1,
];
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,4 @@ public function getWarningList() {
13 => 1,
];
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,4 @@ public function getWarningList() {
180 => 1,
];
}

}
1 change: 0 additions & 1 deletion WordPressVIPMinimum/Tests/Hooks/PreGetPostsUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,4 @@ public function getWarningList() {
133 => 1,
];
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,4 @@ public function getWarningList() {
23 => 1,
];
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,4 @@ public function getErrorList() {
public function getWarningList() {
return [];
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,4 @@ public function getWarningList() {
48 => 1,
];
}

}
1 change: 0 additions & 1 deletion WordPressVIPMinimum/Tests/JS/InnerHTMLUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,4 @@ public function getWarningList() {
5 => 1,
];
}

}
1 change: 0 additions & 1 deletion WordPressVIPMinimum/Tests/JS/StringConcatUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,4 @@ public function getErrorList() {
public function getWarningList() {
return [];
}

}
1 change: 0 additions & 1 deletion WordPressVIPMinimum/Tests/JS/StrippingTagsUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,4 @@ public function getErrorList() {
public function getWarningList() {
return [];
}

}
1 change: 0 additions & 1 deletion WordPressVIPMinimum/Tests/JS/WindowUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,4 @@ public function getWarningList() {
10 => 1,
];
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,4 @@ public function getWarningList() {
7 => 1,
];
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,4 @@ public function getErrorList() {
public function getWarningList() {
return [];
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,4 @@ public function getWarningList() {
7 => 1,
];
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,4 @@ public function getErrorList() {
public function getWarningList() {
return [];
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,4 @@ public function getErrorList() {
public function getWarningList() {
return [];
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,4 @@ public function getErrorList() {
public function getWarningList() {
return [];
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,4 @@ public function getErrorList() {
public function getWarningList() {
return [];
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,4 @@ public function getWarningList() {
8 => 1,
];
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,4 @@ public function getWarningList() {
21 => 1,
];
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,4 @@ public function getErrorList() {
public function getWarningList() {
return [];
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,4 @@ public function getErrorList() {
public function getWarningList() {
return [];
}

}
1 change: 0 additions & 1 deletion WordPressVIPMinimum/Tests/Security/MustacheUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,4 @@ public function getWarningList() {
18 => 1,
];
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,4 @@ public function getWarningList() {
29 => 1,
];
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,4 @@ public function getErrorList( $testFile = '' ) {
public function getWarningList() {
return [];
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,4 @@ public function getErrorList() {
public function getWarningList() {
return [];
}

}
1 change: 0 additions & 1 deletion WordPressVIPMinimum/Tests/Security/TwigUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,4 @@ public function getWarningList() {
10 => 1,
];
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,4 @@ public function getWarningList( $testFile = '' ) {
return [];
}
}

}
1 change: 0 additions & 1 deletion WordPressVIPMinimum/Tests/Security/VuejsUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,4 @@ public function getWarningList() {
5 => 1,
];
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,4 @@ public function getWarningList() {
28 => 1,
];
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,4 @@ public function getErrorList() {
public function getWarningList() {
return [];
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,4 @@ public function getWarningList() {
5 => 2,
];
}

}