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 echo pht('Migrating differential dependencies to edges...')."\n"; $table = new Diff..

Decoded Output download

<?php

echo pht('Migrating differential dependencies to edges...')."
";
$table = new DifferentialRevision();
$table->openTransaction();

foreach (new LiskMigrationIterator($table) as $rev) {
  $id = $rev->getID();
  echo pht('Revision %d: ', $id);

  $deps = $rev->getAttachedPHIDs(DifferentialRevisionPHIDType::TYPECONST);
  if (!$deps) {
    echo "-
";
    continue;
  }

  $editor = new PhabricatorEdgeEditor();
  foreach ($deps as $dep) {
    $editor->addEdge(
      $rev->getPHID(),
      DifferentialRevisionDependsOnRevisionEdgeType::EDGECONST,
      $dep);
  }
  $editor->save();
  echo pht('OKAY')."
";
}

$table->saveTransaction();
echo pht('Done.')."
";
 ?>

Did this file decode correctly?

Original Code

<?php

echo pht('Migrating differential dependencies to edges...')."\n";
$table = new DifferentialRevision();
$table->openTransaction();

foreach (new LiskMigrationIterator($table) as $rev) {
  $id = $rev->getID();
  echo pht('Revision %d: ', $id);

  $deps = $rev->getAttachedPHIDs(DifferentialRevisionPHIDType::TYPECONST);
  if (!$deps) {
    echo "-\n";
    continue;
  }

  $editor = new PhabricatorEdgeEditor();
  foreach ($deps as $dep) {
    $editor->addEdge(
      $rev->getPHID(),
      DifferentialRevisionDependsOnRevisionEdgeType::EDGECONST,
      $dep);
  }
  $editor->save();
  echo pht('OKAY')."\n";
}

$table->saveTransaction();
echo pht('Done.')."\n";

Function Calls

pht 1

Variables

None

Stats

MD5 3562a3d9efc4ab65035809555d612fe9
Eval Count 0
Decode Time 92 ms