Fixed constants

This commit is contained in:
Dmitry Khomutov 2016-07-21 21:20:34 +06:00
commit 4fee89fb80
46 changed files with 204 additions and 212 deletions

View file

@ -10,9 +10,9 @@ use Pimple\Container;
*/
class Factory
{
const TYPE_ARRAY = "array";
const TYPE_CALLABLE = "callable";
const INTERFACE_PHPCI_PLUGIN = '\PHPCensor\Plugin';
const TYPE_ARRAY = "array";
const TYPE_CALLABLE = "callable";
const INTERFACE_PLUGIN = '\PHPCensor\Plugin';
private $currentPluginOptions;
@ -79,9 +79,9 @@ class Factory
$reflectedPlugin = new \ReflectionClass($className);
if (!$reflectedPlugin->implementsInterface(self::INTERFACE_PHPCI_PLUGIN)) {
if (!$reflectedPlugin->implementsInterface(self::INTERFACE_PLUGIN)) {
throw new \InvalidArgumentException(
"Requested class must implement " . self:: INTERFACE_PHPCI_PLUGIN
"Requested class must implement " . self:: INTERFACE_PLUGIN
);
}