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 DifferentialViewStateGarbageCollector extends PhabricatorGarbageColle..

Decoded Output download

<?php

final class DifferentialViewStateGarbageCollector
  extends PhabricatorGarbageCollector {

  const COLLECTORCONST = 'differential.viewstate';

  public function getCollectorName() {
    return pht('Differential View States');
  }

  public function getDefaultRetentionPolicy() {
    return phutil_units('180 days in seconds');
  }

  protected function collectGarbage() {
    $table = new DifferentialViewState();
    $conn = $table->establishConnection('w');

    queryfx(
      $conn,
      'DELETE FROM %R WHERE dateModified < %d LIMIT 100',
      $table,
      $this->getGarbageEpoch());

    return ($conn->getAffectedRows() == 100);
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class DifferentialViewStateGarbageCollector
  extends PhabricatorGarbageCollector {

  const COLLECTORCONST = 'differential.viewstate';

  public function getCollectorName() {
    return pht('Differential View States');
  }

  public function getDefaultRetentionPolicy() {
    return phutil_units('180 days in seconds');
  }

  protected function collectGarbage() {
    $table = new DifferentialViewState();
    $conn = $table->establishConnection('w');

    queryfx(
      $conn,
      'DELETE FROM %R WHERE dateModified < %d LIMIT 100',
      $table,
      $this->getGarbageEpoch());

    return ($conn->getAffectedRows() == 100);
  }

}

Function Calls

None

Variables

None

Stats

MD5 ed811d0208586dda271d07ac86ff397c
Eval Count 0
Decode Time 90 ms