Completed
Branch master (f7498d)
by Tomasz
07:06
created
src/Gendoria/CruftFlake/Generator.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -159,6 +159,11 @@  discard block
 block discarded – undo
159 159
         return new GeneratorStatus($this->machine, $this->lastTime, $this->sequence, (PHP_INT_SIZE === 4));
160 160
     }
161 161
 
162
+    /**
163
+     * @param double $timestamp
164
+     * @param integer $machine
165
+     * @param integer $sequence
166
+     */
162 167
     private function mintId32($timestamp, $machine, $sequence)
163 168
     {
164 169
         $hi = (int) ($timestamp / pow(2, 10));
@@ -175,6 +180,11 @@  discard block
 block discarded – undo
175 180
         return (string) $value;
176 181
     }
177 182
 
183
+    /**
184
+     * @param double $timestamp
185
+     * @param integer $machine
186
+     * @param integer $sequence
187
+     */
178 188
     private function mintId64($timestamp, $machine, $sequence)
179 189
     {
180 190
         $timestamp = (int) $timestamp;
Please login to merge, or discard this patch.
Tests/GeneratorTest.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -27,12 +27,19 @@
 block discarded – undo
27 27
         return new Generator($this->config, $this->timer);
28 28
     }
29 29
     
30
+    /**
31
+     * @param string $id
32
+     */
30 33
     private function assertId($id)
31 34
     {
32 35
         $this->assertTrue(is_string($id));
33 36
         $this->assertTrue(ctype_digit($id));
34 37
     }
35 38
     
39
+    /**
40
+     * @param string $v1
41
+     * @param string $v2
42
+     */
36 43
     private function assertReallyNotEquals($v1, $v2)
37 44
     {
38 45
         $this->assertTrue($v1 !== $v2);
Please login to merge, or discard this patch.