Uh oh!
There was an error while loading. Please reload this page.
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
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
xepozz
commented
Sep 28, 2023
Look at this file and get some optimization from the visitor. |
vjik
commented
Sep 28, 2023
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.
Please add tests for finding:
- Interfaces
- Classes implements interfaces
- Classes inherits other classes
vjik
commented
Oct 27, 2023
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| * | ||
| * @return bool `true` if class matches against filter. Otherwise, `false`. | ||
| */ | ||
| public function match(ReflectionClass $reflectionClass): bool; |
There was a problem hiding this comment.
Not all classifier implementations use reflections. Better use filter as DTO, and implementation of classifier will filter by itself.




#22