Skip to content

Commit

Permalink
Renamed @return "void" to @return "null" (PHP specification)
Browse files Browse the repository at this point in the history
  • Loading branch information
fruit committed Feb 12, 2011
1 parent cedcd23 commit bbb557c
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 29 deletions.
12 changes: 6 additions & 6 deletions lib/cache/CacheMetadata.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function __construct ($data = null, array $tags = array())
/**
* @param mixed $data
* @param array $tags
* @return void
* @return null
*/
public function initialize ($data, array $tags = array())
{
Expand All @@ -57,7 +57,7 @@ protected function getHolder ()

/**
* @param mixed $data
* @return void
* @return null
*/
public function setData ($data)
{
Expand All @@ -76,7 +76,7 @@ public function getTags ()
* Rewrites all existing tags with new
*
* @param array $tags
* @return void
* @return null
*/
public function setTags (array $tags)
{
Expand Down Expand Up @@ -109,7 +109,7 @@ public function hasTag ($tagName)
* Appends tags to existing
*
* @param array $tags
* @return void
* @return null
*/
public function addTags (array $tags)
{
Expand All @@ -131,7 +131,7 @@ public function getTag ($tagName)
/**
* @param string $tagName
* @param string $tagVersion
* @return void
* @return null
*/
public function setTag ($tagName, $tagVersion)
{
Expand All @@ -157,7 +157,7 @@ public function serialize()
* Unserializes a CacheMetadatainstance.
*
* @param string $serialized A serialized CacheMetadata instance
* @return void
* @return null
*/
public function unserialize($serialized)
{
Expand Down
4 changes: 2 additions & 2 deletions lib/cache/sfTaggingCache.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ public function deleteTag ($key)
* Deletes tags
*
* @param array $tags
* @return void
* @return null
*/
public function deleteTags (array $tags)
{
Expand Down Expand Up @@ -668,7 +668,7 @@ public function unlock ($lockName)
/**
* @see sfCache::clean
* @param int $mode One of sfCache::ALL, sfCache::OLD params
* @return void
* @return null
*/
public function clean ($mode = sfCache::ALL)
{
Expand Down
2 changes: 1 addition & 1 deletion lib/log/sfCacheTagLogger.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function __construct (array $options = array())
* Initializes this sfCacheTagLogger instance.
*
* @param array $options An array of options.
* @return void
* @return null
*/
public function initialize (array $options = array())
{
Expand Down
2 changes: 1 addition & 1 deletion lib/util/sfCacheTaggingToolkit.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public static function formatTags ($tags)
* Listens on "component.method_not_found"
*
* @param sfEvent $event
* @return void
* @return null
*/
public static function listenOnComponentMethodNotFoundEvent (sfEvent $event)
{
Expand Down
10 changes: 5 additions & 5 deletions lib/util/sfContentTagHandler.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ protected function getHolder ()
* @param mixed $tags
* @param string $namespace
*
* @return void
* @return null
*/
public function setContentTags ($tags, $namespace)
{
Expand All @@ -58,7 +58,7 @@ public function setContentTags ($tags, $namespace)
*
* @param mixed $tags
* @param string $namespace
* @return void
* @return null
*/
public function addContentTags ($tags, $namespace)
{
Expand All @@ -85,7 +85,7 @@ public function getContentTags ($namespace)
* @param string $tagName
* @param mixed $tagVersion
* @param string $namespace
* @return void
* @return null
*/
public function setContentTag ($tagName, $tagVersion, $namespace)
{
Expand All @@ -97,7 +97,7 @@ public function setContentTag ($tagName, $tagVersion, $namespace)
*
* @param string $tagName
* @param string $namespace
* @return void
* @return null
*/
public function removeContentTag ($tagName, $namespace)
{
Expand All @@ -109,7 +109,7 @@ public function removeContentTag ($tagName, $namespace)
*
* @param string $namespace
*
* @return void
* @return null
*/
public function removeContentTags ($namespace)
{
Expand Down
6 changes: 3 additions & 3 deletions lib/util/sfTagNamespacedParameterHolder.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class sfTagNamespacedParameterHolder extends sfNamespacedParameterHolder
* @param mixed $default
* @param mixed $ns
*
* @return void
* @return null
*/
public function remove ($tagName, $default = null, $ns = null)
{
Expand All @@ -47,7 +47,7 @@ public function remove ($tagName, $default = null, $ns = null)
* @param numeric $tagVersion
* @param mixed $ns
*
* @return void
* @return null
*/
public function set ($tagName, $tagVersion, $ns = null)
{
Expand Down Expand Up @@ -97,7 +97,7 @@ public function set ($tagName, $tagVersion, $ns = null)
* @param mixed $parameters
* @param mixed $ns
*
* @return void
* @return null
*/
public function add ($parameters, $ns = null)
{
Expand Down
2 changes: 1 addition & 1 deletion lib/util/sfViewCacheTagManagerBridge.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ protected function getTaggingCache ()
* @param string $method
* @param array $arguments
* @throws BadMethodCallException
* @return void|array|boolean
* @return null|array|boolean
*/
public function __call ($method, $arguments)
{
Expand Down
2 changes: 1 addition & 1 deletion lib/vendor/Doctrine/Collection/Cachetaggable.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public function addTag ($tagName, $tagVersion)
/**
* Remove all added tags
*
* @return void
* @return null
*/
public function removeTags ()
{
Expand Down
4 changes: 2 additions & 2 deletions lib/vendor/Doctrine/Template/Cachetaggable.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class Doctrine_Template_Cachetaggable extends Doctrine_Template
* __construct
*
* @param string $array
* @return void
* @return null
*/
public function __construct (array $options = array())
{
Expand Down Expand Up @@ -83,7 +83,7 @@ public function __construct (array $options = array())
* Set table definition for sortable behavior
* (borrowed and modified from Sluggable in Doctrine core)
*
* @return void
* @return null
*/
public function setTableDefinition ()
{
Expand Down
12 changes: 6 additions & 6 deletions lib/vendor/Doctrine/Template/Listener/Cachetaggable.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Doctrine_Template_Listener_Cachetaggable
* __construct
*
* @param array $options
* @return void
* @return null
*/
public function __construct(array $options)
{
Expand All @@ -62,7 +62,7 @@ protected function getTaggingCache ()
* Pre deletion hook - saves object tag_name to remove it on postDelete
*
* @param Doctrine_Event $event
* @return void
* @return null
*/
public function preDelete (Doctrine_Event $event)
{
Expand Down Expand Up @@ -105,7 +105,7 @@ public function postDelete (Doctrine_Event $event)
* pre saving hook - sets new object`s version to store it in the database
*
* @param Doctrine_Event $event
* @return void
* @return null
*/
public function preSave (Doctrine_Event $event)
{
Expand Down Expand Up @@ -141,7 +141,7 @@ public function preSave (Doctrine_Event $event)
* of the stored object
*
* @param Doctrine_Event $event
* @return void
* @return null
*/
public function postSave (Doctrine_Event $event)
{
Expand Down Expand Up @@ -208,7 +208,7 @@ public function postSave (Doctrine_Event $event)
* pre dql update hook - add updated
*
* @param Doctrine_Event $event
* @return void
* @return null
*/
public function preDqlUpdate (Doctrine_Event $event)
{
Expand Down Expand Up @@ -287,7 +287,7 @@ public function preDqlUpdate (Doctrine_Event $event)
* pre dql delete hook - remove object tags from tagger
*
* @param Doctrine_Event $event
* @return void
* @return null
*/
public function preDqlDelete (Doctrine_Event $event)
{
Expand Down
2 changes: 1 addition & 1 deletion lib/view/sfViewCacheTagManager.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ public function setActionCache ($uri, $content, $decoratorTemplate)
/**
* @see parent::setPageCache()
* @param string $uri
* @return void
* @return null
*/
public function setPageCache ($uri)
{
Expand Down

0 comments on commit bbb557c

Please sign in to comment.