Minor linter and stylistic fixes
Summary: Self-explanatory. Test Plan: `arc lint` Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: epriestley, Korvin Differential Revision: https://secure.phabricator.com/D13574
This commit is contained in:
		@@ -81,40 +81,40 @@ final class PhabricatorCalendarEventCancelController
 | 
			
		||||
    if ($is_cancelled) {
 | 
			
		||||
      if ($sequence || $is_parent_cancelled) {
 | 
			
		||||
        $title = pht('Cannot Reinstate Instance');
 | 
			
		||||
        $paragraph = pht('Cannot reinstate an instance of a ' .
 | 
			
		||||
          'cancelled recurring event.');
 | 
			
		||||
        $paragraph = pht(
 | 
			
		||||
          'Cannot reinstate an instance of a cancelled recurring event.');
 | 
			
		||||
        $cancel = pht('Cancel');
 | 
			
		||||
        $submit = null;
 | 
			
		||||
      } else if ($is_parent) {
 | 
			
		||||
        $title = pht('Reinstate Recurrence');
 | 
			
		||||
        $paragraph = pht('Reinstate the entire series ' .
 | 
			
		||||
          'of recurring events?');
 | 
			
		||||
        $cancel = pht('Don\'t Reinstate Recurrence');
 | 
			
		||||
        $paragraph = pht(
 | 
			
		||||
          'Reinstate the entire series of recurring events?');
 | 
			
		||||
        $cancel = pht("Don't Reinstate Recurrence");
 | 
			
		||||
        $submit = pht('Reinstate Recurrence');
 | 
			
		||||
      } else {
 | 
			
		||||
        $title = pht('Reinstate Event');
 | 
			
		||||
        $paragraph = pht('Reinstate this event?');
 | 
			
		||||
        $cancel = pht('Don\'t Reinstate Event');
 | 
			
		||||
        $cancel = pht("Don't Reinstate Event");
 | 
			
		||||
        $submit = pht('Reinstate Event');
 | 
			
		||||
      }
 | 
			
		||||
    } else {
 | 
			
		||||
      if ($sequence) {
 | 
			
		||||
        $title = pht('Cancel Instance');
 | 
			
		||||
        $paragraph = pht('Cancel just this instance ' .
 | 
			
		||||
          'of a recurring event.');
 | 
			
		||||
        $cancel = pht('Don\'t Cancel Instance');
 | 
			
		||||
        $paragraph = pht(
 | 
			
		||||
          'Cancel just this instance of a recurring event.');
 | 
			
		||||
        $cancel = pht("Don't Cancel Instance");
 | 
			
		||||
        $submit = pht('Cancel Instance');
 | 
			
		||||
      } else if ($is_parent) {
 | 
			
		||||
        $title = pht('Cancel Recurrence');
 | 
			
		||||
        $paragraph = pht('Cancel the entire series ' .
 | 
			
		||||
          'of recurring events?');
 | 
			
		||||
        $cancel = pht('Don\'t Cancel Recurrence');
 | 
			
		||||
        $paragraph = pht(
 | 
			
		||||
          'Cancel the entire series of recurring events?');
 | 
			
		||||
        $cancel = pht("Don't Cancel Recurrence");
 | 
			
		||||
        $submit = pht('Cancel Recurrence');
 | 
			
		||||
      } else {
 | 
			
		||||
        $title = pht('Cancel Event');
 | 
			
		||||
        $paragraph = pht('You can always reinstate ' .
 | 
			
		||||
          'the event later.');
 | 
			
		||||
        $cancel = pht('Don\'t Cancel Event');
 | 
			
		||||
        $paragraph = pht(
 | 
			
		||||
          'You can always reinstate the event later.');
 | 
			
		||||
        $cancel = pht("Don't Cancel Event");
 | 
			
		||||
        $submit = pht('Cancel Event');
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -5,7 +5,6 @@ final class PhabricatorCalendarEventCommentController
 | 
			
		||||
 | 
			
		||||
  private $id;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
  public function willProcessRequest(array $data) {
 | 
			
		||||
    $this->id = idx($data, 'id');
 | 
			
		||||
  }
 | 
			
		||||
 
 | 
			
		||||
@@ -43,13 +43,11 @@ final class PhabricatorCalendarEventDragController
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    $xactions[] = id(new PhabricatorCalendarEventTransaction())
 | 
			
		||||
      ->setTransactionType(
 | 
			
		||||
        PhabricatorCalendarEventTransaction::TYPE_START_DATE)
 | 
			
		||||
      ->setTransactionType(PhabricatorCalendarEventTransaction::TYPE_START_DATE)
 | 
			
		||||
      ->setNewValue($start_value);
 | 
			
		||||
 | 
			
		||||
    $xactions[] = id(new PhabricatorCalendarEventTransaction())
 | 
			
		||||
      ->setTransactionType(
 | 
			
		||||
        PhabricatorCalendarEventTransaction::TYPE_END_DATE)
 | 
			
		||||
      ->setTransactionType(PhabricatorCalendarEventTransaction::TYPE_END_DATE)
 | 
			
		||||
      ->setNewValue($end_value);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -54,8 +54,7 @@ final class PhabricatorCalendarEventJoinController
 | 
			
		||||
      $new_status = array($viewer->getPHID() => $new_status);
 | 
			
		||||
 | 
			
		||||
      $xaction = id(new PhabricatorCalendarEventTransaction())
 | 
			
		||||
        ->setTransactionType(
 | 
			
		||||
          PhabricatorCalendarEventTransaction::TYPE_INVITE)
 | 
			
		||||
        ->setTransactionType(PhabricatorCalendarEventTransaction::TYPE_INVITE)
 | 
			
		||||
        ->setNewValue($new_status);
 | 
			
		||||
 | 
			
		||||
      $editor = id(new PhabricatorCalendarEventEditor())
 | 
			
		||||
 
 | 
			
		||||
@@ -372,7 +372,6 @@ final class PhabricatorCalendarEventViewController
 | 
			
		||||
      $icon_display);
 | 
			
		||||
 | 
			
		||||
    if (strlen($event->getDescription())) {
 | 
			
		||||
 | 
			
		||||
      $description = PhabricatorMarkupEngine::renderOneObject(
 | 
			
		||||
        id(new PhabricatorMarkupOneOff())->setContent($event->getDescription()),
 | 
			
		||||
        'default',
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user