mirror of
https://github.com/Mibew/mibew.git
synced 2025-03-04 10:58:31 +03:00
Fix coding style in Mibew\Plugin\Utils
This commit is contained in:
parent
bf7642dab3
commit
ad5554bb52
@ -27,7 +27,7 @@ class Utils
|
|||||||
/**
|
/**
|
||||||
* Describes a valid plugin name.
|
* Describes a valid plugin name.
|
||||||
*/
|
*/
|
||||||
const pluginNameRegExp = "/^([A-Z][0-9A-Za-z]+):([A-Z][0-9A-Za-z]+)$/";
|
const PLUGIN_NAME_REG_EXP = "/^([A-Z][0-9A-Za-z]+):([A-Z][0-9A-Za-z]+)$/";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets list of plugins existing in File System.
|
* Gets list of plugins existing in File System.
|
||||||
@ -75,7 +75,7 @@ class Utils
|
|||||||
*/
|
*/
|
||||||
public static function isValidPluginName($name)
|
public static function isValidPluginName($name)
|
||||||
{
|
{
|
||||||
return (preg_match(self::pluginNameRegExp, $name) != 0);
|
return (preg_match(self::PLUGIN_NAME_REG_EXP, $name) != 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user