New Delhi
Account created on 11 November 2010, about 14 years ago
#

Recent comments

🇮🇳India hemant-gupta New Delhi

It's compatible with Drupal 11 now.

🇮🇳India hemant-gupta New Delhi

I have used it but not not working for anonymous users!

🇮🇳India hemant-gupta New Delhi

The same issue has been noticed, please update here if any solution worked.

🇮🇳India hemant-gupta New Delhi

It works as checked.

🇮🇳India hemant-gupta New Delhi

Thanks for your review! @trigve-hagen
Also, your points are closed in DEV branch.

🇮🇳India hemant-gupta New Delhi

Thanks for your feedback, @andrei.vesterli!

All suggested points have been addressed accordingly.

🇮🇳India hemant-gupta New Delhi

Lazy builder added now. Let me know if further improvements needed.

🇮🇳India hemant-gupta New Delhi

Yes, I got your point and tried the same as they did in example but the module BigPipe does not support any more for the later version of Drupal 8 and that's why JS snippet covers this gap.

🇮🇳India hemant-gupta New Delhi

Thanks for your feedback!

Actually, this is a time centric module and if we use formats from 'admin/config/regional/date-time' then many date formats of them doesn't have a time to show and all these formats are freely managed in back-end on admin preference so I preferred like this way. Also, the block does not 'suffer' from caching to show us an updated content.

Suggested points has been corrected, let me know if still any thing found.

🇮🇳India hemant-gupta New Delhi

I have removed the form class and implemented "BlockPluginInterface" for the block settings now, please check.

🇮🇳India hemant-gupta New Delhi

I have used a block built only to make its data available to users and not implemented the form block as not needed, kindly recheck this.

🇮🇳India hemant-gupta New Delhi

Thanks for your review @nikral!

I have changed the codes accordingly in DEV, please see.

🇮🇳India hemant-gupta New Delhi

Yes, I have used Drupal library for testing and the actual errors were from line no. 63-131 as mentioned which you tried to fix.

Ignore this 'Non-namespaced classes/interfaces/traits should not be referenced with use statements' as no coding standards fault.

🇮🇳India hemant-gupta New Delhi

Other findings to fix-

FILE: field_extra/field_extra.module
---------------------------------------------------------------------------------------------------------
FOUND 15 ERRORS AFFECTING 5 LINES
---------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
1 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
1 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
1 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
1 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
1 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
1 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
1 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
1 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
63 | ERROR | [ ] If there is no return value for a function, there must not be a @return tag.
63 | ERROR | [ ] Description for the @return value is missing
65 | ERROR | [ ] Type hint "array" missing for $form
129 | ERROR | [ ] If there is no return value for a function, there must not be a @return tag.
129 | ERROR | [ ] Description for the @return value is missing
131 | ERROR | [ ] Type hint "array" missing for $form
---------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------
Time: 67ms; Memory: 8MB

🇮🇳India hemant-gupta New Delhi

Look into this-

FILE: media_popup/media_popup.module
-------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
1 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
-------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------
Time: 46ms; Memory: 6MB

🇮🇳India hemant-gupta New Delhi

In project file "comment_on_top.info.yml", the key core_version_requirement cannot be used to restrict to core version before 8.7.7 and it would throw a parsing exception.

So, you need to replace that with "core_version_requirement to ^8.8 || ^9 || ^10" to fix.

Source- https://www.drupal.org/docs/develop/creating-modules/let-drupal-know-abo...

🇮🇳India hemant-gupta New Delhi

Yes, the branch needs to be updated first for every change review before a release.

🇮🇳India hemant-gupta New Delhi

Thanks for your feedback!

🇮🇳India hemant-gupta New Delhi

Initial settings added, thanks for your feedback!

🇮🇳India hemant-gupta New Delhi

Thanks for your feedback!

Actually, this is a time centric module and if we use formats from 'admin/config/regional/date-time' then many date formats of them does not have a time format to show the current time and also all these formats are added/managed by back-end so I preferred like this way.

🇮🇳India hemant-gupta New Delhi

It's fixed now and no "project", "datestamp" or "version" key is present in the info.yml as the log shows. May be You tried to check the downloaded version on your disk, this doesn't check the code in the repository so you can close it.

🇮🇳India hemant-gupta New Delhi

Issues fixed as suggested by PHPCS.

🇮🇳India hemant-gupta New Delhi

It was fixed by the patches.

Production build 0.71.5 2024