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 /plugins/VisitorInterest/API.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 'plugins/VisitorInterest/API.php')
-rw-r--r-- | plugins/VisitorInterest/API.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/VisitorInterest/API.php b/plugins/VisitorInterest/API.php index 4dd920aeaf..78b927a9ed 100644 --- a/plugins/VisitorInterest/API.php +++ b/plugins/VisitorInterest/API.php @@ -20,9 +20,8 @@ class Piwik_VisitorInterest_API static public function getInstance() { if (self::$instance == null) - { - $c = __CLASS__; - self::$instance = new $c(); + { + self::$instance = new self; } return self::$instance; } |