#5643: [PATCH] Correct non standard conform code and "else if"
--------------------------------+-------------------------------------------
    Reporter:  davidpersson     |         Owner:         
        Type:  Optimization     |        Status:  new    
    Priority:  Low              |     Milestone:  1.2.x.x
   Component:  General          |       Version:  RC3    
    Severity:  Minor            |    Resolution:         
    Keywords:  coding standard  |   Php_version:  n/a    
Cake_version:  1.2.0.7692 RC3   |  
--------------------------------+-------------------------------------------
Comment (by davidpersson):

 The new patch favors {{{ elseif }}} over {{{ else if }}} and additionally
 corrects:
 {{{
 function (...)   >>> function(...)
 array('ab'=>12)  >>> array('ab' => 12)
 array('ab','cd') >>> array('ab', 'cd')
 }}}

 == What's left? ==
 The Flay class remains untouched as it is already deprecated.

 In {{{ I18n::__loadMo() }}} two variables ({{{ $o_trn and $o_msg }}})
 still use underscore syntax.

 The camelCasing of the following special variables require deeper changes.
 It may be required to deal with it in a separate ticket:
 {{{
 $title_for_layout
 $data_for_layout
 $scripts_for_layout
 $content_for_layout
 $page_title
 }}}

 {{{
 $a.$b
 'abcd'.$acd
 }}}

 {{{
 ;?>
 'abcd' ?>
 }}}

-- 
Ticket URL: <https://trac.cakephp.org/ticket/5643#comment:3>
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