repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/edges/__tests__/PhabricatorEdgeChangeRecordTestCase.php
src/infrastructure/edges/__tests__/PhabricatorEdgeChangeRecordTestCase.php
<?php final class PhabricatorEdgeChangeRecordTestCase extends PhabricatorTestCase { public function testEdgeStorageFormats() { $old_bulky = phutil_json_decode(<<<EOJSON { "PHID-PROJ-5r2ed5v27xrgltvou5or" : { "dataID" : null, "dateCreated" : "1449170683", "dst" : "PHID-PROJ-5r2ed5v27xrgltvo...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/edges/conduit/PhabricatorEdgeObject.php
src/infrastructure/edges/conduit/PhabricatorEdgeObject.php
<?php final class PhabricatorEdgeObject extends Phobject implements PhabricatorPolicyInterface { private $id; private $src; private $dst; private $type; private $dateCreated; private $sequence; public static function newFromRow(array $row) { $edge = new self(); $edge->id = idx($row, 'id');...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/edges/conduit/EdgeSearchConduitAPIMethod.php
src/infrastructure/edges/conduit/EdgeSearchConduitAPIMethod.php
<?php final class EdgeSearchConduitAPIMethod extends ConduitAPIMethod { public function getAPIMethodName() { return 'edge.search'; } public function getMethodDescription() { return pht('Read edge relationships between objects.'); } protected function newDocumentationPages(PhabricatorUser $viewer...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/edges/constants/PhabricatorEdgeConfig.php
src/infrastructure/edges/constants/PhabricatorEdgeConfig.php
<?php final class PhabricatorEdgeConfig extends PhabricatorEdgeConstants { const TABLE_NAME_EDGE = 'edge'; const TABLE_NAME_EDGEDATA = 'edgedata'; public static function establishConnection($phid_type, $conn_type) { $map = PhabricatorPHIDType::getAllTypes(); if (isset($map[$phid_type])) { ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/edges/constants/PhabricatorEdgeConstants.php
src/infrastructure/edges/constants/PhabricatorEdgeConstants.php
<?php abstract class PhabricatorEdgeConstants extends Phobject {}
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/editor/PhabricatorEditorURIParserException.php
src/infrastructure/editor/PhabricatorEditorURIParserException.php
<?php final class PhabricatorEditorURIParserException extends Exception {}
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/editor/PhabricatorEditorURIEngine.php
src/infrastructure/editor/PhabricatorEditorURIEngine.php
<?php final class PhabricatorEditorURIEngine extends Phobject { private $viewer; private $repository; private $pattern; private $rawTokens; private $repositoryTokens; public static function newForViewer(PhabricatorUser $viewer) { if (!$viewer->isLoggedIn()) { return null; } $pattern ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/editor/__tests__/PhabricatorEditorURIEngineTestCase.php
src/infrastructure/editor/__tests__/PhabricatorEditorURIEngineTestCase.php
<?php final class PhabricatorEditorURIEngineTestCase extends PhabricatorTestCase { protected function getPhabricatorTestCaseConfiguration() { return array( self::PHABRICATOR_TESTCONFIG_BUILD_STORAGE_FIXTURES => true, ); } public function testPatternParsing() { $map = array( '' => arra...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/time/PhabricatorTime.php
src/infrastructure/time/PhabricatorTime.php
<?php final class PhabricatorTime extends Phobject { private static $stack = array(); private static $originalZone; public static function pushTime($epoch, $timezone) { if (empty(self::$stack)) { self::$originalZone = date_default_timezone_get(); } $ok = date_default_timezone_set($timezone);...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/time/PhabricatorTimeGuard.php
src/infrastructure/time/PhabricatorTimeGuard.php
<?php final class PhabricatorTimeGuard extends Phobject { private $frameKey; public function __construct($frame_key) { $this->frameKey = $frame_key; } public function __destruct() { PhabricatorTime::popTime($this->frameKey); } }
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/time/__tests__/PhabricatorTimeTestCase.php
src/infrastructure/time/__tests__/PhabricatorTimeTestCase.php
<?php final class PhabricatorTimeTestCase extends PhabricatorTestCase { public function testPhabricatorTimeStack() { $t = 1370202281; $time = PhabricatorTime::pushTime($t, 'UTC'); $this->assertTrue(PhabricatorTime::getNow() === $t); unset($time); $this->assertFalse(PhabricatorTime::getNow() =...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/ssh/PhabricatorSSHPassthruCommand.php
src/infrastructure/ssh/PhabricatorSSHPassthruCommand.php
<?php /** * Proxy an IO channel to an underlying command, with optional callbacks. This * is a mostly a more general version of @{class:PhutilExecPassthru}. This * class is used to proxy Git, SVN and Mercurial traffic to the commands which * can actually serve it. * * Largely, this just reads an IO channel (like...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/ssh/PhabricatorSSHWorkflow.php
src/infrastructure/ssh/PhabricatorSSHWorkflow.php
<?php abstract class PhabricatorSSHWorkflow extends PhutilArgumentWorkflow { // NOTE: We are explicitly extending "PhutilArgumentWorkflow", not // "PhabricatorManagementWorkflow". We want to avoid inheriting "getViewer()" // and other methods which assume workflows are administrative commands // like `bin/s...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/diff/PhabricatorInlineCommentController.php
src/infrastructure/diff/PhabricatorInlineCommentController.php
<?php abstract class PhabricatorInlineCommentController extends PhabricatorController { private $containerObject; abstract protected function createComment(); abstract protected function newInlineCommentQuery(); abstract protected function loadCommentForDone($id); abstract protected function loadObjectOw...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/diff/PhabricatorDifferenceEngine.php
src/infrastructure/diff/PhabricatorDifferenceEngine.php
<?php /** * Utility class which encapsulates some shared behavior between different * applications which render diffs. * * @task config Configuring the Engine * @task diff Generating Diffs */ final class PhabricatorDifferenceEngine extends Phobject { private $oldName; private $newName; private $normalize...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/diff/PhabricatorDiffScopeEngine.php
src/infrastructure/diff/PhabricatorDiffScopeEngine.php
<?php final class PhabricatorDiffScopeEngine extends Phobject { private $lineTextMap; private $lineDepthMap; public function setLineTextMap(array $map) { if (array_key_exists(0, $map)) { throw new Exception( pht('ScopeEngine text map must be a 1-based map of lines.')); } $expect = ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/diff/PhabricatorChangesetResponse.php
src/infrastructure/diff/PhabricatorChangesetResponse.php
<?php final class PhabricatorChangesetResponse extends AphrontProxyResponse { private $renderedChangeset; private $coverage; private $changesetState; public function setRenderedChangeset($rendered_changeset) { $this->renderedChangeset = $rendered_changeset; return $this; } public function getRen...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/diff/query/PhabricatorDiffInlineCommentQuery.php
src/infrastructure/diff/query/PhabricatorDiffInlineCommentQuery.php
<?php abstract class PhabricatorDiffInlineCommentQuery extends PhabricatorApplicationTransactionCommentQuery { const INLINE_CONTEXT_CACHE_VERSION = 1; private $fixedStates; private $needReplyToComments; private $publishedComments; private $publishableComments; private $needHidden; private $needApplie...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/diff/interface/PhabricatorInlineComment.php
src/infrastructure/diff/interface/PhabricatorInlineComment.php
<?php abstract class PhabricatorInlineComment extends Phobject implements PhabricatorMarkupInterface { const MARKUP_FIELD_BODY = 'markup:body'; const STATE_UNDONE = 'undone'; const STATE_DRAFT = 'draft'; const STATE_UNDRAFT = 'undraft'; const STATE_DONE = 'done'; private $storageObject; privat...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/diff/inline/PhabricatorDiffInlineCommentContentState.php
src/infrastructure/diff/inline/PhabricatorDiffInlineCommentContentState.php
<?php final class PhabricatorDiffInlineCommentContentState extends PhabricatorInlineCommentContentState { private $hasSuggestion = false; private $suggestionText = ''; public function isEmptyContentState() { if (!parent::isEmptyContentState()) { return false; } if ($this->getContentHasSugg...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/diff/inline/PhabricatorInlineCommentContentState.php
src/infrastructure/diff/inline/PhabricatorInlineCommentContentState.php
<?php abstract class PhabricatorInlineCommentContentState extends Phobject { private $contentText = ''; public function setContentText($content_text) { $this->contentText = $content_text; return $this; } public function getContentText() { return $this->contentText; } public function isEmp...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/diff/inline/PhabricatorInlineCommentContext.php
src/infrastructure/diff/inline/PhabricatorInlineCommentContext.php
<?php abstract class PhabricatorInlineCommentContext extends Phobject {}
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/diff/inline/PhabricatorDiffInlineCommentContext.php
src/infrastructure/diff/inline/PhabricatorDiffInlineCommentContext.php
<?php final class PhabricatorDiffInlineCommentContext extends PhabricatorInlineCommentContext { private $filename; private $headLines; private $bodyLines; private $tailLines; public static function newFromCacheData(array $map) { $context = new self(); $context->setFilename(idx($map, 'filename'))...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/diff/__tests__/PhabricatorDiffScopeEngineTestCase.php
src/infrastructure/diff/__tests__/PhabricatorDiffScopeEngineTestCase.php
<?php final class PhabricatorDiffScopeEngineTestCase extends PhabricatorTestCase { private $engines = array(); public function testScopeEngine() { $this->assertScopeStart('zebra.c', 4, 2); } private function assertScopeStart($file, $line, $expect) { $engine = $this->getScopeTestEngine($file); ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/diff/view/PHUIDiffTableOfContentsItemView.php
src/infrastructure/diff/view/PHUIDiffTableOfContentsItemView.php
<?php final class PHUIDiffTableOfContentsItemView extends AphrontView { private $changeset; private $isVisible = true; private $anchor; private $coverage; private $coverageID; private $context; private $packages; public function setChangeset(DifferentialChangeset $changeset) { $this->changeset = ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/diff/view/PHUIDiffInlineCommentDetailView.php
src/infrastructure/diff/view/PHUIDiffInlineCommentDetailView.php
<?php final class PHUIDiffInlineCommentDetailView extends PHUIDiffInlineCommentView { private $handles; private $markupEngine; private $editable; private $preview; private $allowReply; private $canMarkDone; private $objectOwnerPHID; public function isHidden() { return $this->getInlineComment()-...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/diff/view/PHUIDiffInlineThreader.php
src/infrastructure/diff/view/PHUIDiffInlineThreader.php
<?php final class PHUIDiffInlineThreader extends Phobject { public function reorderAndThreadCommments(array $comments) { $comments = msort($comments, 'getID'); // Build an empty map of all the comments we actually have. If a comment // is a reply but the parent has gone missing, we don't want it to van...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/diff/view/PHUIDiffTableOfContentsListView.php
src/infrastructure/diff/view/PHUIDiffTableOfContentsListView.php
<?php final class PHUIDiffTableOfContentsListView extends AphrontView { private $items = array(); private $authorityPackages; private $header; private $infoView; private $background; private $bare; private $components = array(); public function addItem(PHUIDiffTableOfContentsItemView $item) { $t...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/diff/view/PHUIDiffInlineCommentTableScaffold.php
src/infrastructure/diff/view/PHUIDiffInlineCommentTableScaffold.php
<?php /** * Wraps an inline comment row scaffold in a table. * * This scaffold is used to ship inlines over the wire to the client, so they * arrive in a form that's easy to manipulate (a valid table node). */ final class PHUIDiffInlineCommentTableScaffold extends AphrontView { private $rows = array(); publ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/diff/view/PHUIDiffInlineCommentRowScaffold.php
src/infrastructure/diff/view/PHUIDiffInlineCommentRowScaffold.php
<?php /** * Wraps an inline comment in a table row. * * Inline comments need different wrapping cells when shown in unified vs * side-by-side diffs, as the two tables have different layouts. This wraps * an inline comment element in an appropriate table row. */ abstract class PHUIDiffInlineCommentRowScaffold ext...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/diff/view/PHUIDiffInlineCommentView.php
src/infrastructure/diff/view/PHUIDiffInlineCommentView.php
<?php abstract class PHUIDiffInlineCommentView extends AphrontView { private $isOnRight; private $renderer; private $inlineComment; public function setInlineComment(PhabricatorInlineComment $comment) { $this->inlineComment = $comment; return $this; } public function getInlineComment() { retu...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/diff/view/PHUIDiffTwoUpInlineCommentRowScaffold.php
src/infrastructure/diff/view/PHUIDiffTwoUpInlineCommentRowScaffold.php
<?php /** * Row scaffold for 2up (side-by-side) changeset views. * * Although this scaffold is normally straightforward, it may also accept * two inline comments and display them adjacently. */ final class PHUIDiffTwoUpInlineCommentRowScaffold extends PHUIDiffInlineCommentRowScaffold { public function render...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/diff/view/PHUIDiffInlineCommentUndoView.php
src/infrastructure/diff/view/PHUIDiffInlineCommentUndoView.php
<?php /** * Render the "Undo" action to recover discarded inline comments. * * This extends @{class:PHUIDiffInlineCommentView} so it can use the same * scaffolding code as other kinds of inline comments. */ final class PHUIDiffInlineCommentUndoView extends PHUIDiffInlineCommentView { public function isHideab...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/diff/view/PHUIDiffOneUpInlineCommentRowScaffold.php
src/infrastructure/diff/view/PHUIDiffOneUpInlineCommentRowScaffold.php
<?php /** * Row scaffold for `1up` (unified) changeset views. * * This scaffold is straightforward. */ final class PHUIDiffOneUpInlineCommentRowScaffold extends PHUIDiffInlineCommentRowScaffold { public function render() { $inlines = $this->getInlineViews(); if (count($inlines) != 1) { throw new...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/diff/view/PHUIDiffInlineCommentPreviewListView.php
src/infrastructure/diff/view/PHUIDiffInlineCommentPreviewListView.php
<?php final class PHUIDiffInlineCommentPreviewListView extends AphrontView { private $inlineComments = array(); private $ownerPHID; /** * @param array<PhabricatorApplicationTransactionComment> $comments */ public function setInlineComments(array $comments) { assert_instances_of($comments, P...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/diff/view/PHUIDiffRevealIconView.php
src/infrastructure/diff/view/PHUIDiffRevealIconView.php
<?php final class PHUIDiffRevealIconView extends AphrontView { public function render() { $icon = id(new PHUIIconView()) ->setIcon('fa-comment') ->addSigil('has-tooltip') ->setMetadata( array( 'tip' => pht('Expand'), 'align' => 'E', 'size' => 275, ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/diff/view/PhabricatorInlineSummaryView.php
src/infrastructure/diff/view/PhabricatorInlineSummaryView.php
<?php final class PhabricatorInlineSummaryView extends AphrontView { private $groups = array(); public function addCommentGroup($name, array $items) { if (!isset($this->groups[$name])) { $this->groups[$name] = $items; } else { $this->groups[$name] = array_merge($this->groups[$name], $items); ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/diff/view/PHUIDiffGraphView.php
src/infrastructure/diff/view/PHUIDiffGraphView.php
<?php final class PHUIDiffGraphView extends Phobject { private $isHead = true; private $isTail = true; private $height; public function setIsHead($is_head) { $this->isHead = $is_head; return $this; } public function getIsHead() { return $this->isHead; } public function setIsTail($is_tai...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/diff/view/PHUIDiffInlineCommentEditView.php
src/infrastructure/diff/view/PHUIDiffInlineCommentEditView.php
<?php final class PHUIDiffInlineCommentEditView extends PHUIDiffInlineCommentView { private $title; public function setTitle($title) { $this->title = $title; return $this; } public function render() { $viewer = $this->getViewer(); $inline = $this->getInlineComment(); $content = phabri...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/diff/view/__tests__/PHUIDiffGraphViewTestCase.php
src/infrastructure/diff/view/__tests__/PHUIDiffGraphViewTestCase.php
<?php final class PHUIDiffGraphViewTestCase extends PhabricatorTestCase { public function testTailTermination() { $nodes = array( 'A' => array('B'), 'B' => array('C', 'D', 'E'), 'E' => array(), 'D' => array(), 'C' => array('F', 'G'), 'G' => array(), 'F' => array(), ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/diff/viewstate/PhabricatorChangesetViewState.php
src/infrastructure/diff/viewstate/PhabricatorChangesetViewState.php
<?php final class PhabricatorChangesetViewState extends Phobject { private $highlightLanguage; private $characterEncoding; private $documentEngineKey; private $rendererKey; private $defaultDeviceRendererKey; private $hidden; private $modifiedSinceHide; private $discardResponse; public function se...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/diff/viewstate/PhabricatorChangesetViewStateEngine.php
src/infrastructure/diff/viewstate/PhabricatorChangesetViewStateEngine.php
<?php final class PhabricatorChangesetViewStateEngine extends Phobject { private $viewer; private $objectPHID; private $changeset; private $storage; public function setViewer(PhabricatorUser $viewer) { $this->viewer = $viewer; return $this; } public function getViewer() { return $this->v...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/diff/prose/PhutilProseDiff.php
src/infrastructure/diff/prose/PhutilProseDiff.php
<?php final class PhutilProseDiff extends Phobject { private $parts = array(); public function addPart($type, $text) { $this->parts[] = array( 'type' => $type, 'text' => $text, ); return $this; } public function getParts() { return $this->parts; } /** * Get diff parts, bu...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/diff/prose/PhutilProseDifferenceEngine.php
src/infrastructure/diff/prose/PhutilProseDifferenceEngine.php
<?php final class PhutilProseDifferenceEngine extends Phobject { public function getDiff($u, $v) { return $this->buildDiff($u, $v, 0); } private function buildDiff($u, $v, $level) { $u_parts = $this->splitCorpus($u, $level); $v_parts = $this->splitCorpus($v, $level); if ($level === 0) { ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/diff/prose/__tests__/PhutilProseDiffTestCase.php
src/infrastructure/diff/prose/__tests__/PhutilProseDiffTestCase.php
<?php final class PhutilProseDiffTestCase extends PhabricatorTestCase { public function testTrimApart() { $map = array( '' => array(), 'a' => array('a'), ' a ' => array( ' ', 'a', ' ', ), ' a' => array( ' ', 'a', ), 'a ' => arra...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/diff/engine/PhabricatorInlineCommentAdjustmentEngine.php
src/infrastructure/diff/engine/PhabricatorInlineCommentAdjustmentEngine.php
<?php final class PhabricatorInlineCommentAdjustmentEngine extends Phobject { private $viewer; private $inlines; private $revision; private $oldChangesets; private $newChangesets; public function setViewer(PhabricatorUser $viewer) { $this->viewer = $viewer; return $this; } public function ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/events/PhabricatorEventEngine.php
src/infrastructure/events/PhabricatorEventEngine.php
<?php final class PhabricatorEventEngine extends Phobject { public static function initialize() { // NOTE: If any of this fails, we just log it and move on. It's important // to try to make it through here because users may have difficulty fixing // fix the errors if we don't: for example, if we fatal h...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/events/PhabricatorEventListener.php
src/infrastructure/events/PhabricatorEventListener.php
<?php abstract class PhabricatorEventListener extends PhutilEventListener { private $application; public function setApplication(PhabricatorApplication $application) { $this->application = $application; return $this; } public function getApplication() { return $this->application; } public f...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/events/PhabricatorAutoEventListener.php
src/infrastructure/events/PhabricatorAutoEventListener.php
<?php /** * Event listener which is registered automatically, without requiring * configuration. * * Normally, event listeners must be registered via applications. This is * appropriate for structured listeners in libraries, but it adds a lot of * overhead and is cumbersome for one-off listeners. * * All concr...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/events/PhabricatorEvent.php
src/infrastructure/events/PhabricatorEvent.php
<?php final class PhabricatorEvent extends PhutilEvent { private $user; private $aphrontRequest; private $conduitRequest; public function setUser(PhabricatorUser $user) { $this->user = $user; return $this; } public function getUser() { return $this->user; } public function setAphrontReq...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/events/PhabricatorExampleEventListener.php
src/infrastructure/events/PhabricatorExampleEventListener.php
<?php /** * Example event listener. For details about installing Phabricator event hooks, * refer to @{article:Events User Guide: Installing Event Listeners}. */ final class PhabricatorExampleEventListener extends PhabricatorEventListener { public function register() { // When your listener is installed, its...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/events/constant/PhabricatorEventType.php
src/infrastructure/events/constant/PhabricatorEventType.php
<?php /** * For detailed explanations of these events, see * @{article:Events User Guide: Installing Event Listeners}. */ final class PhabricatorEventType extends PhutilEventType { const TYPE_DIFFERENTIAL_WILLMARKGENERATED = 'differential.willMarkGenerated'; const TYPE_DIFFUSION_DIDDISCOVERCOMMIT = 'diffus...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/lipsum/PhutilRealNameContextFreeGrammar.php
src/infrastructure/lipsum/PhutilRealNameContextFreeGrammar.php
<?php final class PhutilRealNameContextFreeGrammar extends PhutilContextFreeGrammar { protected function getRules() { return array( 'start' => array( '[first] [last]', '[first] [last]', '[first] [last]', '[first] [last]', '[first] [last]', '[first] [last]'...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/lipsum/PhutilLipsumContextFreeGrammar.php
src/infrastructure/lipsum/PhutilLipsumContextFreeGrammar.php
<?php final class PhutilLipsumContextFreeGrammar extends PhutilContextFreeGrammar { protected function getRules() { return array( 'start' => array( '[words].', '[words].', '[words].', '[words]: [word], [word], [word] [word].', '[words]; [lowerwords].', '[w...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/lipsum/PhutilContextFreeGrammar.php
src/infrastructure/lipsum/PhutilContextFreeGrammar.php
<?php /** * Generate nonsense test data according to a context-free grammar definition. */ abstract class PhutilContextFreeGrammar extends Phobject { private $limit = 65535; abstract protected function getRules(); public function generateSeveral($count, $implode = ' ') { $paragraph = array(); for ($...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/lipsum/code/PhutilJavaCodeSnippetContextFreeGrammar.php
src/infrastructure/lipsum/code/PhutilJavaCodeSnippetContextFreeGrammar.php
<?php final class PhutilJavaCodeSnippetContextFreeGrammar extends PhutilCLikeCodeSnippetContextFreeGrammar { protected function buildRuleSet() { $parent_ruleset = parent::buildRuleSet(); $rulesset = array_merge($parent_ruleset, $this->getClassRuleSets()); $rulesset[] = $this->getTypeNameGrammarSet();...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/lipsum/code/PhutilCLikeCodeSnippetContextFreeGrammar.php
src/infrastructure/lipsum/code/PhutilCLikeCodeSnippetContextFreeGrammar.php
<?php /** * Generates valid context-free code for most programming languages that could * pass as C. Except for PHP. But includes Java (mostly). */ abstract class PhutilCLikeCodeSnippetContextFreeGrammar extends PhutilCodeSnippetContextFreeGrammar { protected function buildRuleSet() { return array( $...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/lipsum/code/PhutilCodeSnippetContextFreeGrammar.php
src/infrastructure/lipsum/code/PhutilCodeSnippetContextFreeGrammar.php
<?php /** * Generates non-sense code snippets according to context-free rules, respecting * indentation etc. * * Also provides a common ruleset shared among many mainstream programming * languages (that is, not Lisp). */ abstract class PhutilCodeSnippetContextFreeGrammar extends PhutilContextFreeGrammar { p...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/lipsum/code/PhutilPHPCodeSnippetContextFreeGrammar.php
src/infrastructure/lipsum/code/PhutilPHPCodeSnippetContextFreeGrammar.php
<?php final class PhutilPHPCodeSnippetContextFreeGrammar extends PhutilCLikeCodeSnippetContextFreeGrammar { protected function buildRuleSet() { return array_merge(parent::buildRuleSet(), $this->getClassRuleSets()); } protected function getStartGrammarSet() { $start_grammar = parent::getStartGrammarSe...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/internationalization/scope/PhabricatorLocaleScopeGuard.php
src/infrastructure/internationalization/scope/PhabricatorLocaleScopeGuard.php
<?php /** * Change the effective locale for the lifetime of this guard. * * Use @{method:PhabricatorEnv::beginScopedLocale} to acquire a guard. * Guards are released when they exit scope. */ final class PhabricatorLocaleScopeGuard extends Phobject { private static $stack = array(); private $key; private ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/internationalization/scope/__tests__/PhabricatorLocaleScopeGuardTestCase.php
src/infrastructure/internationalization/scope/__tests__/PhabricatorLocaleScopeGuardTestCase.php
<?php final class PhabricatorLocaleScopeGuardTestCase extends PhabricatorTestCase { public function testLocaleScopeGuard() { $original = PhabricatorEnv::getLocaleCode(); // Set a guard; it should change the locale, then revert it when destroyed. $guard = PhabricatorEnv::beginScopedLocale('en_GB'); ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/internationalization/management/PhabricatorInternationalizationManagementExtractWorkflow.php
src/infrastructure/internationalization/management/PhabricatorInternationalizationManagementExtractWorkflow.php
<?php /** * @phutil-external-symbol class PhpParser\NodeTraverser * @phutil-external-symbol class PhorgePHPParserExtractor */ final class PhabricatorInternationalizationManagementExtractWorkflow extends PhabricatorInternationalizationManagementWorkflow { const CACHE_VERSION = 1; protected function didConstr...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/internationalization/management/PhabricatorInternationalizationManagementWorkflow.php
src/infrastructure/internationalization/management/PhabricatorInternationalizationManagementWorkflow.php
<?php abstract class PhabricatorInternationalizationManagementWorkflow extends PhabricatorManagementWorkflow {}
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/internationalization/translation/PhabricatorVeryWowEnglishTranslation.php
src/infrastructure/internationalization/translation/PhabricatorVeryWowEnglishTranslation.php
<?php final class PhabricatorVeryWowEnglishTranslation extends PhutilTranslation { public function getLocaleCode() { return 'en_W*'; } protected function getTranslations() { return array( 'Search' => 'Search! Wow!', 'Pre-Commit Review' => 'Wow! Code Review! Wow!', 'Tasks and Bugs' =...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/internationalization/translation/PhabricatorBritishEnglishTranslation.php
src/infrastructure/internationalization/translation/PhabricatorBritishEnglishTranslation.php
<?php final class PhabricatorBritishEnglishTranslation extends PhutilTranslation { public function getLocaleCode() { return 'en_GB'; } protected function getTranslations() { return array( "%s set this project's color to %s." => "%s set this project's colour to %s.", 'Choose Icon a...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/internationalization/translation/PhabricatorUSEnglishTranslation.php
src/infrastructure/internationalization/translation/PhabricatorUSEnglishTranslation.php
<?php final class PhabricatorUSEnglishTranslation extends PhutilTranslation { public function getLocaleCode() { return 'en_US'; } protected function getTranslations() { return array( 'These %d configuration value(s) are related:' => array( 'This configuration value is related:', ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
true
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/internationalization/translation/PhabricatorEmojiTranslation.php
src/infrastructure/internationalization/translation/PhabricatorEmojiTranslation.php
<?php final class PhabricatorEmojiTranslation extends PhutilTranslation { public function getLocaleCode() { return 'en_X*'; } protected function getTranslations() { return array( 'Emoji (Internet)' => "\xF0\x9F\x92\xAC (\xF0\x9F\x8C\x8D)", ); } }
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/internationalization/translation/PhabricatorPirateEnglishTranslation.php
src/infrastructure/internationalization/translation/PhabricatorPirateEnglishTranslation.php
<?php final class PhabricatorPirateEnglishTranslation extends PhutilTranslation { public function getLocaleCode() { return 'en_P*'; } protected function getTranslations() { return array( 'Search' => 'Scour', 'Pre-Commit Review' => 'Inspect Riggins', 'Tasks and Bugs' => 'Bilge rats',...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/cluster/PhabricatorDatabaseRef.php
src/infrastructure/cluster/PhabricatorDatabaseRef.php
<?php final class PhabricatorDatabaseRef extends Phobject { const STATUS_OKAY = 'okay'; const STATUS_FAIL = 'fail'; const STATUS_AUTH = 'auth'; const STATUS_REPLICATION_CLIENT = 'replication-client'; const REPLICATION_OKAY = 'okay'; const REPLICATION_MASTER_REPLICA = 'master-replica'; const REPLICATI...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/cluster/PhabricatorDatabaseRefParser.php
src/infrastructure/cluster/PhabricatorDatabaseRefParser.php
<?php final class PhabricatorDatabaseRefParser extends Phobject { private $defaultPort = 3306; private $defaultUser; private $defaultPass; public function setDefaultPort($default_port) { $this->defaultPort = $default_port; return $this; } public function getDefaultPort() { return $this->de...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/cluster/PhabricatorClusterServiceHealthRecord.php
src/infrastructure/cluster/PhabricatorClusterServiceHealthRecord.php
<?php class PhabricatorClusterServiceHealthRecord extends Phobject { private $cacheKey; private $shouldCheck; private $isHealthy; private $upEventCount; private $downEventCount; public function __construct($cache_key) { $this->cacheKey = $cache_key; $this->readState(); } /** * Is the da...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/cluster/exception/PhabricatorClusterImpossibleWriteException.php
src/infrastructure/cluster/exception/PhabricatorClusterImpossibleWriteException.php
<?php final class PhabricatorClusterImpossibleWriteException extends PhabricatorClusterException { public function getExceptionTitle() { return pht('Impossible Cluster Write'); } }
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/cluster/exception/PhabricatorClusterNoHostForRoleException.php
src/infrastructure/cluster/exception/PhabricatorClusterNoHostForRoleException.php
<?php final class PhabricatorClusterNoHostForRoleException extends Exception { public function __construct($role) { parent::__construct(pht('Search cluster has no hosts for role "%s".', $role)); } }
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/cluster/exception/PhabricatorClusterExceptionHandler.php
src/infrastructure/cluster/exception/PhabricatorClusterExceptionHandler.php
<?php final class PhabricatorClusterExceptionHandler extends PhabricatorRequestExceptionHandler { public function getRequestExceptionHandlerPriority() { return 300000; } public function getRequestExceptionHandlerDescription() { return pht('Handles runtime problems with cluster configuration.'); } ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/cluster/exception/PhabricatorClusterStrandedException.php
src/infrastructure/cluster/exception/PhabricatorClusterStrandedException.php
<?php final class PhabricatorClusterStrandedException extends PhabricatorClusterException { public function getExceptionTitle() { return pht('Unable to Reach Any Database'); } }
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/cluster/exception/PhabricatorClusterImproperWriteException.php
src/infrastructure/cluster/exception/PhabricatorClusterImproperWriteException.php
<?php final class PhabricatorClusterImproperWriteException extends PhabricatorClusterException { public function getExceptionTitle() { return pht('Improper Cluster Write'); } }
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/cluster/exception/PhabricatorClusterException.php
src/infrastructure/cluster/exception/PhabricatorClusterException.php
<?php abstract class PhabricatorClusterException extends Exception { abstract public function getExceptionTitle(); }
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/cluster/config/PhabricatorClusterSearchConfigType.php
src/infrastructure/cluster/config/PhabricatorClusterSearchConfigType.php
<?php final class PhabricatorClusterSearchConfigType extends PhabricatorJSONConfigType { const TYPEKEY = 'cluster.search'; public function validateStoredValue( PhabricatorConfigOption $option, $value) { self::validateValue($value); } public static function validateValue($value) { $engines ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/cluster/config/PhabricatorClusterMailersConfigType.php
src/infrastructure/cluster/config/PhabricatorClusterMailersConfigType.php
<?php final class PhabricatorClusterMailersConfigType extends PhabricatorJSONConfigType { const TYPEKEY = 'cluster.mailers'; public function validateStoredValue( PhabricatorConfigOption $option, $value) { if ($value === null) { return; } if (!is_array($value)) { throw $this->n...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/cluster/config/PhabricatorClusterDatabasesConfigType.php
src/infrastructure/cluster/config/PhabricatorClusterDatabasesConfigType.php
<?php final class PhabricatorClusterDatabasesConfigType extends PhabricatorJSONConfigType { const TYPEKEY = 'cluster.databases'; public function validateStoredValue( PhabricatorConfigOption $option, $value) { foreach ($value as $index => $spec) { if (!is_array($spec)) { throw $this->...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/cluster/search/PhabricatorElasticsearchHost.php
src/infrastructure/cluster/search/PhabricatorElasticsearchHost.php
<?php final class PhabricatorElasticsearchHost extends PhabricatorSearchHost { private $version = 5; private $path = 'phabricator/'; private $protocol = 'http'; const KEY_REFS = 'search.elastic.refs'; public function setConfig($config) { $this->setRoles(idx($config, 'roles', $this->getRoles())) ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/cluster/search/PhabricatorMySQLSearchHost.php
src/infrastructure/cluster/search/PhabricatorMySQLSearchHost.php
<?php final class PhabricatorMySQLSearchHost extends PhabricatorSearchHost { public function setConfig($config) { $this->setRoles(idx($config, 'roles', array('read' => true, 'write' => true))); return $this; } /** * @return string Display name of the search host: "MySQL" */ public funct...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/cluster/search/PhabricatorSearchHost.php
src/infrastructure/cluster/search/PhabricatorSearchHost.php
<?php abstract class PhabricatorSearchHost extends Phobject { const KEY_REFS = 'cluster.search.refs'; const KEY_HEALTH = 'cluster.search.health'; protected $engine; protected $healthRecord; protected $roles = array(); protected $disabled; protected $host; protected $port; const STATUS_OKAY = 'o...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/cluster/search/PhabricatorSearchService.php
src/infrastructure/cluster/search/PhabricatorSearchService.php
<?php class PhabricatorSearchService extends Phobject { const KEY_REFS = 'cluster.search.refs'; protected $config; protected $disabled; protected $engine; protected $hosts = array(); protected $hostsConfig; protected $hostType; protected $roles = array(); const STATUS_OKAY = 'okay'; const STAT...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/testing/PhabricatorTestCase.php
src/infrastructure/testing/PhabricatorTestCase.php
<?php abstract class PhabricatorTestCase extends PhutilTestCase { const NAMESPACE_PREFIX = 'phabricator_unittest_'; /** * If true, put Lisk in process-isolated mode for the duration of the tests so * that it will establish only isolated, side-effect-free database * connections. Defaults to true. * ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/testing/fixture/PhabricatorStorageFixtureScopeGuard.php
src/infrastructure/testing/fixture/PhabricatorStorageFixtureScopeGuard.php
<?php /** * Used by unit tests to build storage fixtures. */ final class PhabricatorStorageFixtureScopeGuard extends Phobject { private $name; public function __construct($name) { $this->name = $name; execx( 'php %s upgrade --force --namespace %s', $this->getStorageBinPath(), $this->...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/testing/__tests__/PhabricatorTrivialTestCase.php
src/infrastructure/testing/__tests__/PhabricatorTrivialTestCase.php
<?php /** * Trivial example test case. */ final class PhabricatorTrivialTestCase extends PhabricatorTestCase { // NOTE: Update developer/unit_tests.diviner when updating this class! private $two; protected function willRunOneTest($test_name) { // You can execute setup steps which will run before each te...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/syntax/PhabricatorDefaultSyntaxStyle.php
src/infrastructure/syntax/PhabricatorDefaultSyntaxStyle.php
<?php final class PhabricatorDefaultSyntaxStyle extends PhabricatorSyntaxStyle { const STYLEKEY = 'default'; public function getStyleName() { return pht('Default'); } public function getStyleMap() { return array( 'hll' => 'color: {$syntax.highlighted-line}', 'c' => 'color: {$syntax.com...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/syntax/PhabricatorSyntaxStyle.php
src/infrastructure/syntax/PhabricatorSyntaxStyle.php
<?php abstract class PhabricatorSyntaxStyle extends Phobject { abstract public function getStyleName(); abstract public function getStyleMap(); final public function getStyleOrder() { return (string)id(new PhutilSortVector()) ->addInt($this->isDefaultStyle() ? 0 : 1) ->addString($this->getStyle...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/export/field/PhabricatorPHIDListExportField.php
src/infrastructure/export/field/PhabricatorPHIDListExportField.php
<?php final class PhabricatorPHIDListExportField extends PhabricatorListExportField { public function getCharacterWidth() { return 32; } }
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/export/field/PhabricatorStringExportField.php
src/infrastructure/export/field/PhabricatorStringExportField.php
<?php final class PhabricatorStringExportField extends PhabricatorExportField { public function getNaturalValue($value) { if ($value === null) { return $value; } if (!strlen($value)) { return null; } return (string)$value; } }
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/export/field/PhabricatorIntExportField.php
src/infrastructure/export/field/PhabricatorIntExportField.php
<?php final class PhabricatorIntExportField extends PhabricatorExportField { /** * @return int|null */ public function getNaturalValue($value) { if ($value === null) { return $value; } return (int)$value; } /** * @phutil-external-symbol class PHPExcel_Cell_DataType */ publi...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/export/field/PhabricatorOptionExportField.php
src/infrastructure/export/field/PhabricatorOptionExportField.php
<?php final class PhabricatorOptionExportField extends PhabricatorExportField { private $options; public function setOptions(array $options) { $this->options = $options; return $this; } public function getOptions() { return $this->options; } /** * @return array|null */ public func...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/export/field/PhabricatorStringListExportField.php
src/infrastructure/export/field/PhabricatorStringListExportField.php
<?php final class PhabricatorStringListExportField extends PhabricatorListExportField {}
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/export/field/PhabricatorIDExportField.php
src/infrastructure/export/field/PhabricatorIDExportField.php
<?php final class PhabricatorIDExportField extends PhabricatorExportField { /** * @return int */ public function getNaturalValue($value) { return (int)$value; } public function getCharacterWidth() { return 12; } }
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/export/field/PhabricatorExportField.php
src/infrastructure/export/field/PhabricatorExportField.php
<?php abstract class PhabricatorExportField extends Phobject { private $key; private $label; public function setKey($key) { $this->key = $key; return $this; } public function getKey() { return $this->key; } public function setLabel($label) { $this->label = $label; return $this; ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/export/field/PhabricatorPHIDExportField.php
src/infrastructure/export/field/PhabricatorPHIDExportField.php
<?php final class PhabricatorPHIDExportField extends PhabricatorExportField { public function getCharacterWidth() { return 32; } }
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/export/field/PhabricatorEpochExportField.php
src/infrastructure/export/field/PhabricatorEpochExportField.php
<?php final class PhabricatorEpochExportField extends PhabricatorExportField { private $zone; public function getTextValue($value) { if ($value === null) { return ''; } if (!isset($this->zone)) { $this->zone = new DateTimeZone('UTC'); } try { $date = new DateTime('@'.$va...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/export/field/PhabricatorListExportField.php
src/infrastructure/export/field/PhabricatorListExportField.php
<?php abstract class PhabricatorListExportField extends PhabricatorExportField { public function getTextValue($value) { return implode("\n", $value); } }
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/export/field/PhabricatorURIExportField.php
src/infrastructure/export/field/PhabricatorURIExportField.php
<?php final class PhabricatorURIExportField extends PhabricatorExportField {}
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false