I came across some coding style issues in working on issue #1701014: Validate config object names. Here's an issue to get them all cleaned up.

Remaining issues:

core/includes/config.inc:109

core/lib/Drupal/Core/Config/Config.php:98
core/lib/Drupal/Core/Config/Config.php:194
core/lib/Drupal/Core/Config/Config.php:196

core/lib/Drupal/Core/Config/FileStorage.php:47

core/modules/config/lib/Drupal/config/Tests/Storage/ConfigStorageTestBase.php:114
core/modules/config/lib/Drupal/config/Tests/Storage/ConfigStorageTestBase.php:116
core/modules/config/lib/Drupal/config/Tests/Storage/ConfigStorageTestBase.php:118
core/modules/config/lib/Drupal/config/Tests/Storage/ConfigStorageTestBase.php:120

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

disasm’s picture

Attached is a patch handling the issues I found that ARE NOT handled above. Above issues still need to be resolved.

sun’s picture

Status: Active » Needs work
Issue tags: +Configuration system

Tagging.

Do we use "public" for all test methods now...? I'm not aware of that.

gdd’s picture

Status: Needs work » Needs review
FileSize
4.5 KB

Almost all these cleanups have already been done, and I also don't believe that we're using public for test methods now. At least the other ones I spot checked aren't doing that.

So the only thing left is the small cleanups for ConfigFileContentTest which are all the rerolled patch is now.

disasm’s picture

Status: Needs review » Needs work
Issue tags: +Configuration system

The last submitted patch, 1743072-file-content-test-cleanup-3.patch, failed testing.

mtift’s picture

Here's a re-roll. Looks like a pretty straightforward fix.

mtift’s picture

Status: Needs work » Needs review
mtift’s picture

Status: Needs review » Needs work
Issue tags: +Novice, +Needs reroll
LinL’s picture

Assigned: disasm » Unassigned
Status: Needs work » Needs review
Issue tags: -Needs reroll
FileSize
4.9 KB

Re-rolled. As before, plus I changed "an" to "a".

TR’s picture

Status: Needs review » Reviewed & tested by the community

Looks fine. Almost all the changes are to comments. Let's commit this and move on.

TR’s picture

Issue summary: View changes

Updated issue summary.

Xano’s picture

Xano’s picture

webchick’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Fixed

Nice clean-up.

Committed and pushed to 8.x. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.