maniaplanet / netbeans-psr

Netbeans settings to comply to PHP's PSR 1 & 2
56 stars 9 forks source link

Anonymous functions indentation problem #5

Open AntonioCS opened 9 years ago

AntonioCS commented 9 years ago

Hey, Would it be possible to properly indent anonymous functions? This is what I have:

$data['data'] = $this->cache(
            $entities_cache_key,
            function() use($entitiesGenerator, $user, $ids) {
                return $entitiesGenerator
                    ->generateEntities($user, $ids);
            }, $user_id !== 0
        );

but if I run the auto format I get this:

$data['data'] = $this->cache(
            $entities_cache_key,
            function() use($entitiesGenerator, $user, $ids) {
            return $entitiesGenerator
                    ->generateEntities($user, $ids);
            }, $user_id !== 0
        );

This is just a simple example there are cases where this is much serious. Is this possible to correct?

Thanks

head1328 commented 9 years ago

same problem with netbeans 8.0.2 under osx