Cleaned up for inspection (coding style, PHPDoc)
This commit is contained in:
1 parent
68d6154a5e
commit
edb6941eb7
7 files changed
+117
-36
No files matched your search
@@ -127,6 +127,15 @@ class Laps {
|
||||
return $query;
|
||||
}
|
||||
|
||||
/**
|
||||
* Capture start time of HTTP request
|
||||
*
|
||||
* @param boolean $false
|
||||
* @param array $args
|
||||
* @param string $url
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
static function pre_http_request( $false, $args, $url ) {
|
||||
|
||||
self::$stopwatch->start( $url, 'http' );
|
||||
@@ -134,6 +143,17 @@ class Laps {
|
||||
return $false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Capture end time of HTTP request
|
||||
*
|
||||
* @param array|\WP_Error $response
|
||||
* @param string $type
|
||||
* @param object $class
|
||||
* @param array $args
|
||||
* @param string $url
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
static function http_api_debug( $response, $type, $class, $args, $url ) {
|
||||
|
||||
self::$stopwatch->stop( $url );
|
||||
|
||||
Reference in new issue
Block a user