Home
last modified time | relevance | path

Searched refs:eolChar (Results 1 – 25 of 39) sorted by relevance

12

/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/Files/
H A DLineEndingsSniff.php49 public $eolChar = '\n'; variable in Generic_Sniffs_Files_LineEndingsSniff
75 $found = $phpcsFile->eolChar;
81 if ($found === $this->eolChar) {
99 $expected = $this->eolChar;
112 switch ($this->eolChar) {
114 $eolChar = "\n";
117 $eolChar = "\r";
120 $eolChar = "\r\n";
123 $eolChar = $this->eolChar;
139 $newContent .= $eolChar;
H A DEndFileNoNewlineSniff.php74 $eolCharLen = strlen($phpcsFile->eolChar);
76 if ($lastChars === $phpcsFile->eolChar) {
H A DEndFileNewlineSniff.php74 $eolCharLen = strlen($phpcsFile->eolChar);
76 if ($lastChars !== $phpcsFile->eolChar) {
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Tokenizers/
H A DJS.php267 public function tokenizeString($string, $eolChar='\n') argument
298 $string = str_replace($eolChar, "\n", $string);
441 $eolChar
751 (strpos($tokenContent, $eolChar) + strlen($eolChar))
757 (strpos($tokenContent, $eolChar) + strlen($eolChar))
802 if (strpos($token['content'], $eolChar) !== false) {
813 $newToken['content'] .= $eolChar;
925 $eolChar => true,
959 if ($possibleEolChar === $eolChar) {
993 if ($possibleEolChar === $eolChar) {
[all …]
H A DComment.php37 * @param string $eolChar The EOL character to use for splitting strings.
42 public function tokenizeString($string, $eolChar, $stackPtr) argument
98 $lines = explode($eolChar, $string);
102 $string .= $eolChar;
145 $lineTokens = $this->_processLine($string, $eolChar, $char, $numChars);
182 * @param string $eolChar The EOL character to use for splitting strings.
188 private function _processLine($string, $eolChar, $start, $end) argument
226 $eol = strpos($string, $eolChar, $start);
241 'content' => substr($string, $eol, strlen($eolChar)),
H A DCSS.php47 * @param string $eolChar The EOL character to use for splitting strings.
51 public function tokenizeString($string, $eolChar='\n') argument
60 if (substr($string, (strlen($eolChar) * -1)) !== $eolChar) {
61 $string .= $eolChar;
67 $tokens = parent::tokenizeString('<?php '.$string.'?>', $eolChar);
190 $commentTokens = parent::tokenizeString('<?php '.$content.'?>', $eolChar);
500 (strlen($eolChar) * -1)
523 * @param string $eolChar The EOL character to use for splitting strings.
527 public function processAdditional(&$tokens, $eolChar) argument
H A DPHP.php312 * @param string $eolChar The EOL character to use for splitting strings.
316 public function tokenizeString($string, $eolChar='\n') argument
466 $tokenLines = explode($eolChar, $tokenContent);
477 $newToken['content'] .= $eolChar;
549 $tokenLines = explode($eolChar, $tokenContent);
560 $newToken['content'] .= $eolChar;
955 if ($tokenIsArray === true && strpos($token[1], $eolChar) !== false) {
956 $tokenLines = explode($eolChar, $token[1]);
971 $newToken['content'] .= $eolChar;
1137 * @param string $eolChar The EOL character to use for splitting strings.
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/ControlStructures/
H A DControlSignatureSniff.php85 if (strpos($tokens[($stackPtr + 1)]['content'], $phpcsFile->eolChar) !== false) {
122 $found = '"'.str_replace($phpcsFile->eolChar, '\n', $content).'"';
198 $phpcsFile->fixer->addContent($opener, $phpcsFile->eolChar);
207 if (strpos($tokens[($closer + 1)]['content'], $phpcsFile->eolChar) !== false) {
256 if (strpos($tokens[($closer + 1)]['content'], $phpcsFile->eolChar) !== false) {
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/
H A DFile.php132 public $eolChar = ''; variable in PHP_CodeSniffer_File
776 if ($eolChar === "\n") {
779 $eolChar = "\r\n";
785 $eolChar = "\n";
790 $eolChar = "\n";
796 return $eolChar;
1796 $eolChar argument
1867 $eolChar,
1898 $eolChar, argument
2031 $eolChar,
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Commenting/
H A DClosingDeclarationCommentSniff.php124 $phpcsFile->fixer->replaceToken($next, $comment.$phpcsFile->eolChar);
130 … $phpcsFile->fixer->replaceToken($closingBracket, '}'.$comment.$phpcsFile->eolChar);
140 … $phpcsFile->fixer->replaceToken(($closingBracket + 1), $comment.$phpcsFile->eolChar);
H A DLongConditionClosingCommentSniff.php182 $expected .= $phpcsFile->eolChar;
208 $phpcsFile->fixer->replaceToken($comment, $expected.$phpcsFile->eolChar);
H A DBlockCommentSniff.php154 $commentText = str_replace($phpcsFile->eolChar, '', $commentString);
177 $comment = '// '.$commentText.$phpcsFile->eolChar;
200 '$1'.$phpcsFile->eolChar.$indent,
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Classes/
H A DClassDeclarationSniff.php83 if ($prevContent !== $phpcsFile->eolChar) {
84 $blankSpace = substr($prevContent, strpos($prevContent, $phpcsFile->eolChar));
169 if ($prevContent !== $phpcsFile->eolChar) {
170 $blankSpace = substr($prevContent, strpos($prevContent, $phpcsFile->eolChar));
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/WhiteSpace/
H A DFunctionSpacingSniff.php121 … $phpcsFile->fixer->addContentBefore($i, str_repeat($phpcsFile->eolChar, $this->spacing));
139 if (strpos($tokens[$i]['content'], $phpcsFile->eolChar) === false) {
227 $padding = str_repeat($phpcsFile->eolChar, ($this->spacing - $foundLines));
236 … $phpcsFile->fixer->replaceToken($i, str_repeat($phpcsFile->eolChar, $this->spacing));
H A DSuperfluousWhitespaceSniff.php174 && $tokens[$stackPtr]['content'] === $phpcsFile->eolChar
213 $tokenContent = rtrim($tokens[$stackPtr]['content'], $phpcsFile->eolChar);
218 … $phpcsFile->fixer->replaceToken($stackPtr, rtrim($tokenContent).$phpcsFile->eolChar);
H A DScopeKeywordSpacingSniff.php79 || $nextToken['content'] === $phpcsFile->eolChar
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PEAR/Sniffs/Classes/
H A DClassDeclarationSniff.php124 if ($tokens[($curlyBrace + 1)]['content'] !== $phpcsFile->eolChar) {
134 if ($prevContent === $phpcsFile->eolChar) {
137 $blankSpace = substr($prevContent, strpos($prevContent, $phpcsFile->eolChar));
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PSR2/Sniffs/Classes/
H A DClassDeclarationSniff.php80 if ($prevContent !== $phpcsFile->eolChar) {
81 $blankSpace = substr($prevContent, strpos($prevContent, $phpcsFile->eolChar));
183 … $phpcsFile->fixer->substrToken($i, 0, (strlen($phpcsFile->eolChar) * -1));
432 if (strpos($tokens[$prevContent]['content'], $phpcsFile->eolChar) === false) {
433 … $phpcsFile->fixer->replaceToken($closeBrace, $phpcsFile->eolChar.$tokens[$closeBrace]['content']);
443 if ($tokens[$nextContent]['content'] !== $phpcsFile->eolChar
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/CSS/
H A DIndentationSniff.php115 $content = str_replace($phpcsFile->eolChar, '', $tokens[$i]['content']);
123 && strpos($tokens[$i]['content'], $phpcsFile->eolChar) !== false
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PSR2/Sniffs/ControlStructures/
H A DControlStructureSpacingSniff.php95 if (strpos($tokens[($parenOpener + 1)]['content'], $phpcsFile->eolChar) !== false) {
126 … $spaceBeforeClose = strlen(ltrim($tokens[($parenCloser - 1)]['content'], $phpcsFile->eolChar));
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/Commenting/
H A DDocCommentSniff.php215 … $phpcsFile->fixer->addContent($prev, $phpcsFile->eolChar.$indent.'*'.$phpcsFile->eolChar);
300 … $phpcsFile->fixer->addContent($prev, $phpcsFile->eolChar.$indent.'*'.$phpcsFile->eolChar);
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PEAR/Sniffs/WhiteSpace/
H A DScopeClosingBraceSniff.php90 if (strpos($tokens[$lineStart]['content'], $phpcsFile->eolChar) !== false) {
134 if (strpos($tokens[$lineStart]['content'], $phpcsFile->eolChar) !== false) {
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/PHP/
H A DCommentedOutCodeSniff.php127 $content .= $tokenContent.$phpcsFile->eolChar;
145 …okens = PHP_CodeSniffer_File::tokenizeString($content, $phpcsFile->tokenizer, $phpcsFile->eolChar);
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PSR2/Sniffs/Namespaces/
H A DUseDeclarationSniff.php77 $phpcsFile->fixer->replaceToken($next, ';'.$phpcsFile->eolChar.'use ');
108 $phpcsFile->fixer->replaceToken($next, ';'.$phpcsFile->eolChar);
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PSR2/Sniffs/Files/
H A DClosingTagSniff.php78 $phpcsFile->fixer->replaceToken($last, $phpcsFile->eolChar);

12