@@ -235,8 +235,8 @@ public function getEventDispatcher()
235
235
/**
236
236
* Retrieve the action name for this context.
237
237
*
238
- * @return string the currently executing action name, if one is set,
239
- * otherwise null
238
+ * @return string|null the currently executing action name, if one is set,
239
+ * otherwise null
240
240
*/
241
241
public function getActionName ()
242
242
{
@@ -245,6 +245,8 @@ public function getActionName()
245
245
// @var $lastEntry sfActionStackEntry
246
246
return $ lastEntry ->getActionName ();
247
247
}
248
+
249
+ return null ;
248
250
}
249
251
250
252
/**
@@ -341,8 +343,8 @@ public function getDatabaseManager()
341
343
/**
342
344
* Retrieve the module directory for this context.
343
345
*
344
- * @return string an absolute filesystem path to the directory of the
345
- * currently executing module, if one is set, otherwise null
346
+ * @return string|null an absolute filesystem path to the directory of the
347
+ * currently executing module, if one is set, otherwise null
346
348
*/
347
349
public function getModuleDirectory ()
348
350
{
@@ -351,13 +353,15 @@ public function getModuleDirectory()
351
353
// @var $lastEntry sfActionStackEntry
352
354
return sfConfig::get ('sf_app_module_dir ' ).'/ ' .$ lastEntry ->getModuleName ();
353
355
}
356
+
357
+ return null ;
354
358
}
355
359
356
360
/**
357
361
* Retrieve the module name for this context.
358
362
*
359
- * @return string the currently executing module name, if one is set,
360
- * otherwise null
363
+ * @return string|null the currently executing module name, if one is set,
364
+ * otherwise null
361
365
*/
362
366
public function getModuleName ()
363
367
{
@@ -366,6 +370,8 @@ public function getModuleName()
366
370
// @var $lastEntry sfActionStackEntry
367
371
return $ lastEntry ->getModuleName ();
368
372
}
373
+
374
+ return null ;
369
375
}
370
376
371
377
/**
0 commit comments