PHP Formatting: Blank Lines
Is there any way to adjust the auto-formatting on blank lines before a namespace and before the closing brace of a class?
For instance, I'd like to be able to format my classes like:
<?php namespace Some\Name\Space;
class SomeClass {
/**
* @var
*/
public $var
/**
* Method to do some function
*
* @param SomeType $someVariable
*
* @return bool
*/
public function someFunction(SomeType $someVariable)
{
return true;
}
█████████████████████████████████████████████████████████████
}
Notice 0 blank lines before the namespace and the █ filled blank line before the class' closing brace...
Thanks
Please sign in to leave a comment.
FIle | Settings (Prefrences for Mac OS) | Code style | PHP | Blank lines.
Thanks, but neither of what I asked for is available in those settings.