Fix the issues reported by phpcs

Created on 11 January 2023, almost 2 years ago
Updated 12 August 2024, 3 months ago
šŸ“Œ Task
Status

Needs work

Version

1.0

Component

Code

Created by

šŸ‡®šŸ‡³India samit.310@gmail.com

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Status changed to Needs work over 1 year ago
  • šŸ‡®šŸ‡¹Italy apaderno Brescia, šŸ‡®šŸ‡¹
    +  3. Navigate to Administration > Configuration > System > Recently read
    +        config to configure.

    The last line is not indented corrected. It should start 2 spaces to the right of the previous line.

     /**
    - * Class RecentlyReadTypeForm.
    + * The Class RecentlyReadTypeForm.

    That description is still repeating the class name, while it should describe what the class does.

    -  protected $defaultTheme = 'bartik';
    +  protected $defaultTheme = 'stark';

    The report shown in the issue summary does not say that the default value for that property must be changed.

  • Status changed to Needs review over 1 year ago
  • šŸ‡®šŸ‡³India mrinalini9 New Delhi

    Updated patch #6 by addressing #11, please review it.

    Thanks!

  • Hello Folks !!

    I have applied and tested the #12patch

    and the phpcs issues has been successfully fixed! The patch was tested on Drupal 9.5.9 and PHP 8.2.4. To provide you with a comprehensive view, I will be adding both a before and after screenshot.

    Thank you for your support!!

  • Status changed to Needs work over 1 year ago
  • šŸ‡®šŸ‡¹Italy apaderno Brescia, šŸ‡®šŸ‡¹
    -       recently read articles.
    -  3. Navigate to Administration > Configuration > System > Recently read config to
    -       configure.
    +  recently read articles.
    +  3. Navigate to Administration > Configuration > System > Recently read
    +  config to configure.
       4. From the "Configuration" tab, enable entity types for which you want
    -       to track recently read items. There are also options for deleting the records:
    -       Time based, Count based, or Never.
    -  5. From the "List" tab, entities can be individually configured by
    -       selecting the "Edit" option.
    +  to track recently read items. There are also options for deleting the records:
    +  Time based, Count based, or Never.
    +  5. From the "List" tab, entities can be individually configured by selecting
    +  the "Edit" option.
       6. Navigate to Administration > Structure > Views to create a new view for
    -       Recently read content (Content) just add a relationship to Recently read
    -       with Require this relationship option checked. See (Recently read content)
    -       as an example.
    +  Recently read content (Content) just add a relationship to Recently read
    +  with Require this relationship option checked. See (Recently read content) as
    +  an example.

    I apologize if I have not been clear. This is how that text should be formatted.

      1. Navigate to Administration > Extend and enable the module.
      2. When the module is enabled, it automatically creates a view block for
         recently read articles.
      3. Navigate to Administration > Configuration > System > Recently read config
         to configure.
      4. From the "Configuration" tab, enable entity types for which you want
         to track recently read items. There are also options for deleting the
         records: Time based, Count based, or Never.
      5. From the "List" tab, entities can be individually configured by
         selecting the "Edit" option.
      6. Navigate to Administration > Structure > Views to create a new view for
         Recently read content (Content) just add a relationship to Recently read
         with Require this relationship option checked. See (Recently read content)
         as an example.
    
    +/**
    + * @file
    + * Install, update and uninstall functions for the Recently Read module.
    + */
    +

    A comma is missing before and.

     /**
    - * Class RecentlyReadTypeForm.
    + * Defines the Recently read type form.
      */

    the Recently read type form does not say what the form does.

     /**
    - * Interface RecentlyReadServiceInterface.
    + * The Interface RecentlyReadServiceInterface.
      *

    That is still just repeating the interface name. The article at the beginning does not change that.

  • Assigned to imustakim
  • šŸ‡®šŸ‡³India imustakim Ahmedabad

    Working on this.

  • Issue was unassigned.
  • Status changed to Needs review over 1 year ago
  • šŸ‡®šŸ‡³India imustakim Ahmedabad

    Updated patch addressing suggestions mentioned in #14 šŸ“Œ Fix the issues reported by phpcs Needs review .
    Please review.

  • Hello imustakim,

    I have reviewed your patch & Implemented it on my website having Drupal version-9.5.9 And PHP version - 8.2
    I am adding screenshot(after applying the patch) for your reference.
    Please have a look.

    Thank You for your support!!!

  • Status changed to RTBC over 1 year ago
  • šŸ‡®šŸ‡³India shyam_bhatt Gujarat

    I have reviewed your patch & Implemented it on my website having Drupal version 10.0.9 And PHP version 8.1
    The patch #16 šŸ“Œ Fix the issues reported by phpcs Needs review is working fine.

    Please check the below screenshot:

  • First commit to issue fork.
  • Status changed to Needs review about 1 year ago
  • šŸ‡øšŸ‡®Slovenia DeaOm

    Corrected order of use statements and also removed static calls for loading entities, added type hint etc. Needs review as there are not adequate test, to see if anything broke.

  • First commit to issue fork.
  • Pipeline finished with Failed
    about 1 year ago
    Total: 153s
    #18663
  • Status changed to RTBC about 1 year ago
  • Rebased and tested the code. From what I see everything works like it's supposed to. The tests issued are being handled by šŸ“Œ Drupal 10 Fix deprecations in tests Needs review . Marking the issue as RTBC. Should be now ready for merge.

  • Status changed to Needs work about 1 year ago
  • šŸ‡®šŸ‡¹Italy apaderno Brescia, šŸ‡®šŸ‡¹
  • Status changed to Needs review about 1 year ago
  • Hello updated the file as per the changes suggested . Kindly review the changes
    Thank you .

  • Pipeline finished with Failed
    about 1 year ago
    Total: 347s
    #19055
  • Pipeline finished with Failed
    about 1 year ago
    Total: 314s
    #19945
  • Status changed to RTBC 3 months ago
  • šŸ‡µšŸ‡­Philippines paraderojether

    Hi

    I reviewed MR!6, applied against Recently Read 8.x-1.x-dev, and confirmed it fixes the issues reported by phpcs.

    āžœ  recently_read git:(2eb445a) curl https://git.drupalcode.org/project/recently_read/-/merge_requests/6.diff | patch -p1
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100 37599    0 37599    0     0  87599      0 --:--:-- --:--:-- --:--:-- 89521
    patching file README.txt
    patching file recently_read.info.yml
    patching file recently_read.install
    patching file recently_read.module
    patching file recently_read.views.inc
    patching file 'src/Entity/RecentlyRead.php'
    patching file 'src/Entity/RecentlyReadInterface.php'
    patching file 'src/Entity/RecentlyReadType.php'
    patching file 'src/Entity/RecentlyReadTypeInterface.php'
    patching file 'src/Form/RecentlyReadConfigForm.php'
    patching file 'src/Form/RecentlyReadTypeForm.php'
    patching file 'src/Plugin/views/relationship/RecentlyReadRelationship.php'
    patching file 'src/RecentlyReadHtmlRouteProvider.php'
    patching file 'src/RecentlyReadService.php'
    patching file 'src/RecentlyReadServiceInterface.php'
    patching file 'src/RecentlyReadStorageSchema.php'
    patching file 'src/RecentlyReadTypeListBuilder.php'
    patching file 'tests/src/Functional/RecentlyReadBlockTest.php'
    āžœ  recently_read git:(2eb445a) āœ— cd ..
    āžœ  contrib git:(main) āœ— phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig recently_read
    āžœ  contrib git:(main) āœ—

    Thank you.

  • Pipeline finished with Failed
    3 months ago
    Total: 141s
    #251471
  • Status changed to Needs work 3 months ago
  • šŸ‡®šŸ‡¹Italy apaderno Brescia, šŸ‡®šŸ‡¹
  • Pipeline finished with Failed
    3 months ago
    #251496
  • šŸ‡®šŸ‡¹Italy apaderno Brescia, šŸ‡®šŸ‡¹
  • šŸ‡®šŸ‡¹Italy apaderno Brescia, šŸ‡®šŸ‡¹

    avpaderno ā†’ changed the visibility of the branch 3332563-gitlab-ci-reports to hidden.

Production build 0.71.5 2024