Problem/Motivation

Arrays in the module are not updated with short array syntax.

Proposed resolution

Convert all the arrays to short array syntax.

Remaining tasks

N/A

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Comments

pvsureshmca created an issue. See original summary.

pvsureshmca’s picture

StatusFileSize
new1.64 KB
pvsureshmca’s picture

Status: Needs work » Needs review
pvsureshmca’s picture

Assigned: pvsureshmca » Unassigned
Aanal.addweb’s picture

Status: Needs review » Needs work
StatusFileSize
new7.79 MB

@pvsureshmca, Thanks for correcting this standard error, But I found some more files in which this change should be reflected.
Also, You can check the review of standard missing file errors in pareview.sh. I attached one screenshot which indicates the same.
Move to Needs work As files are still remaining.

dww’s picture

Category: Bug report » Task
Priority: Major » Normal

This is not a major bug. Cosmetic code-style fixes are a normal task (at most).

Furthermore, @dhwani.addweb: some of those files you're talking about aren't even "Drupal" files as such. They're a hard-coded copy of an external library that should be removed entirely and loaded via Composer. See #2711559: Set phpMailer as a external library using composer (and update it to 6.0).

Cheers,
-Derek

ToxaViking’s picture

StatusFileSize
new17.74 KB

Replaced array to short syntax and replaces t() to $this->t() at classes

ToxaViking’s picture

Status: Needs work » Needs review
dww’s picture

Status: Needs review » Needs work

Can we keep the t() to $this->t() out of this patch and handle that in a separate issue? Combining unrelated changes in a single patch/issue makes life difficult for everyone.

Thanks,
-Derek

ToxaViking’s picture

StatusFileSize
new14.52 KB

Edited patch. Removed changes for t()

ToxaViking’s picture

Status: Needs work » Needs review
nkoporec’s picture

Status: Needs review » Reviewed & tested by the community

Tested latest patch and the issues are removed.Thanks @ToxaViking

wundo’s picture

Status: Reviewed & tested by the community » Needs work

This patch needs a re-roll as most of the long array syntax were already fixed by other issues.

  • wundo committed 0ddab31 on 8.x-1.x
    Issue #2930973: Updating SMTPMailSystem.php to short array syntax
    
  • wundo committed b4bd35b on 8.x-1.x
    Issue #2930973: Updating smtp.module to short array syntax
    
  • wundo committed ef2d577 on 8.x-1.x
    Issue #2930973: Updating SmtpTest.php to short array syntax
    
bkosborne’s picture

There are three commits towards this issue but it's still open? Is it resolved?

dww’s picture

Status: Needs work » Needs review
StatusFileSize
new552 bytes

Almost. Other than the upstream source from PHPMailer, there are only 2 remaining usages (in doc comments, not code).

For completeness, this would fix the last of it.

chris matthews’s picture

Status: Needs review » Reviewed & tested by the community

RTBC'd @dww's patch in #16.

wundo’s picture

Status: Reviewed & tested by the community » Fixed
dww’s picture

Status: Fixed » Reviewed & tested by the community

Did you not push the commit? I just pulled and as of commit 90c44f68792 those code comments are still using array().

Thanks,
-Derek

wundo’s picture

Status: Reviewed & tested by the community » Fixed

Yes, I missed the push, sorry.

  • wundo committed d35a72b on 8.x-1.x authored by dww
    Issue #2930973 by ToxaViking, pvsureshmca, dww, Aanal.addweb, wundo:...
dww’s picture

Cool, thanks!

Cheers,
-Derek

Status: Fixed » Closed (fixed)

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