Skip to content
Snippets Groups Projects
Unverified Commit a8f60543 authored by Tim van Dijen's avatar Tim van Dijen Committed by GitHub
Browse files

Unused code + phpdoc

parent aba79e5a
No related branches found
No related tags found
No related merge requests found
...@@ -28,6 +28,9 @@ class sspmod_statistics_LogCleaner ...@@ -28,6 +28,9 @@ class sspmod_statistics_LogCleaner
} }
} }
/*
* @return void
*/
public function dumpConfig() public function dumpConfig()
{ {
echo 'Statistics directory : ' . $this->statdir . "\n"; echo 'Statistics directory : ' . $this->statdir . "\n";
...@@ -35,7 +38,13 @@ class sspmod_statistics_LogCleaner ...@@ -35,7 +38,13 @@ class sspmod_statistics_LogCleaner
echo 'Offset : ' . $this->offset . "\n"; echo 'Offset : ' . $this->offset . "\n";
} }
public function clean($debug = false) {
/*
* @param bool $debug
* @return array
*/
public function clean($debug = false)
{
if (!is_dir($this->statdir)) { if (!is_dir($this->statdir)) {
throw new Exception('Statistics module: output dir do not exists [' . $this->statdir . ']'); throw new Exception('Statistics module: output dir do not exists [' . $this->statdir . ']');
} }
...@@ -49,7 +58,6 @@ class sspmod_statistics_LogCleaner ...@@ -49,7 +58,6 @@ class sspmod_statistics_LogCleaner
$logparser = new sspmod_statistics_LogParser( $logparser = new sspmod_statistics_LogParser(
$this->statconfig->getValue('datestart', 0), $this->statconfig->getValue('datelength', 15), $this->statconfig->getValue('offsetspan', 44) $this->statconfig->getValue('datestart', 0), $this->statconfig->getValue('datelength', 15), $this->statconfig->getValue('offsetspan', 44)
); );
$datehandler = new sspmod_statistics_DateHandler($this->offset);
$results = array(); $results = array();
$sessioncounter = array(); $sessioncounter = array();
...@@ -111,6 +119,12 @@ class sspmod_statistics_LogCleaner ...@@ -111,6 +119,12 @@ class sspmod_statistics_LogCleaner
return $todelete; return $todelete;
} }
/*
* @param array $todelete
* @param string $outputfile
* @return void
*/
public function store($todelete, $outputfile) public function store($todelete, $outputfile)
{ {
echo "Preparing to delete [" .count($todelete) . "] trackids\n"; echo "Preparing to delete [" .count($todelete) . "] trackids\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment