1 | <?php |
||
15 | class SniffLineTerminatorByCount extends AbstractSniffer |
||
16 | { |
||
17 | /** |
||
18 | * End-of-line constants |
||
19 | */ |
||
20 | const EOL_WINDOWS = 0; |
||
21 | const EOL_UNIX = 1; |
||
22 | const EOL_OTHER = 2; |
||
23 | |||
24 | /** |
||
25 | * Guess line terminator in a string of data |
||
26 | * |
||
27 | * Using the number of times it occurs, guess which line terminator is most likely. |
||
28 | * |
||
29 | * @param string $data The data to analyze |
||
30 | * |
||
31 | * @return string |
||
32 | */ |
||
33 | 1 | public function sniff($data) |
|
53 | } |