Example #1
0
 /**
  * Singleton.
  * @since 3.0
  */
 static function getInstance()
 {
     return is_null(self::$instance) ? self::$instance = new WPI_Core() : self::$instance;
 }
 /**
  * Singleton.
  *
  * @since 3.0
  *
  */
 static function getInstance() {
   if (is_null(self::$instance)) {
     self::$instance = new WPI_Core();
   }
   return self::$instance;
 }