Clover coverage report - PMD - 3.7
Coverage timestamp: Wed May 31 2006 09:25:59 EDT

file stats: | LOC: | 26 |  | Methods: | 1
| NCLOC: | 20 |  | Classes: | 1

Source file | Conditionals | Statements | Methods | TOTAL

PHPTokenizer.java

0%

0%

0%

0%

1 |  | /**
2 |  | * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3 |  | */
4 |  | package net.sourceforge.pmd.cpd;
5 |  |
6 |  | import java.util.List;
7 |  |
8 |  | public class PHPTokenizer implements Tokenizer {
9 |  |
10 | 0 | public void tokenize(SourceCode tokens, Tokens tokenEntries) {
11 | 0 | List code = tokens.getCode();
12 | 0 | for (int i = 0; i < code.size(); i++) {
13 | 0 | String currentLine = (String) code.get(i);
14 | 0 | for (int j = 0; j < currentLine.length(); j++) {
15 | 0 | char tok = currentLine.charAt(j);
16 | 0 | if (!Character.isWhitespace(tok) &&
17 |  | tok != '{' &&
18 |  | tok != '}' &&
19 |  | tok != ';') {
20 | 0 | tokenEntries.add(new TokenEntry(String.valueOf(tok), tokens.getFileName(), i + 1));
21 |  | }
22 |  | }
23 |  | }
24 | 0 | tokenEntries.add(TokenEntry.getEOF());
25 |  | }
26 |  | }