PhabricatorInlineComment::STATE_DONE, PhabricatorInlineComment::STATE_UNDRAFT => PhabricatorInlineComment::STATE_UNDONE, ); } /** * Find the first transaction that matches a type. * @param array $xactions * @param string $type * @return PhabricatorTransactions|null */ public static function findOneByType($xactions, $type) { foreach ($xactions as $xaction) { if ($xaction->getTransactionType() === $type) { return $xaction; } } return null; } }