Use new code style
This commit is contained in:
@ -115,7 +115,5 @@ class Site_Query extends Query {
|
||||
public function __construct($query = array()) {
|
||||
|
||||
parent::__construct($query);
|
||||
|
||||
} // end __construct;
|
||||
|
||||
} // end class Site_Query;
|
||||
}
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ namespace WP_Ultimo\Database\Sites;
|
||||
// Exit if accessed directly
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
use \WP_Ultimo\Database\Engine\Enum;
|
||||
use WP_Ultimo\Database\Engine\Enum;
|
||||
|
||||
/**
|
||||
* Site Types.
|
||||
@ -49,8 +49,7 @@ class Site_Type extends Enum {
|
||||
static::EXTERNAL => 'wu-bg-blue-200 wu-text-blue-700',
|
||||
static::MAIN => 'wu-bg-pink-200 wu-text-pink-700',
|
||||
);
|
||||
|
||||
} // end classes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an array with values => labels.
|
||||
@ -67,7 +66,5 @@ class Site_Type extends Enum {
|
||||
static::PENDING => __('Pending', 'wp-ultimo'),
|
||||
static::MAIN => __('Main Site', 'wp-ultimo'),
|
||||
);
|
||||
|
||||
} // end labels;
|
||||
|
||||
} // end class Site_Type;
|
||||
}
|
||||
}
|
||||
|
@ -22,11 +22,11 @@ defined('ABSPATH') || exit;
|
||||
final class Sites_Meta_Table extends Table {
|
||||
|
||||
/**
|
||||
* Table prefix, including the site prefix.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @var string
|
||||
*/
|
||||
* Table prefix, including the site prefix.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @var string
|
||||
*/
|
||||
protected $prefix = '';
|
||||
|
||||
/**
|
||||
@ -63,8 +63,7 @@ final class Sites_Meta_Table extends Table {
|
||||
public function __construct() {
|
||||
|
||||
parent::__construct();
|
||||
|
||||
} // end __construct;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setup the database schema
|
||||
@ -76,7 +75,5 @@ final class Sites_Meta_Table extends Table {
|
||||
protected function set_schema() {
|
||||
|
||||
$this->schema = false;
|
||||
|
||||
} // end set_schema;
|
||||
|
||||
} // end class Sites_Meta_Table;
|
||||
}
|
||||
}
|
||||
|
@ -62,14 +62,14 @@ class Sites_Schema extends Schema {
|
||||
'name' => 'domain',
|
||||
'type' => 'varchar',
|
||||
'searchable' => true,
|
||||
'sortable' => true
|
||||
'sortable' => true,
|
||||
),
|
||||
|
||||
array(
|
||||
'name' => 'path',
|
||||
'type' => 'varchar',
|
||||
'searchable' => true,
|
||||
'sortable' => true
|
||||
'sortable' => true,
|
||||
),
|
||||
|
||||
array(
|
||||
@ -147,5 +147,4 @@ class Sites_Schema extends Schema {
|
||||
),
|
||||
|
||||
);
|
||||
|
||||
} // end class Sites_Schema;
|
||||
}
|
||||
|
@ -22,11 +22,11 @@ defined('ABSPATH') || exit;
|
||||
final class Sites_Table extends Table {
|
||||
|
||||
/**
|
||||
* Table prefix, including the site prefix.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @var string
|
||||
*/
|
||||
* Table prefix, including the site prefix.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @var string
|
||||
*/
|
||||
protected $prefix = '';
|
||||
|
||||
/**
|
||||
@ -63,8 +63,7 @@ final class Sites_Table extends Table {
|
||||
public function __construct() {
|
||||
|
||||
parent::__construct();
|
||||
|
||||
} // end __construct;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setup the database schema
|
||||
@ -76,14 +75,12 @@ final class Sites_Table extends Table {
|
||||
protected function set_schema() {
|
||||
|
||||
$this->schema = false;
|
||||
|
||||
} // end set_schema;
|
||||
}
|
||||
|
||||
/**
|
||||
* Do nothing as this table already exists.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
public function install() {} // end install;
|
||||
|
||||
} // end class Sites_Table;
|
||||
public function install() {}
|
||||
}
|
||||
|
Reference in New Issue
Block a user