SublimePHPCompanion icon indicating copy to clipboard operation
SublimePHPCompanion copied to clipboard

Insert namespace after file docblock

Open anlutro opened this issue 10 years ago • 3 comments

If you use the import_namespace command in a file with a file-level docblock, you get the following:

<?php

namespace Foo;
/**
 * blah blah
 */

class Bar {}

I think it should look like this instead - this is how Symfony does it, for example.

<?php
/**
 * blah blah
 */

namespace Foo;

class Bar {}

anlutro avatar Jul 03 '15 11:07 anlutro

+1

qkdreyer avatar Aug 24 '15 14:08 qkdreyer

it depends what you want to comment, file or class. If you want to comment file, then it should be before namespace(before everything) If you want to comment class, then it should be not after namespace but before class I don't think that commenting use statements is useful

mikk150 avatar Nov 13 '15 12:11 mikk150

I'm currently stuck with the weird behavior of sublime regex api...

I need some help here as I'm not really a Python programmer :-)

erichard avatar Feb 03 '16 09:02 erichard