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 PhabricatorCalendarIconSet extends PhabricatorIconSet { const ICON..

Decoded Output download

<?php

final class PhabricatorCalendarIconSet
  extends PhabricatorIconSet {

  const ICONSETKEY = 'calendar.event';

  public function getSelectIconTitleText() {
    return pht('Choose Event Icon');
  }

  protected function newIcons() {
    $map = array(
      'fa-calendar' => pht('Default'),
      'fa-glass' => pht('Party'),
      'fa-plane' => pht('Travel'),
      'fa-plus-square' => pht('Health / Appointment'),

      'fa-rocket' => pht('Sabbatical / Leave'),
      'fa-home' => pht('Working From Home'),
      'fa-tree' => pht('Holiday'),
      'fa-gamepad' => pht('Staycation'),

      'fa-coffee' => pht('Coffee Meeting'),
      'fa-film' => pht('Movie'),
      'fa-users' => pht('Meeting'),
      'fa-cutlery' => pht('Meal'),

      'fa-paw' => pht('Pet Activity'),
      'fa-institution' => pht('Official Business'),
      'fa-bus' => pht('Field Trip'),
      'fa-microphone' => pht('Conference'),
    );

    $icons = array();
    foreach ($map as $key => $label) {
      $icons[] = id(new PhabricatorIconSetIcon())
        ->setKey($key)
        ->setLabel($label);
    }

    return $icons;
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhabricatorCalendarIconSet
  extends PhabricatorIconSet {

  const ICONSETKEY = 'calendar.event';

  public function getSelectIconTitleText() {
    return pht('Choose Event Icon');
  }

  protected function newIcons() {
    $map = array(
      'fa-calendar' => pht('Default'),
      'fa-glass' => pht('Party'),
      'fa-plane' => pht('Travel'),
      'fa-plus-square' => pht('Health / Appointment'),

      'fa-rocket' => pht('Sabbatical / Leave'),
      'fa-home' => pht('Working From Home'),
      'fa-tree' => pht('Holiday'),
      'fa-gamepad' => pht('Staycation'),

      'fa-coffee' => pht('Coffee Meeting'),
      'fa-film' => pht('Movie'),
      'fa-users' => pht('Meeting'),
      'fa-cutlery' => pht('Meal'),

      'fa-paw' => pht('Pet Activity'),
      'fa-institution' => pht('Official Business'),
      'fa-bus' => pht('Field Trip'),
      'fa-microphone' => pht('Conference'),
    );

    $icons = array();
    foreach ($map as $key => $label) {
      $icons[] = id(new PhabricatorIconSetIcon())
        ->setKey($key)
        ->setLabel($label);
    }

    return $icons;
  }

}

Function Calls

None

Variables

None

Stats

MD5 e54aec952d7bc1b647fccc7899a05b4b
Eval Count 0
Decode Time 90 ms