Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96244337
DiffusionCommitResultBucket.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Dec 24, 02:43
Size
679 B
Mime Type
text/x-php
Expires
Thu, Dec 26, 02:43 (1 d, 9 h)
Engine
blob
Format
Raw Data
Handle
23142174
Attached To
rPH Phabricator
DiffusionCommitResultBucket.php
View Options
<?php
abstract
class
DiffusionCommitResultBucket
extends
PhabricatorSearchResultBucket
{
public
static
function
getAllResultBuckets
()
{
return
id
(
new
PhutilClassMapQuery
())
->
setAncestorClass
(
__CLASS__
)
->
setUniqueMethod
(
'getResultBucketKey'
)
->
execute
();
}
protected
function
hasAuditorsWithStatus
(
PhabricatorRepositoryCommit
$commit
,
array
$phids
,
array
$statuses
)
{
foreach
(
$commit
->
getAudits
()
as
$audit
)
{
if
(!
isset
(
$phids
[
$audit
->
getAuditorPHID
()]))
{
continue
;
}
if
(!
isset
(
$statuses
[
$audit
->
getAuditStatus
()]))
{
continue
;
}
return
true
;
}
return
false
;
}
}
Event Timeline
Log In to Comment