Problem/Motivation
After merge of #2984803: Transform PHP Native class from Plugin Factory we have some standards and documentation miss in code base.
Proposed resolution
Fix errors and refactor/document all obscures methods.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 2985368-optimise-plugin-factory-6.patch | 32.1 KB | woprrr |
| #4 | 2985368-optimise-plugin-factory-4.patch | 20.71 KB | woprrr |
| #2 | 2985368-optimise-plugin-factory.patch | 20.59 KB | woprrr |
Comments
Comment #2
woprrr commentedComment #3
woprrr commentedBest practice miss !! this not respect the return in Interface this will break LSP. We should return $this here.
Comment #4
woprrr commentedHere the patch with LSP violation fixed.
Comment #5
woprrr commentedWe have a last major issue to be really SOLID :)
see https://scrutinizer-ci.com/g/woprrr/automated_crop/code-structure/8.x-1....
The code duplication in AutomatedCropDefault plugins need to be fixed.
Comment #6
woprrr commentedWoot ! woot ! https://scrutinizer-ci.com/g/woprrr/automated_crop/inspections/490aa170-...
9.99 :D not bad.
Comment #8
woprrr commented