-
-
Notifications
You must be signed in to change notification settings - Fork 2
Refactoring #38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Refactoring #38
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #38 +/- ##
============================================
+ Coverage 98.11% 98.96% +0.85%
- Complexity 20 83 +63
============================================
Files 1 10 +9
Lines 53 193 +140
============================================
+ Hits 52 191 +139
- Misses 1 2 +1
☔ View full report in Codecov by Sentry. |
PR Summary
|
|
Look at this file and get some optimization from the visitor. |
Good optimization. But it can be implemented in separate PR. |
|
OK, I removed the parser classifier from the PR (moved it to #40). But I have some things to do here. |
| { | ||
| $classifier = $params['classifier']; | ||
| $classifierInstance = new $classifier(...$params['dirs']); | ||
| $classifierInstance->find(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add tests for finding:
- Interfaces
- Classes implements interfaces
- Classes inherits other classes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
| * | ||
| * @return bool `true` if class matches against filter. Otherwise, `false`. | ||
| */ | ||
| public function match(ReflectionClass $reflectionClass): bool; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not all classifier implementations use reflections. Better use filter as DTO, and implementation of classifier will filter by itself.




#22