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 PhabricatorCalendarManagementNotifyWorkflow extends PhabricatorCalend..

Decoded Output download

<?php

final class PhabricatorCalendarManagementNotifyWorkflow
  extends PhabricatorCalendarManagementWorkflow {

  protected function didConstruct() {
    $this
      ->setName('notify')
      ->setExamples('**notify** [options]')
      ->setSynopsis(
        pht(
          'Test and debug notifications about upcoming events.'))
      ->setArguments(
        array(
          array(
            'name' => 'minutes',
            'param' => 'N',
            'help' => pht(
              'Notify about events in the next __N__ minutes (default: 15). '.
              'Setting this to a larger value makes testing easier.'),
          ),
        ));
  }

  public function execute(PhutilArgumentParser $args) {
    $viewer = $this->getViewer();

    $engine = new PhabricatorCalendarNotificationEngine();

    $minutes = $args->getArg('minutes');
    if ($minutes) {
      $engine->setNotifyWindow(phutil_units("{$minutes} minutes in seconds"));
    }

    $engine->publishNotifications();

    return 0;
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhabricatorCalendarManagementNotifyWorkflow
  extends PhabricatorCalendarManagementWorkflow {

  protected function didConstruct() {
    $this
      ->setName('notify')
      ->setExamples('**notify** [options]')
      ->setSynopsis(
        pht(
          'Test and debug notifications about upcoming events.'))
      ->setArguments(
        array(
          array(
            'name' => 'minutes',
            'param' => 'N',
            'help' => pht(
              'Notify about events in the next __N__ minutes (default: 15). '.
              'Setting this to a larger value makes testing easier.'),
          ),
        ));
  }

  public function execute(PhutilArgumentParser $args) {
    $viewer = $this->getViewer();

    $engine = new PhabricatorCalendarNotificationEngine();

    $minutes = $args->getArg('minutes');
    if ($minutes) {
      $engine->setNotifyWindow(phutil_units("{$minutes} minutes in seconds"));
    }

    $engine->publishNotifications();

    return 0;
  }

}

Function Calls

None

Variables

None

Stats

MD5 968dfb61dac70bdb6ace8ea8d9bb0ca9
Eval Count 0
Decode Time 83 ms