Fixed some doc problems

This commit is contained in:
Dylan K. Taylor
2017-06-25 12:07:28 +01:00
parent c0377fc63a
commit a365c831a8
28 changed files with 50 additions and 33 deletions

View File

@ -47,7 +47,7 @@ class PharPluginLoader implements PluginLoader{
*
* @param string $file
*
* @return Plugin
* @return Plugin|null
*
* @throws \Exception
*/
@ -80,7 +80,7 @@ class PharPluginLoader implements PluginLoader{
*
* @param string $file
*
* @return PluginDescription
* @return PluginDescription|null
*/
public function getPluginDescription($file){
$phar = new \Phar($file);

View File

@ -45,6 +45,9 @@ interface Plugin extends CommandExecutor{
*/
public function onEnable();
/**
* @return bool
*/
public function isEnabled();
/**

View File

@ -137,7 +137,7 @@ abstract class PluginBase implements Plugin{
/**
* @param string $name
*
* @return Command|PluginIdentifiableCommand
* @return Command|PluginIdentifiableCommand|null
*/
public function getCommand($name){
$command = $this->getServer()->getPluginCommand($name);
@ -177,7 +177,7 @@ abstract class PluginBase implements Plugin{
*
* @param string $filename
*
* @return resource Resource data, or null
* @return resource|null Resource data, or null
*/
public function getResource($filename){
$filename = rtrim(str_replace("\\", "/", $filename), "/");

View File

@ -48,7 +48,7 @@ class ScriptPluginLoader implements PluginLoader{
*
* @param string $file
*
* @return Plugin
* @return Plugin|null
*
* @throws \Exception
*/
@ -82,7 +82,7 @@ class ScriptPluginLoader implements PluginLoader{
*
* @param string $file
*
* @return PluginDescription
* @return PluginDescription|null
*/
public function getPluginDescription($file){
$content = file($file, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);