Skip to content

Commit

Permalink
Improve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tenkoma committed Jun 2, 2018
1 parent 0dfa27e commit c71f28a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions stubs/Timecop.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,18 @@ function timecop_freeze($time) {}
function timecop_travel($time) {}

/**
* Accelerate time with specified scale
*
* @param float $scale
*
* @return bool
*/
function timecop_scale($scale) {}

/**
* Return from time travel to current time
*
* @return bool
*/
function timecop_return() {}

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

/**
* Accelerate time with specified scale
*
* @param float $scale
*
* @return bool
*/
public static function scale($scale) {}

/**
* Return from time travel to current time
*
* @return bool
*/
public static function return() {}
}
Expand Down
2 changes: 1 addition & 1 deletion timecop_php5.c
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@ PHP_FUNCTION(timecop_travel)
/* }}} */

/* {{{ proto int timecop_scale(long scale)
Time travel to specified timestamp */
Accelerate time with specified scale */
PHP_FUNCTION(timecop_scale)
{
long scale;
Expand Down
2 changes: 1 addition & 1 deletion timecop_php7.c
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@ PHP_FUNCTION(timecop_travel)
/* }}} */

/* {{{ proto int timecop_scale(long scale)
Time travel to specified timestamp */
Accelerate time with specified scale */
PHP_FUNCTION(timecop_scale)
{
zend_long scale;
Expand Down

0 comments on commit c71f28a

Please sign in to comment.