Closed muratyaman closed 7 years ago
@muratyaman thanks for the report and the "quick note" on code quality.
There is so much to be done in this project, we inherited thousands of lines of code and some of it is really needing a rewrite.
Can you help with some of it? From what I normally see here, just raising issues with recommendations doesn't get much changed, because there simply isn't enough time for the few developers that work on this to fix everything.
If you could write a PR fixing just two or three of the issues you list, even the easiest ones, that would be really helpful. We need more engaged members of the community, especially if they are sensitive to best practices and code quality issues like you are.
(facepalm) Thank you @muratyaman for finding an inexcusable, ridiculous syntax error crash bug, yet another perfect example of why @salesagility really ought to immediately enable PHP-CS-FIXER, PHP_CS, Scrutinizer-CI, AND merge the PRs mentioned here #3688 - to find ALL of these bugs automatically and quickly, without effort.
There's really no point to making any further PRs whatsoever, until these very basic essential code quality and reliability PRs mentioned in #3688 are merged into master
, hotfix
and develop
, so that these code checkers actually run on the code! Check the code and find problems for all to see plainly. For the purposes of fix them more effectively. It's time for this legacy PHP app to join the modern era of automatic continuous integration.
case "doAssignmentDelete";
it must be:case "doAssignmentDelete":
Quick note: this file is another perfect example of how NOT to write code :(