[wp-trac] [WordPress Trac] #43644: Revert multiline calls to actions and filters
WordPress Trac
noreply at wordpress.org
Wed Jul 18 04:16:33 UTC 2018
#43644: Revert multiline calls to actions and filters
-------------------------------------+-------------------------------------
Reporter: johnbillion | Owner: johnbillion
Type: task (blessed) | Status: accepted
Priority: normal | Milestone: 5.0
Component: General | Version: trunk
Severity: normal | Resolution:
Keywords: needs-patch 2nd-opinion | Focuses: docs, coding-standards
-------------------------------------+-------------------------------------
Comment (by pento):
To address this issue, I'm leaning towards adding this to the
`phpcs.xml.dist` file:
{{{
<rule ref="PEAR.Functions.FunctionCallSignature">
<properties>
<property name="allowMultipleArguments" value="false"/>
<property name="requiredSpacesAfterOpen" value="1"/>
<property name="requiredSpacesBeforeClose" value="1"/>
</properties>
</rule>
}}}
This will ensure that each parameter is on a seperate line.
@johnbillion: Will the PHPdoc parser be able to handle the format that
@ocean90 [comment:4 proposed earlier]?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43644#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list