FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

NetBeans 6.7 autoformating issues

 
Post new topic   Reply to topic    NetBeans Forums -> PHP Users
View previous topic :: View next topic  
Author Message
kahwee



Joined: 13 Jun 2009
Posts: 1

PostPosted: Sat Jun 13, 2009 2:46 pm    Post subject: NetBeans 6.7 autoformating issues Reply with quote

Some parts of the PHP auto format tool isn't working right in NetBeans 6.7 RC2:

Bad:

Code:
   var $validate = array(
   'name' => array(
   'rule' => array('minLength', 1)
   ),
   'uri' => array(
   'rule' => array('minLength', 1)
   ),
   );


Good:

Code:
   var $validate = array(
      'name' => array(
         'rule' => array('minLength', 1)
      ),
      'uri' => array(
         'rule' => array('minLength', 1)
      ),
   );


I recall the above used to be working fine in NetBeans 6.5. This didn't look right too:

Bad:

Code:
      return $this->find('list', array(
      'conditions' => array(
      "$field_before <" => $this->datetime($time),
      'profile_id <>' => null,
      ),
      'limit' => 1,
      ));


Good:

Code:
      return $this->find('list', array(
            'conditions' => array(
               "$field_before <" => $this->datetime($time),
               'profile_id <>' => null,
            ),
            'limit' => 1,
      ));


It's not critical but it would look a lot better and helps in coding.
Back to top
View user's profile Send private message
Tomas Mysik
Posted via mailing list.





PostPosted: Mon Jun 15, 2009 11:42 am    Post subject: NetBeans 6.7 autoformating issues Reply with quote

Hi,

Dne sobota 13 Ĩervna 2009 16:46:53 kahwee napsal(a):
Quote:
Some parts of the PHP auto format tool isn't working right in NetBeans 6.7
RC2:
Bad:
Code:
var $validate = array(
'name' => array(
'rule' => array('minLength', 1)
),
'uri' => array(
'rule' => array('minLength', 1)
),
);

already reported [1]. Feel free to file a new issue whenever the behaviour is
not as expected.

Thanks,
Tomas
[1] http://www.netbeans.org/issues/show_bug.cgi?id=166550
--
Tomas Mysik
address-removed
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> PHP Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB