diff --git a/framework/src/Maveriks/Extension/Restler.php b/framework/src/Maveriks/Extension/Restler.php index a70f1e175..c4769a9f3 100644 --- a/framework/src/Maveriks/Extension/Restler.php +++ b/framework/src/Maveriks/Extension/Restler.php @@ -145,10 +145,9 @@ class Restler extends \Luracast\Restler\Restler protected function call() { $this->dispatch('call'); - $o = & $this->apiMethodInfo; - $accessLevel = max(\Luracast\Restler\Defaults::$apiAccessLevel, - $o->accessLevel); - $object = \Luracast\Restler\Scope::get($o->className); + $o = &$this->apiMethodInfo; + $accessLevel = max(\Luracast\Restler\Defaults::$apiAccessLevel, $o->accessLevel); + $object = \Luracast\Restler\Scope::get($o->className); switch ($accessLevel) { case 3 : //protected method $reflectionMethod = new \ReflectionMethod( @@ -175,11 +174,11 @@ class Restler extends \Luracast\Restler\Restler { $classReflection = new \ReflectionClass($object); $classShortName = $classReflection->getShortName(); - $registry = \PMPluginRegistry::getSingleton(); + $registry = &\PMPluginRegistry::getSingleton(); $pluginsApiExtend = $registry->getExtendsRestService($classShortName); if ($pluginsApiExtend) { $classFilePath = $pluginsApiExtend['filePath']; - if(file_exists($classFilePath)) { + if (file_exists($classFilePath)) { require_once($classFilePath); $classExtName = $pluginsApiExtend['classExtend']; $newObjectExt = new $classExtName(); diff --git a/workflow/engine/classes/class.pluginRegistry.php b/workflow/engine/classes/class.pluginRegistry.php index dec148504..5d74be578 100644 --- a/workflow/engine/classes/class.pluginRegistry.php +++ b/workflow/engine/classes/class.pluginRegistry.php @@ -1472,7 +1472,7 @@ class PMPluginRegistry $baseSrcPluginPath = PATH_PLUGINS . $sNamespace . PATH_SEP . "src"; $apiPath = PATH_SEP . "Services" . PATH_SEP . "Ext" . PATH_SEP; $classFile = $baseSrcPluginPath . $apiPath . 'Ext' . $className . '.php'; - if(file_exists($classFile)){ + if (file_exists($classFile)) { $this->_restExtendServices[$className] = array( "filePath" => $classFile, "classParent" => $className,