source/Parser/DirectiveProcessors/CleanParamProcessor.php
Showing 14 of 14 total issues
Avoid unused parameters such as '$prevLine'. Open
Open
public function process(string $line, array & $root, string & $currentUserAgent = '*', string $prevLine = '') {
- Read upRead up
- Exclude checks
Avoid unused parameters such as '$currentUserAgent'. Open
Open
public function process(string $line, array & $root, string & $currentUserAgent = '*', string $prevLine = '') {
- Read upRead up
- Exclude checks
Opening brace of a class must be on the line after the definition Open
Open
class CleanParamProcessor extends AbstractDirectiveProcessor implements DirectiveProcessorInterface {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$parts = explode(':', $line);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$root[Directive::CLEAN_PARAM][$path] = explode('&', $cleanParams[0]);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return Directive::CLEAN_PARAM;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function getDirectiveName(): string {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$cleanParams = explode(' ', trim($parts[1]));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$path = $cleanParams[1] ?? '/*';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function process(string $line, array & $root, string & $currentUserAgent = '*', string $prevLine = '') {
- Exclude checks
Opening brace should be on a new line Open
Open
public function getDirectiveName(): string {
- Exclude checks
Opening brace should be on a new line Open
Open
public function process(string $line, array & $root, string & $currentUserAgent = '*', string $prevLine = '') {
- Exclude checks