Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insert namespace after file docblock #41

Open
anlutro opened this issue Jul 3, 2015 · 3 comments
Open

Insert namespace after file docblock #41

anlutro opened this issue Jul 3, 2015 · 3 comments

Comments

@anlutro
Copy link
Contributor

anlutro commented Jul 3, 2015

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 {}
@qkdreyer
Copy link

+1

@mikk150
Copy link

mikk150 commented Nov 13, 2015

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

@erichard
Copy link
Owner

erichard commented Feb 3, 2016

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 :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants