diff options
author | robocoder <anthon.pang@gmail.com> | 2010-10-28 22:21:55 +0400 |
---|---|---|
committer | robocoder <anthon.pang@gmail.com> | 2010-10-28 22:21:55 +0400 |
commit | 5a02ef6b6a66e47796a2a111918f613f13341fae (patch) | |
tree | cbf975c77a8f435d959697dd01c2feee28c1f742 /core/Option.php | |
parent | 7e11ec5205bacdba2d01faa10b8779a4bcbdbc38 (diff) |
peephole optimization to singletons, i.e., new self vs. $c = __CLASS__; new $c
git-svn-id: http://dev.piwik.org/svn/trunk@3270 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/Option.php')
-rw-r--r-- | core/Option.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/Option.php b/core/Option.php index 983083e7b1..5f970259dd 100644 --- a/core/Option.php +++ b/core/Option.php @@ -31,9 +31,8 @@ class Piwik_Option static public function getInstance() { if (self::$instance == null) - { - $c = __CLASS__; - self::$instance = new $c(); + { + self::$instance = new self; } return self::$instance; } |