Skip to content

Commit

Permalink
Fixed the processing of requests to callable objects.
Browse files Browse the repository at this point in the history
  • Loading branch information
feuzeu committed Apr 30, 2019
1 parent 8d92ea6 commit 75c3989
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/Request/Support/CallableRepository.php
Expand Up @@ -18,8 +18,6 @@

use RecursiveDirectoryIterator;
use RecursiveIteratorIterator;
// use RegexIterator;
// use RecursiveRegexIterator;

class CallableRepository
{
Expand Down Expand Up @@ -190,7 +188,7 @@ private function getOptionsFromClass($sClassName)
private function getOptionsFromNamespace($sClassName, $sNamespace = null)
{
// Find the corresponding namespace
if($sNamespace == null)
if($sNamespace === null)
{
foreach(array_keys($this->aNamespaceOptions) as $_sNamespace)
{
Expand All @@ -201,7 +199,7 @@ private function getOptionsFromNamespace($sClassName, $sNamespace = null)
}
}
}
if($sNamespace == null)
if($sNamespace === null)
{
return null; // Class not registered
}
Expand Down Expand Up @@ -352,7 +350,10 @@ private function createCallableObjects()
if(!key_exists($sClassName, $this->aCallableObjects))
{
$aClassOptions = $this->getOptionsFromNamespace($sClassName, $sNamespace);
$this->_getCallableObject($sClassName, $aClassOptions);
if($aClassOptions !== null)
{
$this->_getCallableObject($sClassName, $aClassOptions);
}
}
}
}
Expand Down

0 comments on commit 75c3989

Please sign in to comment.