UIDGenerator: Misc clean up
authorTimo Tijhof <krinklemail@gmail.com>
Wed, 3 Oct 2018 23:49:53 +0000 (00:49 +0100)
committerMarko Obrovac <mobrovac@wikimedia.org>
Thu, 4 Oct 2018 10:44:17 +0000 (12:44 +0200)
commit1d0e26cf83c2e5de754aaf5016b7ac317c63325c
tree1a4aff867e7ae5fce764c638ecc0288ceb56788b
parent1472f02b364c5bd2fb5d2b25ca3e99121ad12deb
UIDGenerator: Misc clean up

Various miscellaneous clean ups with no change to any of the
logical code. This to make the next commit have a cleaner diff
for easier review.

* Make internal millitime() non-static.

* Improve documentation and add missing @covers annotations.

* Correct getTimestampedID88() documentation to state that
  only two values need to be passed, not three.
  This is significant because the Flow extension is actually
  using this method in a subclass and passes only two values.

Bug: T94522
Change-Id: I2a0c51bea58df4cc0c253c1c10de3ac383f04c8e
includes/utils/UIDGenerator.php
tests/phpunit/includes/utils/UIDGeneratorTest.php