| Conditions | 4 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | public function getEntries(Project $project, Context $context) { |
||
| 12 | $entries = []; |
||
| 13 | $postfix = trim(""); |
||
| 14 | foreach ($project->getIndex()->getClasses() as $fqcn => $class) { |
||
| 15 | if (!empty($postfix) && strpos($fqcn, $postfix) === false) { |
||
| 16 | continue; |
||
| 17 | } |
||
| 18 | $fqcn = $context->getScope()->getUses()->findAlias($class->fqcn); |
||
| 19 | $complete = str_replace($postfix, "", $fqcn); |
||
| 20 | $entries[] = new Entry( |
||
| 21 | $complete, '', '', |
||
| 22 | $fqcn |
||
| 23 | ); |
||
| 24 | } |
||
| 25 | return $entries; |
||
| 26 | } |
||
| 27 | |||
| 33 |