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 NuanceGitHubIssuesImportCursor extends NuanceGitHubImportCursor { ..

Decoded Output download

<?php

final class NuanceGitHubIssuesImportCursor
  extends NuanceGitHubImportCursor {

  const CURSORTYPE = 'github.issues';

  protected function getGitHubAPIEndpointURI($user, $repository) {
    return "/repos/{$user}/{$repository}/issues/events";
  }

  protected function newNuanceItemFromGitHubRecord(array $record) {
    $source = $this->getSource();

    $id = $record['id'];
    $item_key = "github.issueevent.{$id}";

    $container_key = null;

    return NuanceItem::initializeNewItem(NuanceGitHubEventItemType::ITEMTYPE)
      ->setStatus(NuanceItem::STATUS_IMPORTING)
      ->setSourcePHID($source->getPHID())
      ->setItemKey($item_key)
      ->setItemContainerKey($container_key)
      ->setItemProperty('api.type', 'issue')
      ->setItemProperty('api.raw', $record);
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class NuanceGitHubIssuesImportCursor
  extends NuanceGitHubImportCursor {

  const CURSORTYPE = 'github.issues';

  protected function getGitHubAPIEndpointURI($user, $repository) {
    return "/repos/{$user}/{$repository}/issues/events";
  }

  protected function newNuanceItemFromGitHubRecord(array $record) {
    $source = $this->getSource();

    $id = $record['id'];
    $item_key = "github.issueevent.{$id}";

    $container_key = null;

    return NuanceItem::initializeNewItem(NuanceGitHubEventItemType::ITEMTYPE)
      ->setStatus(NuanceItem::STATUS_IMPORTING)
      ->setSourcePHID($source->getPHID())
      ->setItemKey($item_key)
      ->setItemContainerKey($container_key)
      ->setItemProperty('api.type', 'issue')
      ->setItemProperty('api.raw', $record);
  }

}

Function Calls

None

Variables

None

Stats

MD5 1a64fe2bd1036e98bdc89b52581f7717
Eval Count 0
Decode Time 110 ms