Problem/Motivation

The indentation on the docblock in \Drupal\Core\Field\Plugin\Field\FieldFormatter\TimestampAgoFormatter for the $request property is incorrect.

Proposed resolution

Fix it.

Remaining tasks

Do it.

User interface changes

None.

API changes

None.

Data model changes

None.

Beta phase evaluation

Reference: https://www.drupal.org/core/beta-changes
Issue category Task because it's a simple doc fix.
Issue priority Minor because the indentation is just wrong
Unfrozen changes Unfrozen because it only changes documentation/
Disruption None
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mpdonadio created an issue. See original summary.

Kuldip Gohil’s picture

It looks fine to me.

amitshah2007’s picture

patch file is attached.

amitshah2007’s picture

Status: Active » Needs review
sushyl’s picture

+++ b/core/lib/Drupal/Core/Entity/EntityHandlerBase.php
@@ -13,7 +13,8 @@
+ ¶

small nitpick, this will be fixed at the time of committing.It would be good to reroll before getting committed.

meramo’s picture

Rerolled. Applies without issues.

ravi.kiran’s picture

patch rerolled.

ankur7213’s picture

Status: Needs review » Needs work

The patch at #7 is not valid as the changes required are not in the scope of this issue.

Patch at #3 should be rerolled with the changes mentioned at #5.

amitshah2007’s picture

new patch file generated removing space line.

amitshah2007’s picture

Status: Needs work » Needs review
mpdonadio’s picture

Status: Needs review » Needs work

Thanks for the effort, but we are still not there.

#3 has the correct change to TimestampAgoFormatter(), but an out of scope change to EntityHandlerBase().

#7 and #9 change EntityHandlerBase(), and don't touch TimestampAgoFormatter().

All we need to do is fix the indentation in TimestampAgoFormatter() at

  /**
    * The current Request object.
    *
    * @var \Symfony\Component\HttpFoundation\Request
    */
  protected $request;

Also, when uploading new patches, you typically include an interdiff to show reviews what has changed between patch versions.

sdstyles’s picture

Status: Needs work » Needs review
FileSize
756 bytes
903 bytes

Fixed indentation in TimestampAgoFormatter.

mpdonadio’s picture

Status: Needs review » Reviewed & tested by the community

#12 looks good to me. Thanks.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 45aca27 and pushed to 8.0.x. Thanks!

  • alexpott committed 45aca27 on 8.0.x
    Issue #2555911 by amitshah2007, sdstyles, pwlravikiran, mpdonadio:...

Status: Fixed » Closed (fixed)

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