jeremykendall

Netbeans Formatting Grief

Feb 20th, 2012
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.68 KB | None | 0 0
  1. <?php
  2.  
  3. // Netbeans formatting rules are making me a little batty.  Multi-line params and closure indentation are
  4. // all over the place, and it's making PHP_CodeSniffer throw all sorts of errors (as it should).
  5. // I've tried to create custom formatting rules to deal with this but haven't had any success.
  6. //
  7. // I'm currently running Netbeans 7.1
  8. //
  9. // Anyone else have this issue?  Anyone have a solution?
  10.  
  11. $container['oauth_client'] = function ($c) {
  12.         $config = $c['application_config'];
  13.         return new OAuth2\Client(
  14.                 $config['app']['key'],
  15.                 $config['app']['secret'],
  16.                 $config['app']['oauthCallback']
  17.         );
  18.     };
Advertisement
Add Comment
Please, Sign In to add comment