From: <var...@us...> - 2014-10-09 18:35:29
|
Revision: 9236 http://sourceforge.net/p/phpwiki/code/9236 Author: vargenau Date: 2014-10-09 18:35:20 +0000 (Thu, 09 Oct 2014) Log Message: ----------- Use __construct Modified Paths: -------------- trunk/lib/ArchiveCleaner.php Modified: trunk/lib/ArchiveCleaner.php =================================================================== --- trunk/lib/ArchiveCleaner.php 2014-10-09 14:18:34 UTC (rev 9235) +++ trunk/lib/ArchiveCleaner.php 2014-10-09 18:35:20 UTC (rev 9236) @@ -21,11 +21,15 @@ class ArchiveCleaner { - function ArchiveCleaner($expire_params) + function __construct($expire_params) { $this->expire_params = $expire_params; } + /** + * @param $revision + * @return bool + */ function isMergeable($revision) { if (!$revision->get('is_minor_edit')) @@ -52,6 +56,7 @@ $INFINITY = 0x7fffffff; $expire = &$this->expire_params; + $counter = array(); foreach (array('major', 'minor', 'author') as $class) $counter[$class] = new ArchiveCleaner_Counter($expire[$class]); // shortcut to keep all @@ -97,7 +102,7 @@ */ class ArchiveCleaner_Counter { - function ArchiveCleaner_Counter($params) + function __construct($params) { if (!empty($params)) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |