Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php final class PhabricatorDaemonLockLogGarbageCollector extends PhabricatorGarbageCo..
Decoded Output download
<?php
final class PhabricatorDaemonLockLogGarbageCollector
extends PhabricatorGarbageCollector {
const COLLECTORCONST = 'daemon.lock-log';
public function getCollectorName() {
return pht('Lock Logs');
}
public function getDefaultRetentionPolicy() {
return 0;
}
protected function collectGarbage() {
$table = new PhabricatorDaemonLockLog();
$conn = $table->establishConnection('w');
queryfx(
$conn,
'DELETE FROM %T WHERE dateCreated < %d LIMIT 100',
$table->getTableName(),
$this->getGarbageEpoch());
return ($conn->getAffectedRows() == 100);
}
}
?>
Did this file decode correctly?
Original Code
<?php
final class PhabricatorDaemonLockLogGarbageCollector
extends PhabricatorGarbageCollector {
const COLLECTORCONST = 'daemon.lock-log';
public function getCollectorName() {
return pht('Lock Logs');
}
public function getDefaultRetentionPolicy() {
return 0;
}
protected function collectGarbage() {
$table = new PhabricatorDaemonLockLog();
$conn = $table->establishConnection('w');
queryfx(
$conn,
'DELETE FROM %T WHERE dateCreated < %d LIMIT 100',
$table->getTableName(),
$this->getGarbageEpoch());
return ($conn->getAffectedRows() == 100);
}
}
Function Calls
None |
Stats
MD5 | c47f2e316cf38c7bc5ddead66287f3db |
Eval Count | 0 |
Decode Time | 71 ms |