build/CodeIgniter/Sniffs/Files/ByteOrderMarkSniff.php 1 location
|
@@ 80-84 (lines=5) @@
|
77 |
|
public function process(File $phpcsFile, $stackPtr ) |
78 |
|
{ |
79 |
|
// We are only interested if this is the first open tag. |
80 |
|
if ($stackPtr !== 0) { |
81 |
|
if ($phpcsFile->findPrevious(T_OPEN_TAG, ($stackPtr - 1)) !== false) { |
82 |
|
return; |
83 |
|
} |
84 |
|
} |
85 |
|
|
86 |
|
$tokens = $phpcsFile->getTokens(); |
87 |
|
$fileStartString = $tokens[0]['content']; |
build/CodeIgniter/Sniffs/Files/Utf8EncodingSniff.php 1 location
|
@@ 62-66 (lines=5) @@
|
59 |
|
public function process(File $phpcsFile, $stackPtr) |
60 |
|
{ |
61 |
|
// We are only interested if this is the first open tag. |
62 |
|
if ($stackPtr !== 0) { |
63 |
|
if ($phpcsFile->findPrevious(T_OPEN_TAG, ($stackPtr - 1)) !== false) { |
64 |
|
return; |
65 |
|
} |
66 |
|
} |
67 |
|
|
68 |
|
$file_path = $phpcsFile->getFilename(); |
69 |
|
$file_name = basename($file_path); |
build/CodeIgniter/UnusedSniffs/Files/ClosingFileCommentSniff.php 1 location
|
@@ 68-72 (lines=5) @@
|
65 |
|
public function process(File $phpcsFile, $stackPtr) |
66 |
|
{ |
67 |
|
// We are only interested if this is the first open tag. |
68 |
|
if ($stackPtr !== 0) { |
69 |
|
if ($phpcsFile->findPrevious(T_OPEN_TAG, ($stackPtr - 1)) !== false) { |
70 |
|
return; |
71 |
|
} |
72 |
|
} |
73 |
|
|
74 |
|
$fullFilename = $phpcsFile->getFilename(); |
75 |
|
$filename = basename($fullFilename); |
build/CodeIgniter/UnusedSniffs/Files/ClosingLocationCommentSniff.php 1 location
|
@@ 76-80 (lines=5) @@
|
73 |
|
public function process(File $phpcsFile, $stackPtr) |
74 |
|
{ |
75 |
|
// We are only interested if this is the first open tag. |
76 |
|
if ($stackPtr !== 0) { |
77 |
|
if ($phpcsFile->findPrevious(T_OPEN_TAG, ($stackPtr - 1)) !== false) { |
78 |
|
return; |
79 |
|
} |
80 |
|
} |
81 |
|
|
82 |
|
$filePath = $phpcsFile->getFilename(); |
83 |
|
$tokens = $phpcsFile->getTokens(); |