Skip to content

Commit

Permalink
[util] fix return statement missing stan error
Browse files Browse the repository at this point in the history
  • Loading branch information
connorhu committed Mar 21, 2024
1 parent 50c946b commit b0928da
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions lib/util/sfContext.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@ public function getEventDispatcher()
/**
* Retrieve the action name for this context.
*
* @return string the currently executing action name, if one is set,
* otherwise null
* @return string|null the currently executing action name, if one is set,
* otherwise null
*/
public function getActionName()
{
Expand All @@ -245,6 +245,8 @@ public function getActionName()
// @var $lastEntry sfActionStackEntry
return $lastEntry->getActionName();
}

return null;
}

/**
Expand Down Expand Up @@ -341,8 +343,8 @@ public function getDatabaseManager()
/**
* Retrieve the module directory for this context.
*
* @return string an absolute filesystem path to the directory of the
* currently executing module, if one is set, otherwise null
* @return string|null an absolute filesystem path to the directory of the
* currently executing module, if one is set, otherwise null
*/
public function getModuleDirectory()
{
Expand All @@ -351,13 +353,15 @@ public function getModuleDirectory()
// @var $lastEntry sfActionStackEntry
return sfConfig::get('sf_app_module_dir').'/'.$lastEntry->getModuleName();
}

return null;
}

/**
* Retrieve the module name for this context.
*
* @return string the currently executing module name, if one is set,
* otherwise null
* @return string|null the currently executing module name, if one is set,
* otherwise null
*/
public function getModuleName()
{
Expand All @@ -366,6 +370,8 @@ public function getModuleName()
// @var $lastEntry sfActionStackEntry
return $lastEntry->getModuleName();
}

return null;
}

/**
Expand Down

0 comments on commit b0928da

Please sign in to comment.