Skip to Content.
Sympa Menu

comanage-dev - Re: [comanage-dev] Updated Coding Guidelines

Subject: COmanage Developers List

List archive

Re: [comanage-dev] Updated Coding Guidelines


Chronological Thread 
  • From: Benn Oshrin <>
  • To: comanage-dev <>
  • Subject: Re: [comanage-dev] Updated Coding Guidelines
  • Date: Tue, 20 Dec 2011 19:39:20 -0500

[Back to the dev list]

On 12/20/11 1:31 AM, Marie Huynh wrote:
+ $this->redirect(array('action' => 'add'));

Does this array need to be defined before being passed?

I think we should be consistent here.

$arg['action'] = 'add';
$this->redirect($arg);

seems more readable, and not significantly less compact.

I used :%s/echo/print/gc. Do I need to fix the rest of the file too
even if this ticket doesn't touch those parts?

No. The general rule is only clean up code you touch.

Incidentally, I think we'll end up with some revisions to the style guides with Cake 2 based on how things are now done. For example, everything must be scoped ('public', 'private', etc), which we've been lax with to date. I'm going to try to figure out a way to get as much of this as possible cleaned up in the transition.

-Benn-



Archive powered by MHonArc 2.6.16.

Top of Page