| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | 6 | public function tokenize(): array |
|
| 31 | { |
||
| 32 | 6 | $tokenCollections = []; |
|
| 33 | 6 | foreach ($this->fileFinder->find() as $file) { |
|
| 34 | 6 | $texts = $this->textFinder->find(file_get_contents($file)); |
|
| 35 | 6 | $tokenCollection = new TokenCollection($file); |
|
| 36 | 6 | foreach ($texts as $originalBlock => $originalText) { |
|
| 37 | 6 | $tokenCollection->addToken(new Token($originalText, $originalBlock)); |
|
| 38 | } |
||
| 39 | 6 | $tokenCollections[] = $this->tokenModifier->modifyAll($tokenCollection); |
|
| 40 | } |
||
| 41 | 6 | return $tokenCollections; |
|
| 42 | } |
||
| 44 |