Parts of /core/modules/comment/lib/Drupal/comment/Plugin/views/row/Rss.php feature 3 space and 5 space indentation.

Beta phase evaluation

Reference: https://www.drupal.org/core/beta-changes
Issue category Task
Unfrozen changes Unfrozen because it only changes code to match coding standards and improves documentation.
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

larowlan’s picture

Status: Active » Postponed

postponed till Dec 31 on advice from @damiankloip

xjm’s picture

Dec. 1. :) Thanks @larowlan.

nick_schuch’s picture

Found indentation and fixed.

nick_schuch’s picture

Status: Postponed » Needs review
tim.plunkett’s picture

Status: Needs review » Postponed

To avoid introducing needless conflicts with functional patches that can't be committed, we're postponing all coding standards patches until after December 1st: #1805996-54: [META] Views in Drupal Core

mgifford’s picture

Issue summary: View changes
Status: Postponed » Needs work
richardcanoe’s picture

Status: Needs work » Needs review
Issue tags: +Amsterdam2014
FileSize
522 bytes

Rss.php file location has changed Patch needed re-roll

jhedstrom’s picture

Status: Needs review » Reviewed & tested by the community

+1 for coding standards fixes!

tim.plunkett’s picture

Status: Reviewed & tested by the community » Needs work

Please, can we replace these PHP4-style var declarations with public, and add docblocks? It seems a bit much to fix the indentation of undocumented and old declarations.

larowlan’s picture

ha things change in two years

jibran’s picture

Issue tags: +VDC
dawehner’s picture

Issue tags: +Novice

Let's mark this as novice task.

joshi.rohit100’s picture

Status: Needs work » Needs review
FileSize
474 bytes

Updated. Please check

dawehner’s picture

Thank you for the patch!

+++ b/core/modules/comment/src/Plugin/views/row/Rss.php
@@ -24,8 +24,8 @@
+  public $base_table = 'comment';
+  public $base_field = 'cid';

They could be protected.

andythomnz’s picture

Issue tags: +CatalystAcademy
FileSize
480 bytes
484 bytes

Hey, based on dawehner's feedback I have changed them to protected.

Patch and interdiff are attached.
This is my second contribution to Drupal core :-)

Wim Leers’s picture

Status: Needs review » Reviewed & tested by the community

Thanks for incorporating #14! Looks good to go :)

larowlan’s picture

thanks

alexpott’s picture

Status: Reviewed & tested by the community » Needs work
+++ b/core/modules/comment/src/Plugin/views/row/Rss.php
@@ -24,8 +24,8 @@
-   var $base_table = 'comment';
-   var $base_field = 'cid';
+  protected $base_table = 'comment';
+  protected $base_field = 'cid';

If we are fixing this we should be making the property declaration completely comply with coding standards.

Wim Leers’s picture

@Alex: I was contemplating whether to ask to do that, I figured it wasn't worth it; I figured wrong :) Sorry about that.

joshi.rohit100’s picture

One question - Where are these two properties being used ? I mean, these are not used anywhere in RSS.php.

andythomnz’s picture

FileSize
44.78 KB

@joshi.rohit100
I'm a bit confused as to what the intentions of the variables $base_table, $base_field, and $entityTypeId are.
The variables were previously changed by myself from public to protected at the request of @dawehner.

Being that these variables are now protected, they will only be available from classes that extend the Rss class.
In a Terminal window I ran grep -nriI "extends Rss" *, in an attempt to find other files that extend the Rss class, and therefore would be able to use the variables. A screenshot is attached, but as far as I can tell there are no other files that would be able to use the variables. (also there are no other instances of the variables in the Rss.php file). Which leads me to believe the variables aren't being used at all?

I'm not really sure where to go from here, this is getting a bit out of my depth. Perhaps the variables needed to be left as public so they can be used? I'll let someone who knows more about this take over from here :-)

larowlan’s picture

Issue summary: View changes
FileSize
28.67 KB

@andythomnz also the other way

RowPluginBase uses it.

So to address #18 you need to add docblocks for them

tadityar’s picture

Status: Needs work » Needs review
FileSize
551 bytes

Should the doc be like this?

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

For this limited amount of scope, its the right way. Later, if someone thinks its worth, we could cameCase them.

jhedstrom’s picture

Issue summary: View changes

I added a beta phase evaluation to the issue summary.

webchick’s picture

Status: Reviewed & tested by the community » Fixed
Issue tags: +SprintWeekend2015

Lookin' good!

Committed and pushed to 8.0.x. Thanks!

  • webchick committed 0cf457f on 8.0.x
    Issue #1821620 by andythomnz, larowlan, joshi.rohit100, nick_schuch,...

Status: Fixed » Closed (fixed)

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