code style
This commit is contained in:
@@ -146,8 +146,7 @@ class Restler extends \Luracast\Restler\Restler
|
||||
{
|
||||
$this->dispatch('call');
|
||||
$o = &$this->apiMethodInfo;
|
||||
$accessLevel = max(\Luracast\Restler\Defaults::$apiAccessLevel,
|
||||
$o->accessLevel);
|
||||
$accessLevel = max(\Luracast\Restler\Defaults::$apiAccessLevel, $o->accessLevel);
|
||||
$object = \Luracast\Restler\Scope::get($o->className);
|
||||
switch ($accessLevel) {
|
||||
case 3 : //protected method
|
||||
@@ -175,7 +174,7 @@ 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'];
|
||||
|
||||
Reference in New Issue
Block a user