Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5977455
CommentFormatterTestUtils.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
405 B
Referenced Files
None
Subscribers
None
CommentFormatterTestUtils.php
View Options
<?php
namespace
MediaWiki\Tests\Unit\CommentFormatter
;
class
CommentFormatterTestUtils
{
public
static
function
dumpArray
(
$a
)
{
$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
Sat, Oct 3, 19:55 (3 d, 20 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
fc/51/bc3f5363eba7b4af352c0ce9bf91
Default Alt Text
CommentFormatterTestUtils.php (405 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment