Closed (fixed)
Project:
Hypothesis
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
15 Apr 2019 at 08:10 UTC
Updated:
2 May 2019 at 13:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #5
rahul.shindeComment #7
rahul.shindeComment #8
amarphule commentedPort system_settings_form to ConfigFormBase as per CR https://www.drupal.org/node/1910694
Comment #9
amarphule commentedPort system_settings_form to ConfigFormBase as per CR https://www.drupal.org/node/1910694
Comment #10
bramdriesenReview of #8.
Please include an interdiff between patches. Very difficult to see what changed between patches this way... I guess most of the remarks of #8 still apply.
Not according to coding standards.
Missing PHPDoc.
Comments should be closed with a full stop. (.)
"Defaults Settings"? Should this be Default without the extra 's'?.
Not really descriptive on it's own I think. Could be improved and also maybe add a description if you cant make it descriptive enough with the title alone.
Missing full stop.
Should this be hypotesis_visibility ?
Be consistent with writing the module name. Should be with capital.
Is this the correct way to hide a title?
Module name with capital.
Module with capital.
No need to include this function if you only call the parent. Normally this is done automatically by doing the inherit.
Delete.
would be better if you would prefix all the config values with the module I think. e.g. hypothesis_pages instead of pages.
Comment #11
amarphule commentedI have created a new patch file as per https://www.drupal.org/docs/8/api/configuration-api/working-with-configu... updated suggested points mentioned in comment #10 and removed coding standard errors and warning with the help of phpcs drupal coding standard.
Comment #12
bramdriesenCode wise it looks ok. Functionality wise I didn't test this.
Comment #14
rahul.shindeMerged to the dev branch.