PacketFence - BTS - PacketFence
View Issue Details
0000469PacketFencerefactoringpublic2008-11-07 16:492015-02-13 15:35
obilodeau 
 
normaltweakalways
closedopen 
 
 
0000469: use more constants throughout the modules
Lets aim for 0% of magic strings or numbers.

Use 'use constant' when possible but remember limitation that in some places (like method calls) you need to prevent bareword quoting (with a +). In these cases, I think a 'use Readonly;' with a $ALL_CAPS variable is more readable and will die on attempts to redefine.

If you didn't get any of the above, ask Olivier what to do ;)
No tags attached.
parent of 0000915resolved  hardcoded 'reg' and 'unreg' node status should be refactored into constants 
Issue History
2008-11-07 16:49user4New Issue
2009-01-12 13:25user4Category1.8.0 => 1.8.1
2009-03-03 15:21user4Category1.8.1 => 1.8.2
2009-04-13 13:35user4Category1.8.2 => 1.8.3
2009-06-05 08:53user4ProjectPacketFence => PacketFence 1.9
2010-04-15 17:43obilodeauProjectPacketFence 1.9 => PacketFence
2010-05-04 13:46obilodeauStatusnew => assigned
2010-05-04 13:46obilodeauAssigned To => obilodeau
2010-05-04 13:47obilodeauReporteruser4 => aarchi10
2010-05-04 13:47obilodeauSeverityfeature => tweak
2010-05-04 13:47obilodeauCategory => refactoring
2010-05-04 13:48obilodeauNote Added: 0001527
2010-05-04 13:48obilodeauReporteraarchi10 => obilodeau
2010-05-04 13:48obilodeauRelationship addedparent of 0000915
2010-05-04 13:51obilodeauDescription Updated
2011-01-18 11:43obilodeauTarget Version => trunk
2012-10-19 15:03fgaudreaultAssigned Toobilodeau =>
2012-10-19 15:03fgaudreaultTarget Versiondevel => general
2015-02-13 15:35lmunroNote Added: 0003742
2015-02-13 15:35lmunroStatusassigned => closed

Notes
(0001527)
obilodeau   
2010-05-04 13:48   
Seems like mantis doesn't like updating a bug with a deleted user. Setting reporter to myself.
(0003742)
lmunro   
2015-02-13 15:35   
No longer relevant.