Commit e651fa5a authored by Erick Hitter's avatar Erick Hitter
Browse files

PHPCS fixes

parent a06169cf
<?php
/**
* Plugin Name: Cron Control
* Plugin URI: https://vip.wordpress.com/
......@@ -15,7 +14,7 @@
namespace Automattic\WP\Cron_Control;
// Load basics needed to instantiate plugin.
require __DIR__ . '/includes/abstract-class-singleton.php';
require __DIR__ . '/includes/class-singleton.php';
// Instantiate main plugin class, which checks environment and loads remaining classes when appropriate.
require __DIR__ . '/includes/class-main.php';
......
<?php
/**
* Abstract singleton for plugin's main classes
*
* @package a8c_Cron_Control
*/
namespace Automattic\WP\Cron_Control;
/**
* Singleton Class
*/
abstract class Singleton {
/**
* Class instance
*
* @var array
*/
private static $__instances = array();
/**
* Instantiate the class
*
* @return self
*/
public static function instance() {
$caller = get_called_class();
......@@ -20,6 +35,9 @@ abstract class Singleton {
return self::$__instances[ $caller ];
}
/**
* Singleton constructor
*/
protected function __construct() {}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment