Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92764119
DifferentialLinesFieldSpecification.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
Sat, Nov 23, 12:57
Size
736 B
Mime Type
text/x-php
Expires
Mon, Nov 25, 12:57 (2 d)
Engine
blob
Format
Raw Data
Handle
22507568
Attached To
rPH Phabricator
DifferentialLinesFieldSpecification.php
View Options
<?php
final
class
DifferentialLinesFieldSpecification
extends
DifferentialFieldSpecification
{
public
function
shouldAppearOnRevisionView
()
{
return
true
;
}
public
function
renderLabelForRevisionView
()
{
return
'Lines:'
;
}
public
function
renderValueForRevisionView
()
{
$diff
=
$this
->
getDiff
();
return
number_format
(
$diff
->
getLineCount
());
}
public
function
shouldAppearOnRevisionList
()
{
return
true
;
}
public
function
renderHeaderForRevisionList
()
{
return
'Lines'
;
}
public
function
getColumnClassForRevisionList
()
{
return
'n'
;
}
public
function
renderValueForRevisionList
(
DifferentialRevision
$revision
)
{
return
number_format
(
$revision
->
getLineCount
());
}
}
Event Timeline
Log In to Comment