- Issue created by @sonam_sharma
sorry! I have uploaded blank patch by mistake, soon I'll provide patch for this issue
- Assigned to roshni27
- Status changed to Needs work
over 1 year ago 4:23am 18 July 2023 - 🇮🇳India roshni27
I have applied patch #4 but its not applied cleanly .I have share screenshot of it.
- Issue was unassigned.
- Assigned to nitin_lama
- 🇮🇳India nitin_lama India
Fixed most of the phpcs issues. Only remaining warnings are:
FILE: /home/system/Documents/contribution/dark_responsive/dark_responsive.theme ------------------------------------------------------------------------------- FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES ------------------------------------------------------------------------------- 72 | WARNING | Unused variable $video_path. 75 | WARNING | Unused variable $video_path. ------------------------------------------------------------------------------- Time: 28ms; Memory: 6MB
Providing an updated patch. Please review.
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 5:57am 18 July 2023 - Status changed to Needs work
over 1 year ago 6:40am 19 July 2023 - 🇵ðŸ‡Philippines paraderojether
Hi I reviewed patch #9, and there are still remaining issues reported by phpcs shown below:
FILE: .../studenttrainees/Drupal/drupalorg-issues-site/docroot/themes/contrib/dark_responsive/dark_responsive.theme ---------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES ---------------------------------------------------------------------------------------------------------------- 72 | WARNING | Unused variable $video_path. 75 | WARNING | Unused variable $video_path. ---------------------------------------------------------------------------------------------------------------- FILE: ...s/studenttrainees/Drupal/drupalorg-issues-site/docroot/themes/contrib/dark_responsive/assets/css/style.css ---------------------------------------------------------------------------------------------------------------- FOUND 72 ERRORS AFFECTING 39 LINES ---------------------------------------------------------------------------------------------------------------- 1 | ERROR | [x] Whitespace found at end of line 4 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 4 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1 8 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 8 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1 12 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 12 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1 13 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 13 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1 14 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 14 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1 15 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 15 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1 16 | ERROR | [x] Blank lines are not allowed in class definitions 20 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 20 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1 21 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 21 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1 22 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 22 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1 23 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 23 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1 24 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 24 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1 27 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 27 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1 31 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 31 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1 32 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 32 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1 34 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found 35 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 35 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1 35 | ERROR | [x] Expected 1 space after colon in style definition; 0 found 36 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 36 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1 37 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 37 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1 42 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 42 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1 46 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 46 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1 50 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 50 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1 51 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 51 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1 55 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 55 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1 56 | ERROR | [x] Blank lines are not allowed in class definitions 61 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 61 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1 65 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 65 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1 66 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 66 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1 67 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 67 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1 68 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 68 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1 69 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 69 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1 73 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 73 | ERROR | [x] CSS colours must be defined in lowercase; expected #dadfe1 but found #DADFE1 74 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 74 | ERROR | [x] CSS colours must be defined in lowercase; expected #dadfe1 but found #DADFE1 75 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 76 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 77 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 81 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 81 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1 82 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 82 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1 ---------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 72 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------------------------------------- FILE: ...rs/studenttrainees/Drupal/drupalorg-issues-site/docroot/themes/contrib/dark_responsive/assets/js/custom.js ---------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------------------------------------------------- 1 | ERROR | [x] Expected 1 newline at end of file; 0 found ---------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------------------------------------- Time: 307ms; Memory: 10MB
Command used:
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig,js dark_responsive
Please check.
Thank you. - First commit to issue fork.
- Status changed to Needs review
over 1 year ago 8:53am 19 July 2023 - 🇮🇳India kpoornima
Fixed most of the phpcs issues. Only 2 remaining warnings are:
FILE: /var/www/html/web/modules/contrib/dark_responsive-3374671/dark_responsive.theme ------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES ------------------------------------------------------------------------------------- 72 | WARNING | Unused variable $video_path. 75 | WARNING | Unused variable $video_path. ------------------------------------------------------------------------------------- Time: 468ms; Memory: 6MB
Please Merge MR3
- Status changed to Needs work
over 1 year ago 3:47pm 19 July 2023 - Status changed to Needs review
over 1 year ago 2:04pm 14 August 2023 - Status changed to Needs work
over 1 year ago 2:28pm 14 August 2023 - First commit to issue fork.
- Status changed to Needs review
11 months ago 3:05pm 14 December 2023 - Status changed to Needs work
11 months ago 4:05am 4 January 2024 - 🇵ðŸ‡Philippines paraderojether
Hi sakthi_dev,
I reviewed MR!3, applied against Dark Responsive 1.0.x-dev with Drupal core 10.1.7, and there are still remaining issues reported by phpcs shown below:
FILE: /Users/jetherparadero/Distributions/drupalorgissues/web/themes/contrib/dark_responsive/dark_responsive.theme ------------------------------------------------------------------------------------------------------------------ FOUND 2 ERRORS AND 2 WARNINGS AFFECTING 3 LINES ------------------------------------------------------------------------------------------------------------------ 37 | ERROR | [x] Expected 1 space after IF keyword; 0 found 37 | ERROR | [x] Expected 1 space after closing parenthesis; found 0 74 | WARNING | [ ] Unused variable $video_path. 77 | WARNING | [ ] Unused variable $video_path. ------------------------------------------------------------------------------------------------------------------ PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------ FILE: /Users/jetherparadero/Distributions/drupalorgissues/web/themes/contrib/dark_responsive/theme-settings.php --------------------------------------------------------------------------------------------------------------- FOUND 30 ERRORS AFFECTING 17 LINES --------------------------------------------------------------------------------------------------------------- 21 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 21 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1 22 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 22 | ERROR | [x] Array indentation error, expected 3 spaces but found 2 23 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 23 | ERROR | [x] Array indentation error, expected 3 spaces but found 2 24 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 24 | ERROR | [x] Array indentation error, expected 3 spaces but found 2 25 | ERROR | [x] Array indentation error, expected 3 spaces but found 4 26 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 29 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 29 | ERROR | [x] Array indentation error, expected 4 spaces but found 2 30 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 30 | ERROR | [x] Array indentation error, expected 4 spaces but found 2 31 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 31 | ERROR | [x] Array indentation error, expected 4 spaces but found 2 32 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 32 | ERROR | [x] Array indentation error, expected 4 spaces but found 2 33 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 33 | ERROR | [x] Array closing indentation error, expected 2 spaces but found 1 34 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 34 | ERROR | [x] Whitespace found at end of line 35 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 35 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1 36 | ERROR | [x] Array indentation error, expected 3 spaces but found 4 37 | ERROR | [x] Array closing indentation error, expected 1 spaces but found 2 38 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 38 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1 39 | ERROR | [x] Expected 1 space after IF keyword; 0 found 39 | ERROR | [x] Expected 1 space after closing parenthesis; found 0 --------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 30 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------------------------------------
Command used:
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,info,txt,md,css,js,yml,twig dark_responsive
Kindly check and advise, please.
Thank you. - 🇮🇳India zkhan.aamir
Hi,
I applied latest MR
Admin@DESKTOP-252TO6V MINGW64 ~/Desktop/projects/drupal/web/modules/contrib/dark_responsive (1.0.x) $ curl https://git.drupalcode.org/project/dark_responsive/-/merge_requests/3.diff | patch -p1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 14509 0 14509 0 0 38409 0 --:--:-- --:--:-- --:--:-- 38587 patching file README.md patching file assets/css/style.css patching file assets/js/custom.js patching file dark_responsive.theme patching file theme-settings.php
Still two warnings remaining
Admin@DESKTOP-252TO6V MINGW64 ~/Desktop/projects/drupal/web/modules/contrib $ phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,info,txt,md,css,js,yml dark_responsive/ FILE: C:\Users\Admin\Desktop\projects\drupal\web\modules\contrib\dark_responsive\dark_responsive.theme ------------------------------------------------------------------------------------------------------ FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES ------------------------------------------------------------------------------------------------------ 74 | WARNING | Unused variable $video_path. 77 | WARNING | Unused variable $video_path. ------------------------------------------------------------------------------------------------------ Time: 496ms; Memory: 10MB
- 🇮🇳India nitin_lama India
I'm unclear about the actions performed during the form submission. All I observe is the assignment of values to these variables with a URL, but it seems these variables are not being utilized.
- Status changed to Needs review
10 months ago 1:01pm 19 January 2024 - 🇮🇳India mohd sahzad
I have fixed this issue in above attached patch please review that
- Status changed to Needs work
10 months ago 3:44pm 19 January 2024 - 🇮🇹Italy apaderno Brescia, 🇮🇹
/** * @file * Implements theme_preprocess_page(). -*/ + */ + +/** + * {@inheritdoc} + */ function dark_responsive_preprocess_page(&$variables) {
A single document comment per function is used.
{@inheritdoc}
is not used for functions.+ // Footer Social Icons Variable. + $variables['show_hide_copyright'] = theme_get_setting('show_hide_copyright'); + $variables['copyright_text'] = theme_get_setting('copyright_text');
Since those lines are changed, the comment should be corrected too: those are copyright variables.
- Status changed to Needs review
10 months ago 8:59am 24 January 2024 - 🇮🇳India viren18febS
Hi , i have updated the patch with given comments , please review.
Thanks - Status changed to Needs work
10 months ago 9:23am 24 January 2024 - 🇮🇹Italy apaderno Brescia, 🇮🇹
/** * @file - * Contains theme override functions and preprocess functions + * Contains theme override functions and preprocess functions. */
The usual description for .theme files is Functions to support theming in the [theme name] theme. where [theme name] is the name of the theme reported in its .info.yml file.
/** * @file * Implements theme_preprocess_page(). -*/ + */
@file
is not used for functions.
The correct description for preprocess hooks in Implements hook_preprocess_HOOK() for [template type] templates. where [template type] is the type of templates to which the preprocess hook is applied (for example, node for node templates).+/** + * {@inheritdoc} + */ function dark_responsive_get_slider_content() {
{@inheritdoc}
is not used for functions.+/** + * @file + * Theme settings for the Dark Responsive theme. + */ +
The usual description for theme-settings.php files is Functions to support [theme name] theme settings. where [theme name] is the name of the theme reported in its .info.yml file.
+/** + * {@inheritdoc} + */ function dark_responsive_form_system_theme_settings_alter(&$form, FormStateInterface $form_state, $form_id = NULL) {
{@inheritdoc}
is not used for functions. - Status changed to Needs review
10 months ago 3:46am 30 January 2024 - Status changed to Needs work
10 months ago 9:43pm 31 January 2024 - 🇮🇹Italy apaderno Brescia, 🇮🇹
I did check all the patch, but the following change must be corrected.
else { - $video_path = base_path() .'/assets/video/background1.mp4'; + base_path() . '/assets/video/background1.mp4'; }
It does not make sense to concatenate two strings when the result is not used in any way. I do not see any warning/error about unused variables, so that change is not correct and it is not even necessary.
- 🇮🇹Italy apaderno Brescia, 🇮🇹
Also, since a MR has been already used, please let us keep using that.
- Status changed to Needs review
10 months ago 10:26pm 31 January 2024