<?sphp $this->text('pagetitle') ?>
 
Home of the Squeezebox™ & Transporter® network music players.

CodingStyleGuide

From SqueezeboxWiki

Revision as of 08:05, 23 June 2010 by Soulkeeper (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Do use:

if (!$foo) {    ...    return;}

Not:

return unless $foo;

Avoid:

my $bar = shift || return;

unless certain that $bar will never see 0 as a valid value or string.