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

mulit-line code within parentheses followed by curly brace indent issue #4

Closed
georgexsh opened this issue Sep 3, 2011 · 5 comments
Closed

Comments

@georgexsh
Copy link

I just downloaded your vim php indent script, it was handy
buy I found following php code couldn't be well indented:

<?php
if(func_that_has_long_name_a() or                    
    func_that_has_long_name_b()){   
        $suffix = date('Y-m-d') . '.dump.gz';
    } else{
        $suffix = date('w') . '.dump.gz';
    } 

I'm using vim 7.2.

@2072
Copy link
Owner

2072 commented Dec 1, 2011

That's one of the current limitations of the script, I'll take a look at it when I'll have some time.

@paulhkulla
Copy link

Is this the same issue as:

    public function __construct(TodoRepositoryInterface $repo,
        TaskCollectionInterface $collection)
{

}

instead of

    public function __construct(TodoRepositoryInterface $repo,
        TaskCollectionInterface $collection)
    {

    }

?

@2072
Copy link
Owner

2072 commented Mar 5, 2014

nope that's something different :-/

@2072
Copy link
Owner

2072 commented Mar 5, 2014

@georgexsh: if you're still here, this should work. Sorry it took so long (3 years! Oo),

@georgexsh
Copy link
Author

@2072 thanks for your updates!
It is indeed a very long time! It's long enough that I dont write php code any more :)

@2072 2072 closed this as completed Mar 7, 2014
2072 added a commit that referenced this issue Jun 16, 2014
…e condition is put on the same line as the following '{' (complement to issue #4)
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

3 participants