Visibility keyword before final or abstract keyword. (#814)

This commit is contained in:
Sandertv
2017-04-13 14:58:53 +02:00
committed by SOFe
parent 80292c6c7a
commit 1c7773c5f1
17 changed files with 37 additions and 37 deletions

View File

@ -72,14 +72,14 @@ abstract class PluginBase implements Plugin{
/**
* @return bool
*/
public final function isEnabled(){
final public function isEnabled(){
return $this->isEnabled === true;
}
/**
* @param bool $boolean
*/
public final function setEnabled($boolean = true){
final public function setEnabled($boolean = true){
if($this->isEnabled !== $boolean){
$this->isEnabled = $boolean;
if($this->isEnabled === true){
@ -93,19 +93,19 @@ abstract class PluginBase implements Plugin{
/**
* @return bool
*/
public final function isDisabled(){
final public function isDisabled(){
return $this->isEnabled === false;
}
public final function getDataFolder(){
final public function getDataFolder(){
return $this->dataFolder;
}
public final function getDescription(){
final public function getDescription(){
return $this->description;
}
public final function init(PluginLoader $loader, Server $server, PluginDescription $description, $dataFolder, $file){
final public function init(PluginLoader $loader, Server $server, PluginDescription $description, $dataFolder, $file){
if($this->initialized === false){
$this->initialized = true;
$this->loader = $loader;
@ -128,7 +128,7 @@ abstract class PluginBase implements Plugin{
/**
* @return bool
*/
public final function isInitialized(){
final public function isInitialized(){
return $this->initialized;
}
@ -267,21 +267,21 @@ abstract class PluginBase implements Plugin{
/**
* @return Server
*/
public final function getServer(){
final public function getServer(){
return $this->server;
}
/**
* @return string
*/
public final function getName(){
final public function getName(){
return $this->description->getName();
}
/**
* @return string
*/
public final function getFullName(){
final public function getFullName(){
return $this->description->getFullName();
}