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 DiffusionCommitTimelineEngine extends PhabricatorTimelineEngine { ..

Decoded Output download

<?php

final class DiffusionCommitTimelineEngine
  extends PhabricatorTimelineEngine {

  protected function newTimelineView() {
    $xactions = $this->getTransactions();

    $path_ids = array();
    foreach ($xactions as $xaction) {
      if ($xaction->hasComment()) {
        $path_id = $xaction->getComment()->getPathID();
        if ($path_id) {
          $path_ids[] = $path_id;
        }
      }
    }

    $path_map = array();
    if ($path_ids) {
      $path_map = id(new DiffusionPathQuery())
        ->withPathIDs($path_ids)
        ->execute();
      $path_map = ipull($path_map, 'path', 'id');
    }

    return id(new PhabricatorAuditTransactionView())
      ->setPathMap($path_map);
  }
}
 ?>

Did this file decode correctly?

Original Code

<?php

final class DiffusionCommitTimelineEngine
  extends PhabricatorTimelineEngine {

  protected function newTimelineView() {
    $xactions = $this->getTransactions();

    $path_ids = array();
    foreach ($xactions as $xaction) {
      if ($xaction->hasComment()) {
        $path_id = $xaction->getComment()->getPathID();
        if ($path_id) {
          $path_ids[] = $path_id;
        }
      }
    }

    $path_map = array();
    if ($path_ids) {
      $path_map = id(new DiffusionPathQuery())
        ->withPathIDs($path_ids)
        ->execute();
      $path_map = ipull($path_map, 'path', 'id');
    }

    return id(new PhabricatorAuditTransactionView())
      ->setPathMap($path_map);
  }
}

Function Calls

None

Variables

None

Stats

MD5 aee09105b0ad4e704448fa84fa8bf9f6
Eval Count 0
Decode Time 92 ms