[wp-trac] [WordPress Trac] #55692: Extra space at the time of initialization of value

WordPress Trac noreply at wordpress.org
Sat May 7 14:13:44 UTC 2022

#55692: Extra space at the time of initialization of value
 Reporter:  rajeshraval786  |       Owner:  (none)
     Type:  enhancement     |      Status:  closed
 Priority:  normal          |   Milestone:
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:  invalid
 Keywords:                  |     Focuses:  coding-standards
Changes (by costdev):

 * status:  new => closed
 * version:  trunk =>
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


 Hi @rajeshraval786, welcome to Trac and thanks for working to ensure that
 WordPress Core adheres to the coding standard!

 This equals sign is aligned with the equals sign in the assignment above
 it, so it's actually in accordance with the coding standard. Phew!

 If you have ran `composer install` on your checkout of the repository, you
 can run this in your terminal to check this file (or any file) against the
 coding standard:

 vendor/bin/phpcs src/wp-admin/admin-ajax.php

 - Before the patch, all will be fine.
 - After the patch, this is the result:

  156 | WARNING | [x] Equals sign not aligned with surrounding assignments;
 expected 12 spaces but found 1 space

 I'll close this ticket as `invalid` as this is the expected alignment.

Ticket URL: <https://core.trac.wordpress.org/ticket/55692#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list