Home
last modified time | relevance | path

Searched refs:fixer (Results 1 – 25 of 137) sorted by relevance

123456

/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/PHP/
H A DEmbeddedPhpSniff.php109 $phpcsFile->fixer->endChangeset();
122 $phpcsFile->fixer->beginChangeset();
125 $phpcsFile->fixer->endChangeset();
250 $phpcsFile->fixer->beginChangeset();
253 $phpcsFile->fixer->endChangeset();
260 $phpcsFile->fixer->beginChangeset();
263 $phpcsFile->fixer->endChangeset();
286 $phpcsFile->fixer->beginChangeset();
297 $phpcsFile->fixer->endChangeset();
331 $phpcsFile->fixer->beginChangeset();
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/WhiteSpace/
H A DFunctionClosingBraceSpaceSniff.php88 $phpcsFile->fixer->beginChangeset();
90 $phpcsFile->fixer->replaceToken($i, '');
93 $phpcsFile->fixer->endChangeset();
119 $phpcsFile->fixer->addNewlineBefore($closeBrace);
127 $phpcsFile->fixer->beginChangeset();
135 $phpcsFile->fixer->replaceToken($i, '');
145 $phpcsFile->fixer->endChangeset();
160 $phpcsFile->fixer->beginChangeset();
162 $phpcsFile->fixer->replaceToken($i, '');
166 $phpcsFile->fixer->endChangeset();
[all …]
H A DSuperfluousWhitespaceSniff.php102 if ($phpcsFile->fixer->enabled === true) {
127 $phpcsFile->fixer->beginChangeset();
129 $phpcsFile->fixer->replaceToken($i, '');
132 $phpcsFile->fixer->endChangeset();
179 if ($phpcsFile->fixer->enabled === true) {
187 $phpcsFile->fixer->beginChangeset();
189 $phpcsFile->fixer->replaceToken($i, '');
192 $phpcsFile->fixer->endChangeset();
248 $phpcsFile->fixer->beginChangeset();
255 $phpcsFile->fixer->addNewlineBefore($i);
[all …]
H A DControlStructureSpacingSniff.php155 $phpcsFile->fixer->beginChangeset();
158 $phpcsFile->fixer->replaceToken($i, '');
162 $phpcsFile->fixer->addNewline($scopeOpener);
163 $phpcsFile->fixer->endChangeset();
202 $phpcsFile->fixer->beginChangeset();
213 $phpcsFile->fixer->replaceToken($i, '');
216 $phpcsFile->fixer->endChangeset();
290 $phpcsFile->fixer->beginChangeset();
293 $phpcsFile->fixer->replaceToken($i, '');
298 $phpcsFile->fixer->endChangeset();
[all …]
H A DMemberVarSpacingSniff.php65 $phpcsFile->fixer->beginChangeset();
69 … $phpcsFile->fixer->replaceToken($prev, rtrim($tokens[$prev]['content']));
77 $phpcsFile->fixer->replaceToken($i, '');
80 $phpcsFile->fixer->addNewline($prev);
81 $phpcsFile->fixer->endChangeset();
113 $phpcsFile->fixer->beginChangeset();
120 $phpcsFile->fixer->addNewline(($i - 1));
124 $phpcsFile->fixer->replaceToken($i, '');
127 $phpcsFile->fixer->endChangeset();
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PSR2/Sniffs/Namespaces/
H A DUseDeclarationSniff.php66 $phpcsFile->fixer->replaceToken(($stackPtr + 1), ' ');
82 $phpcsFile->fixer->beginChangeset();
86 $phpcsFile->fixer->replaceToken($i, '');
95 $phpcsFile->fixer->replaceToken($i, '');
118 $phpcsFile->fixer->replaceToken($i, '');
121 $phpcsFile->fixer->endChangeset();
167 $phpcsFile->fixer->addNewline($end);
169 $phpcsFile->fixer->beginChangeset();
175 $phpcsFile->fixer->replaceToken($i, '');
178 $phpcsFile->fixer->addNewline($end);
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Arrays/
H A DArrayDeclarationSniff.php93 $phpcsFile->fixer->beginChangeset();
98 $phpcsFile->fixer->endChangeset();
116 $phpcsFile->fixer->beginChangeset();
121 $phpcsFile->fixer->endChangeset();
246 $phpcsFile->fixer->beginChangeset();
249 $phpcsFile->fixer->endChangeset();
533 $phpcsFile->fixer->beginChangeset();
539 $phpcsFile->fixer->replaceToken($i, '');
547 $phpcsFile->fixer->replaceToken($i, '');
550 $phpcsFile->fixer->endChangeset();
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/Commenting/
H A DDocCommentSniff.php85 $phpcsFile->fixer->beginChangeset();
86 $phpcsFile->fixer->addNewline($stackPtr);
88 $phpcsFile->fixer->endChangeset();
107 $phpcsFile->fixer->beginChangeset();
116 $phpcsFile->fixer->endChangeset();
132 $phpcsFile->fixer->beginChangeset();
143 $phpcsFile->fixer->endChangeset();
173 $phpcsFile->fixer->beginChangeset();
184 $phpcsFile->fixer->endChangeset();
205 $phpcsFile->fixer->beginChangeset();
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/ControlStructures/
H A DControlSignatureSniff.php102 $phpcsFile->fixer->addContent($stackPtr, ' ');
104 $phpcsFile->fixer->replaceToken(($stackPtr + 1), ' ');
128 $phpcsFile->fixer->addContent($closer, ' ');
130 $phpcsFile->fixer->beginChangeset();
132 $phpcsFile->fixer->addContent($closer, ' ');
152 $phpcsFile->fixer->endChangeset();
188 $phpcsFile->fixer->beginChangeset();
195 $phpcsFile->fixer->replaceToken($i, '');
199 $phpcsFile->fixer->endChangeset();
219 $phpcsFile->fixer->replaceToken(($closer + 1), '');
[all …]
H A DForEachLoopDeclarationSniff.php95 $phpcsFile->fixer->replaceToken(($openingBracket + 1), '');
113 $phpcsFile->fixer->addContent($openingBracket, $padding);
125 $phpcsFile->fixer->replaceToken(($closingBracket - 1), '');
169 $phpcsFile->fixer->replaceToken($asToken, $expected);
180 $phpcsFile->fixer->addContentBefore($doubleArrow, ' ');
189 $phpcsFile->fixer->replaceToken(($doubleArrow - 1), ' ');
198 $phpcsFile->fixer->addContent($doubleArrow, ' ');
217 $phpcsFile->fixer->addContentBefore($asToken, ' ');
226 $phpcsFile->fixer->replaceToken(($asToken - 1), ' ');
235 $phpcsFile->fixer->addContent($asToken, ' ');
[all …]
H A DForLoopDeclarationSniff.php98 $phpcsFile->fixer->replaceToken(($openingBracket + 1), '');
116 $phpcsFile->fixer->addContent($openingBracket, $padding);
118 $phpcsFile->fixer->replaceToken(($openingBracket + 1), $padding);
128 $phpcsFile->fixer->replaceToken(($closingBracket - 1), '');
146 $phpcsFile->fixer->addContentBefore($closingBracket, $padding);
148 $phpcsFile->fixer->replaceToken(($closingBracket - 1), $padding);
162 $phpcsFile->fixer->replaceToken(($firstSemicolon - 1), '');
172 $phpcsFile->fixer->addContent($firstSemicolon, ' ');
181 $phpcsFile->fixer->replaceToken(($firstSemicolon + 1), ' ');
195 $phpcsFile->fixer->replaceToken(($secondSemicolon - 1), '');
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PEAR/Sniffs/ControlStructures/
H A DMultiLineConditionSniff.php97 $phpcsFile->fixer->replaceToken(($openBracket + 1), '');
99 $phpcsFile->fixer->replaceToken(($openBracket + 1), '');
136 $phpcsFile->fixer->beginChangeset();
138 $phpcsFile->fixer->addContentBefore($next, ')');
139 $phpcsFile->fixer->endChangeset();
184 $phpcsFile->fixer->replaceToken($i, $spaces);
197 $phpcsFile->fixer->beginChangeset();
198 $phpcsFile->fixer->replaceToken($prev, '');
200 $phpcsFile->fixer->endChangeset();
270 $phpcsFile->fixer->addContent($closeBracket, ' ');
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PSR2/Sniffs/Classes/
H A DClassDeclarationSniff.php180 $phpcsFile->fixer->beginChangeset();
188 $phpcsFile->fixer->endChangeset();
276 $phpcsFile->fixer->beginChangeset();
285 $phpcsFile->fixer->addNewline($prev);
286 $phpcsFile->fixer->endChangeset();
298 $phpcsFile->fixer->beginChangeset();
307 $phpcsFile->fixer->addNewline($prev);
308 $phpcsFile->fixer->endChangeset();
427 $phpcsFile->fixer->beginChangeset();
429 $phpcsFile->fixer->replaceToken($i, '');
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PEAR/Sniffs/Functions/
H A DFunctionCallSignatureSniff.php126 $phpcsFile->fixer->beginChangeset();
128 $phpcsFile->fixer->replaceToken($i, '');
134 $phpcsFile->fixer->endChangeset();
144 $phpcsFile->fixer->beginChangeset();
146 $phpcsFile->fixer->replaceToken($i, '');
152 $phpcsFile->fixer->endChangeset();
270 $phpcsFile->fixer->beginChangeset();
302 $phpcsFile->fixer->endChangeset();
370 $phpcsFile->fixer->addContent(
383 $phpcsFile->fixer->addContentBefore(
[all …]
H A DFunctionDeclarationSniff.php93 $phpcsFile->fixer->addContent($stackPtr, ' ');
95 $phpcsFile->fixer->replaceToken(($stackPtr + 1), ' ');
140 $phpcsFile->fixer->addContent($use, ' ');
161 $phpcsFile->fixer->addContentBefore($use, ' ');
296 $phpcsFile->fixer->addNewlineBefore($closeBracket);
356 $phpcsFile->fixer->replaceToken($i, '');
375 $phpcsFile->fixer->replaceToken($i, $spaces);
407 $phpcsFile->fixer->beginChangeset();
408 $phpcsFile->fixer->addContent($prev, ' {');
409 $phpcsFile->fixer->replaceToken($opener, '');
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Strings/
H A DConcatenationSpacingSniff.php123 $phpcsFile->fixer->beginChangeset();
124 $phpcsFile->fixer->replaceToken(($stackPtr - 1), $padding);
129 … $phpcsFile->fixer->replaceToken(($stackPtr - 2), '('.$tokens[($stackPtr - 2)]['content'].')');
132 $phpcsFile->fixer->endChangeset();
134 $phpcsFile->fixer->addContent(($stackPtr - 1), $padding);
140 $phpcsFile->fixer->beginChangeset();
141 $phpcsFile->fixer->replaceToken(($stackPtr + 1), $padding);
146 … $phpcsFile->fixer->replaceToken(($stackPtr + 2), '('.$tokens[($stackPtr + 2)]['content'].')');
149 $phpcsFile->fixer->endChangeset();
151 $phpcsFile->fixer->addContent($stackPtr, $padding);
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PEAR/Sniffs/Classes/
H A DClassDeclarationSniff.php86 $phpcsFile->fixer->beginChangeset();
88 $phpcsFile->fixer->replaceToken(($curlyBrace - 1), '');
91 $phpcsFile->fixer->addNewlineBefore($curlyBrace);
92 $phpcsFile->fixer->endChangeset();
108 $phpcsFile->fixer->beginChangeset();
114 $phpcsFile->fixer->replaceToken($i, '');
117 $phpcsFile->fixer->endChangeset();
128 $phpcsFile->fixer->addNewline($curlyBrace);
153 $phpcsFile->fixer->addContentBefore($curlyBrace, $indent);
155 $phpcsFile->fixer->replaceToken(($curlyBrace - 1), $indent);
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Functions/
H A DFunctionDeclarationArgumentSpacingSniff.php175 $phpcsFile->fixer->addContent($nextToken, $padding);
196 $phpcsFile->fixer->replaceToken(($nextComma - 1), '');
245 $phpcsFile->fixer->addContent($whitespace, ' ');
247 $phpcsFile->fixer->replaceToken($whitespace, ' ');
258 $phpcsFile->fixer->addContent($comma, ' ');
282 $phpcsFile->fixer->addContent($whitespace, ' ');
295 $phpcsFile->fixer->replaceToken($whitespace, ' ');
329 $phpcsFile->fixer->addContent($nextToken, ' ');
369 $phpcsFile->fixer->addContent($openBracket, $padding);
392 $phpcsFile->fixer->replaceToken(($openBracket + 1), '');
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PEAR/Sniffs/Files/
H A DIncludingFileSniff.php72 $phpcsFile->fixer->beginChangeset();
73 $phpcsFile->fixer->replaceToken($tokens[$nextToken]['parenthesis_closer'], '');
75 $phpcsFile->fixer->replaceToken($nextToken, ' ');
77 $phpcsFile->fixer->replaceToken($nextToken, '');
80 $phpcsFile->fixer->endChangeset();
118 $phpcsFile->fixer->replaceToken($stackPtr, 'include_once');
125 $phpcsFile->fixer->replaceToken($stackPtr, 'include');
135 $phpcsFile->fixer->replaceToken($stackPtr, 'require_once');
142 $phpcsFile->fixer->replaceToken($stackPtr, 'require');
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/Arrays/
H A DDisallowLongArraySyntaxSniff.php63 $phpcsFile->fixer->beginChangeset();
66 $phpcsFile->fixer->replaceToken($stackPtr, '[]');
68 $phpcsFile->fixer->replaceToken($stackPtr, '');
69 $phpcsFile->fixer->replaceToken($opener, '[');
70 $phpcsFile->fixer->replaceToken($closer, ']');
73 $phpcsFile->fixer->endChangeset();
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PSR2/Sniffs/ControlStructures/
H A DSwitchDeclarationSniff.php96 $phpcsFile->fixer->replaceToken($nextCase, $expected);
108 $phpcsFile->fixer->addContent($nextCase, ' ');
110 $phpcsFile->fixer->replaceToken(($nextCase + 1), ' ');
122 $phpcsFile->fixer->replaceToken(($opener - 1), '');
140 … $phpcsFile->fixer->addContentBefore($next, $phpcsFile->eolChar.$padding);
142 $phpcsFile->fixer->beginChangeset();
148 $phpcsFile->fixer->replaceToken($i, '');
151 $phpcsFile->fixer->addNewLineBefore($i);
152 $phpcsFile->fixer->endChangeset();
166 $phpcsFile->fixer->addNewLine($prev);
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/CSS/
H A DClassDefinitionOpeningBraceSpaceSniff.php69 $phpcsFile->fixer->addContentBefore($stackPtr, ' ');
87 $phpcsFile->fixer->replaceToken(($stackPtr - 1), ' ');
113 $phpcsFile->fixer->addNewline($stackPtr);
125 $phpcsFile->fixer->addNewline($stackPtr);
128 $phpcsFile->fixer->beginChangeset();
130 $phpcsFile->fixer->replaceToken($i, '');
133 $phpcsFile->fixer->addNewline($stackPtr);
134 $phpcsFile->fixer->endChangeset();
H A DShorthandSizeSniff.php130 $phpcsFile->fixer->beginChangeset();
136 $phpcsFile->fixer->replaceToken($next, $expected);
138 $phpcsFile->fixer->replaceToken($next, '');
141 $phpcsFile->fixer->endChangeset();
174 $phpcsFile->fixer->beginChangeset();
180 $phpcsFile->fixer->replaceToken($next, $expected);
182 $phpcsFile->fixer->replaceToken($next, '');
185 $phpcsFile->fixer->endChangeset();
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/Functions/
H A DOpeningFunctionBraceKernighanRitchieSniff.php111 $phpcsFile->fixer->beginChangeset();
112 $phpcsFile->fixer->addContent($prev, ' {');
113 $phpcsFile->fixer->replaceToken($openingBrace, '');
119 $phpcsFile->fixer->replaceToken(($openingBrace + 1), '');
127 $phpcsFile->fixer->replaceToken(($openingBrace - 1), '');
131 $phpcsFile->fixer->endChangeset();
147 $phpcsFile->fixer->addNewline($openingBrace);
170 $phpcsFile->fixer->addContentBefore($openingBrace, ' ');
172 $phpcsFile->fixer->replaceToken(($openingBrace - 1), ' ');
H A DOpeningFunctionBraceBsdAllmanSniff.php108 $phpcsFile->fixer->beginChangeset();
111 $phpcsFile->fixer->addContentBefore($openingBrace, $tokens[$indent]['content']);
114 $phpcsFile->fixer->addNewlineBefore($openingBrace);
115 $phpcsFile->fixer->endChangeset();
126 $phpcsFile->fixer->addNewLineBefore($i);
130 $phpcsFile->fixer->replaceToken($i, '');
145 $phpcsFile->fixer->addNewline($openingBrace);
179 $phpcsFile->fixer->addContentBefore($openingBrace, $indent);
181 $phpcsFile->fixer->replaceToken(($openingBrace - 1), $indent);

123456