-
-
Notifications
You must be signed in to change notification settings - Fork 436
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
Follow coding-standard PER-CS2.0 #4372
base: main
Are you sure you want to change the base?
Conversation
I wanted to check all the changes in the more than 3000 files. Although I have an extremely high-performance system, Chrome threw in the towel several times. The page already consumes 2.5 GB of RAM and is growing. |
No need to check manually. Its only about code styling.
See |
Sorry for offopic, but what are you working with? I only have an Intel Xeon E3-1231 with 16GB RAM and everything runs smooth. Even in VirtualBox. |
# Conflicts: # composer.json # composer.lock
Ref https://www.php.net/manual/en/functions.arguments.php, trailing comma only supports in PHP8. I can understand trailing comma is to reduce version control diff noise but this PR actually add more noise. It's good for project under development, I don't see benefit applying here. Why is it good for OpenMage? |
This is for function parameters only. The PR is about array items.
We only had a couple of rules. Some from PSR2, some from PRS12. Not fish, not meat.
|
Trailing comma is for better programming workflow! You are on the last element of an array ... you hit |
This is NOT part of the PR. Trailing comma ... Old .... $a = [
[],
[] # no trailing comma
]; New ... $a = [
[],
[], # trailing comma
]; Edit: "PHP8-trailing-comma" public function(
$a,
$b, #php8-only
) Edit2: All checks test for valid php7 syntax ;) |
Thats not that problem ... in https://onlinephp.io/c/0b1cf the error is on line 2. The comma in test(), not that comma in explode(). |
try https://patch-diff.githubusercontent.com/raw/OpenMage/magento-lts/pull/4372.diff |
Description (*)
We run coding-rule checks since ages, but we never followed a common standard, We had some PSR2/12-rules for PHPCS, but settings for php-cs-fixer where different.