Skip to content

Commit cccc7b4

Browse files
authored
Merge pull request hnw#39 from tenkoma/improve-comment
Improve comment
2 parents 0dfa27e + c71f28a commit cccc7b4

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

stubs/Timecop.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,18 @@ function timecop_freeze($time) {}
1919
function timecop_travel($time) {}
2020

2121
/**
22+
* Accelerate time with specified scale
23+
*
2224
* @param float $scale
25+
*
26+
* @return bool
2327
*/
2428
function timecop_scale($scale) {}
2529

2630
/**
2731
* Return from time travel to current time
32+
*
33+
* @return bool
2834
*/
2935
function timecop_return() {}
3036

@@ -49,12 +55,18 @@ public static function freeze($time) {}
4955
public static function travel($time) {}
5056

5157
/**
58+
* Accelerate time with specified scale
59+
*
5260
* @param float $scale
61+
*
62+
* @return bool
5363
*/
5464
public static function scale($scale) {}
5565

5666
/**
5767
* Return from time travel to current time
68+
*
69+
* @return bool
5870
*/
5971
public static function return() {}
6072
}

timecop_php5.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ PHP_FUNCTION(timecop_travel)
11081108
/* }}} */
11091109

11101110
/* {{{ proto int timecop_scale(long scale)
1111-
Time travel to specified timestamp */
1111+
Accelerate time with specified scale */
11121112
PHP_FUNCTION(timecop_scale)
11131113
{
11141114
long scale;

timecop_php7.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,7 @@ PHP_FUNCTION(timecop_travel)
10351035
/* }}} */
10361036

10371037
/* {{{ proto int timecop_scale(long scale)
1038-
Time travel to specified timestamp */
1038+
Accelerate time with specified scale */
10391039
PHP_FUNCTION(timecop_scale)
10401040
{
10411041
zend_long scale;

0 commit comments

Comments
 (0)