#5643: [PATCH] Correct non standard conform code and "else if"
--------------------------------+-------------------------------------------
    Reporter:  davidpersson     |          Type:  Enhancement
      Status:  new              |      Priority:  Low        
   Milestone:  1.2.x.x          |     Component:  General    
     Version:  RC3              |      Severity:  Minor      
    Keywords:  coding standard  |   Php_version:  n/a        
Cake_version:  1.2.0.7692 RC3   |  
--------------------------------+-------------------------------------------
 Some parts of the core libs (e.g. TimeHelper) still partially use the
 underscore syntax for variable naming instead of the camelCase syntax.
 These may be leftovers from the prior shift to new coding standards.



 Some docblocks (e.g. Inflector::camelCase) don't reflect the new camelCase
 syntax for variables.



 Smaller typos (e.g. no space between {{{ if }}} and {{{ ( }}} can be found
 throughout the core libs.



 The coding standards (in the cookbook) are explicit for the above cases
 but don't state anything about {{{ elseif }}} / {{{ else if }}}.

 I would assume {{{ else if }}} would be the "more standard conform" way.



 Anyway I'm attaching a patch which corrects most cases mentioned above:
 {{{
 if(...)            >>> if (...)
 for(...)           >>> for (...)
 foreach(...)       >>> foreach (...)
 while(...)         >>> while (...)
 switch(...)        >>> switch (...)
 (...){             >>> (...) {
 elseif             >>> else if
 $ab_cd             >>> $abCd
 }}}

 I hope this patch is any use.

 P.s.: The patch is based on Revision 7768

-- 
Ticket URL: <https://trac.cakephp.org/ticket/5643>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tickets cakephp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to