1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- =====================================
- Rule ``no_spaces_inside_parenthesis``
- =====================================
- There MUST NOT be a space after the opening parenthesis. There MUST NOT be a
- space before the closing parenthesis.
- Warning
- -------
- This rule is deprecated and will be removed on next major version
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- You should use ``spaces_inside_parentheses`` instead.
- Examples
- --------
- Example #1
- ~~~~~~~~~~
- .. code-block:: diff
- --- Original
- +++ New
- <?php
- -if ( $a ) {
- - foo( );
- +if ($a) {
- + foo();
- }
- Example #2
- ~~~~~~~~~~
- .. code-block:: diff
- --- Original
- +++ New
- <?php
- -function foo( $bar, $baz )
- +function foo($bar, $baz)
- {
- }
|