X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Flibs%2Fstats%2FNullStatsdDataFactory.php;h=73697514e56d376b0e9ca29ea1fec030e85a0bc5;hp=4fa0248e6045135aaa5fa5a9f175e43ce13474a7;hb=d455aa29a685971c8191bc38383f1514e7cae806;hpb=3cb14f56bdf3271769a5866f9dcaad56bf873aea diff --git a/includes/libs/stats/NullStatsdDataFactory.php b/includes/libs/stats/NullStatsdDataFactory.php index 4fa0248e60..73697514e5 100644 --- a/includes/libs/stats/NullStatsdDataFactory.php +++ b/includes/libs/stats/NullStatsdDataFactory.php @@ -8,7 +8,7 @@ use Liuggio\StatsdClient\Factory\StatsdDataFactoryInterface; * @author Addshore * @since 1.27 */ -class NullStatsdDataFactory implements MediawikiStatsdDataFactory { +class NullStatsdDataFactory implements IBufferingStatsdDataFactory { /** * This function creates a 'timing' StatsdData. @@ -53,7 +53,6 @@ class NullStatsdDataFactory implements MediawikiStatsdDataFactory { * This function creates a 'increment' StatsdData object. * * @param string|array $key The metric(s) to increment. - * @param float|1 $sampleRate The rate (0-1) for sampling. * * @return array */ @@ -66,7 +65,6 @@ class NullStatsdDataFactory implements MediawikiStatsdDataFactory { * * * @param string|array $key The metric(s) to decrement. - * @param float|1 $sampleRate The rate (0-1) for sampling. * * @return mixed */ @@ -78,7 +76,7 @@ class NullStatsdDataFactory implements MediawikiStatsdDataFactory { * This function creates a 'updateCount' StatsdData object. * * @param string|array $key The metric(s) to decrement. - * @param integer $delta The delta to add to the each metric + * @param int $delta The delta to add to the each metric * * @return mixed */ @@ -110,7 +108,7 @@ class NullStatsdDataFactory implements MediawikiStatsdDataFactory { /** * Check whether this data factory has any data. - * @return boolean + * @return bool */ public function hasData() { return false;