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 DifferentialCustomFieldRevertsParser extends PhabricatorCustomFieldMo..

Decoded Output download

<?php

final class DifferentialCustomFieldRevertsParser
  extends PhabricatorCustomFieldMonogramParser {

  protected function getPrefixes() {

    // NOTE: Git language is "This reverts commit X."
    // NOTE: Mercurial language is "Backed out changeset Y".

    return array(
      'revert',
      'reverts',
      'reverted',
      'backout',
      'backsout',
      'backedout',
      'back out',
      'backs out',
      'backed out',
      'undo',
      'undoes',
    );
  }

  protected function getInfixes() {
    return array(
      'commit',
      'commits',
      'change',
      'changes',
      'changeset',
      'changesets',
      'rev',
      'revs',
      'revision',
      'revisions',
      'diff',
      'diffs',
    );
  }

  protected function getSuffixes() {
    return array();
  }

  protected function getMonogramPattern() {
    return '[rA-Z0-9a-f]+';
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class DifferentialCustomFieldRevertsParser
  extends PhabricatorCustomFieldMonogramParser {

  protected function getPrefixes() {

    // NOTE: Git language is "This reverts commit X."
    // NOTE: Mercurial language is "Backed out changeset Y".

    return array(
      'revert',
      'reverts',
      'reverted',
      'backout',
      'backsout',
      'backedout',
      'back out',
      'backs out',
      'backed out',
      'undo',
      'undoes',
    );
  }

  protected function getInfixes() {
    return array(
      'commit',
      'commits',
      'change',
      'changes',
      'changeset',
      'changesets',
      'rev',
      'revs',
      'revision',
      'revisions',
      'diff',
      'diffs',
    );
  }

  protected function getSuffixes() {
    return array();
  }

  protected function getMonogramPattern() {
    return '[rA-Z0-9a-f]+';
  }

}

Function Calls

None

Variables

None

Stats

MD5 ddf5240139ea1291d65554cd836db2ee
Eval Count 0
Decode Time 84 ms