Page MenuHomePhabricator

Add a `phutil_count` function
ClosedPublic

Authored by joshuaspence on Sep 6 2015, 4:52 AM.
Tags
None
Referenced Files
F15507868: D14070.id34720.diff
Tue, Apr 15, 11:37 PM
F15500585: D14070.id34713.diff
Sun, Apr 13, 6:32 PM
F15495550: D14070.id34714.diff
Sun, Apr 13, 4:54 AM
F15491739: D14070.id34713.diff
Sat, Apr 12, 6:57 AM
F15490523: D14070.id34716.diff
Fri, Apr 11, 6:09 PM
F15487500: D14070.id34713.diff
Thu, Apr 10, 2:38 PM
F15486465: D14070.id34010.diff
Thu, Apr 10, 7:17 AM
F15486017: D14070.id.diff
Thu, Apr 10, 4:23 AM
Subscribers

Details

Summary

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

Test Plan

See next diff.

Diff Detail

Repository
rPHU libphutil
Branch
master
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 7927
Build 8883: [Placeholder Plan] Wait for 30 Seconds
Build 8882: arc lint + arc unit

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.