Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4090281
CommentFormatterTestUtils.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
419 B
Referenced Files
None
Subscribers
None
CommentFormatterTestUtils.php
View Options
<?php
namespace
MediaWiki\Tests\Unit\CommentFormatter
;
class
CommentFormatterTestUtils
{
public
static
function
dumpArray
(
array
$a
):
string
{
$s
=
''
;
foreach
(
$a
as
$k
=>
$v
)
{
if
(
$v
===
null
)
{
continue
;
}
if
(
$s
!==
''
)
{
$s
.=
', '
;
}
if
(
$v
===
true
)
{
$s
.=
$k
;
}
elseif
(
$v
===
false
)
{
$s
.=
"!$k"
;
}
else
{
$s
.=
"$k=$v"
;
}
}
return
$s
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 18 2026, 11:00 (5 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
cc/3c/024ab3c15083678c01c48f117d3e
Default Alt Text
CommentFormatterTestUtils.php (419 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment