Page MenuHomePhabricator

Add a `phutil_count` function
ClosedPublic

Authored by joshuaspence on Sep 6 2015, 4:52 AM.
Tags
None
Referenced Files
F15443079: D14070.diff
Thu, Mar 27, 2:11 AM
F15442911: D14070.id.diff
Thu, Mar 27, 1:13 AM
F15439157: D14070.id34713.diff
Wed, Mar 26, 6:03 AM
F15429599: D14070.id.diff
Mon, Mar 24, 3:06 AM
F15424672: D14070.id34720.diff
Sat, Mar 22, 11:48 PM
F15423671: D14070.id34010.diff
Sat, Mar 22, 4:37 PM
F15422813: D14070.id34714.diff
Sat, Mar 22, 10:54 AM
F15420252: D14070.id34720.diff
Fri, Mar 21, 12:34 PM
Subscribers

Details

Summary

This function is a shorthand for new PhutilNumber(count($x)).

Test Plan

See next diff.

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Add a `phutil_number` function.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
avivey retitled this revision from Add a `phutil_number` function to Add a `phutil_count` function.Sep 6 2015, 5:18 AM
avivey edited edge metadata.
epriestley edited edge metadata.

Maybe pht_count()?

Maybe let it take take an integer too?

src/internationalization/pht.php
26

Function spelled wrong (phnutil should be phutil).

This revision is now accepted and ready to land.Sep 6 2015, 3:05 PM
joshuaspence marked an inline comment as done.
joshuaspence edited edge metadata.

Fix typo

This revision was automatically updated to reflect the committed changes.