Needs work
Project:
Drupal core
Version:
main
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
14 Apr 2021 at 09:56 UTC
Updated:
18 Dec 2024 at 07:05 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
longwaveComment #3
spokjeComment #5
spokjeComment #6
longwaveFirst stab at this, using core/lib/Drupal/Core/ProxyClass/Cron.php as a sample file for testing.
This leaves us with three issues:
To fix the first we need to move the proxy class generator comment elsewhere.
To fix the other two we need to collect use statements and inject them in the correct place at the top of the file, and use short class names elsewhere.
However I've realised that 1. this lives in the Component namespace and 2. it effectively follows PSR-2, so maybe we should just leave it alone?
Comment #11
nikolay shapovalov commentedHaving code that violates code standards so much is bad example.
I opened Drupal\Core\ProxyClass\Batch\BatchStorage and was thinking that some code styles at my IDE broke.
I was not expected to have php code in core, that use 4 spaces as indentation.
As mentioned at #6, current patch provide fix some code styles rules.
Let's implement changes and just ignore few code styles rules instead of all rules.
Adding related idea to implement Property promotion for generated class.