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