aik099 / CodingStandard

The PHP_CodeSniffer coding standard I'm using on all of my projects
BSD 3-Clause "New" or "Revised" License
5 stars 2 forks source link

Empty lines at multi-line array declaration edges #48

Open aik099 opened 9 years ago

aik099 commented 9 years ago

We should disallow empty lines right after start and right before end of multi-line array.

$config = array(

    'Prefix' => 'custom-helpers',

    'EventHandlerClass' => array('class' => 'kEventHandler', 'file' => '', 'build_event' => 'OnBuild'),

    'RegisterClasses' => array(
        array('pseudo' => 'SampleHelper', 'class' => 'SampleHelper', 'file' => 'sample_helper.php', 'build_event' => ''),
    ),

);