I assume that we are now in code cleanup phase. I use PhpStorm to find possible bugs and problems in the Drupal 8 core. Normally I will not alter code flow. If I find problems in a file, which I will not fix, but find suspicious. I'll mention it in the text here.

For changes in the PHP Documentation I use this node as guide: http://drupal.org/node/1354

What are my main tasks:

  • I usually add types to PHPDoc structures (main task for me)
  • Remove unused variables inside function, when no meaning is found what so ever
  • Unharmful declare variables which are used without init if mentioned and logically by my IDE
  • I add "array" to function signatures if that is the only possible and requested type for that argument.
  • Adding @throws to PHPDoc if an Exception can be occur inside a function
  • I do not touch any kind of unit test files. Not even the documentation of functions inside

Checked: XMLRPC module file.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ro-no-lo’s picture

Issue summary: View changes

Removed a $ sign.

ro-no-lo’s picture

Issue summary: View changes

Added Details.

areke’s picture

Issue summary: View changes
Status: Needs review » Needs work
Issue tags: +Needs reroll

Ok, I guess the patch looks fine; however, it does need to be rebased against the current HEAD.

zvischutz’s picture

Assigned: Unassigned » zvischutz

will take the re-roll on me

InternetDevels’s picture

Status: Needs work » Needs review
FileSize
1.79 KB
8.88 KB
PawelR’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me.

amateescu’s picture

I assume that we are now in code cleanup phase

Unfortunately, that's not really true even almost a year after this issue was opened.

The patch does look good but there's a big architectural cleanup patch for the XML-RPC system at #1979040: Rewrite XML RPC module to services and plugins that will be very painful to reroll if this gets in. Can we please postopone it on that issue?

alexpott’s picture

Status: Reviewed & tested by the community » Postponed
Issue tags: -Needs reroll
greggles’s picture

Project: Drupal core » xmlrpc
Version: 8.0.x-dev »
Component: xml-rpc system » Code
Status: Postponed » Reviewed & tested by the community

After #1285726-48: Remove XML-RPC moving this to the contributed module home for xmlrpc issues.

Back to rtbc for contrib?

drumm’s picture

Version: » 8.x-1.x-dev

Status: Reviewed & tested by the community » Needs work
fgm’s picture

Status: Needs work » Needs review
FileSize
12.91 KB
11.09 KB

Rerolled now that it's in contrib, adding a number of missing comments, too.

Also changed call signature : false|string|array doesn't cover it entirely, as results may be struct/array too, so it's just a "mixed" IMO.

  • fgm committed 81fdf05 on 8.x-1.x
    Issue #1967430 by fgm, ronan.orb: xmlrpc module. PHP and APIDoc Cleanups...
fgm’s picture

Status: Needs review » Fixed

Committed to 8.x-1.x, thanks.

Status: Fixed » Closed (fixed)

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