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 PhabricatorPasswordDestructionEngineExtension extends PhabricatorDest..

Decoded Output download

<?php

final class PhabricatorPasswordDestructionEngineExtension
  extends PhabricatorDestructionEngineExtension {

  const EXTENSIONKEY = 'passwords';

  public function getExtensionName() {
    return pht('Passwords');
  }

  public function destroyObject(
    PhabricatorDestructionEngine $engine,
    $object) {

    $viewer = $engine->getViewer();
    $object_phid = $object->getPHID();

    $passwords = id(new PhabricatorAuthPasswordQuery())
      ->setViewer($viewer)
      ->withObjectPHIDs(array($object_phid))
      ->execute();

    foreach ($passwords as $password) {
      $engine->destroyObject($password);
    }
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhabricatorPasswordDestructionEngineExtension
  extends PhabricatorDestructionEngineExtension {

  const EXTENSIONKEY = 'passwords';

  public function getExtensionName() {
    return pht('Passwords');
  }

  public function destroyObject(
    PhabricatorDestructionEngine $engine,
    $object) {

    $viewer = $engine->getViewer();
    $object_phid = $object->getPHID();

    $passwords = id(new PhabricatorAuthPasswordQuery())
      ->setViewer($viewer)
      ->withObjectPHIDs(array($object_phid))
      ->execute();

    foreach ($passwords as $password) {
      $engine->destroyObject($password);
    }
  }

}

Function Calls

None

Variables

None

Stats

MD5 8c249881999f295e0601bb65a2add667
Eval Count 0
Decode Time 87 ms