Skip to content

Commit

Permalink
Fix CodeSniffer violations
Browse files Browse the repository at this point in the history
Fix violations for the following sniff
DokuWiki.WhiteSpace.ScopeIndent
  • Loading branch information
mperry2 committed Aug 27, 2013
1 parent 5004f92 commit f591e7b
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions lib/exe/indexer.php
Expand Up @@ -31,12 +31,12 @@
$tmp = array(); // No event data
$evt = new Doku_Event('INDEXER_TASKS_RUN', $tmp);
if ($evt->advise_before()) {
runIndexer() or
runSitemapper() or
sendDigest() or
runTrimRecentChanges() or
runTrimRecentChanges(true) or
$evt->advise_after();
runIndexer() or
runSitemapper() or
sendDigest() or
runTrimRecentChanges() or
runTrimRecentChanges(true) or
$evt->advise_after();
}

if(!$output) {
Expand Down Expand Up @@ -85,13 +85,13 @@ function runTrimRecentChanges($media_changes = false) {
$out_lines = array();

for ($i=0; $i<count($lines); $i++) {
$log = parseChangelogLine($lines[$i]);
if ($log === false) continue; // discard junk
if ($log['date'] < $trim_time) {
$old_lines[$log['date'].".$i"] = $lines[$i]; // keep old lines for now (append .$i to prevent key collisions)
} else {
$out_lines[$log['date'].".$i"] = $lines[$i]; // definitely keep these lines
}
$log = parseChangelogLine($lines[$i]);
if ($log === false) continue; // discard junk
if ($log['date'] < $trim_time) {
$old_lines[$log['date'].".$i"] = $lines[$i]; // keep old lines for now (append .$i to prevent key collisions)
} else {
$out_lines[$log['date'].".$i"] = $lines[$i]; // definitely keep these lines
}
}

if (count($lines)==count($out_lines)) {
Expand Down

0 comments on commit f591e7b

Please sign in to comment.