aboutsummaryrefslogtreecommitdiffstats
path: root/includes/libs/stats
diff options
context:
space:
mode:
authorUmherirrender <umherirrender_de.wp@web.de>2017-08-20 13:20:59 +0200
committerUmherirrender <umherirrender_de.wp@web.de>2017-08-20 13:20:59 +0200
commit3f1a52805e3cf801eda0357ee236de6b49a31c85 (patch)
tree90a7ad1b8993c56f4c95bbeb572908450530c9c3 /includes/libs/stats
parent38999cc27a5b38050472532635027802c13a1d90 (diff)
downloadmediawikicore-3f1a52805e3cf801eda0357ee236de6b49a31c85.tar.gz
mediawikicore-3f1a52805e3cf801eda0357ee236de6b49a31c85.zip
Use short type bool/int in param documentation
Enable the phpcs sniffs for this and used phpcbf Change-Id: Iaa36687154ddd2bf663b9dd519f5c99409d37925
Diffstat (limited to 'includes/libs/stats')
-rw-r--r--includes/libs/stats/BufferingStatsdDataFactory.php2
-rw-r--r--includes/libs/stats/IBufferingStatsdDataFactory.php2
-rw-r--r--includes/libs/stats/NullStatsdDataFactory.php4
-rw-r--r--includes/libs/stats/SamplingStatsdClient.php2
4 files changed, 5 insertions, 5 deletions
diff --git a/includes/libs/stats/BufferingStatsdDataFactory.php b/includes/libs/stats/BufferingStatsdDataFactory.php
index 73c6a8f55ca1..d75d9c0b1ec7 100644
--- a/includes/libs/stats/BufferingStatsdDataFactory.php
+++ b/includes/libs/stats/BufferingStatsdDataFactory.php
@@ -101,7 +101,7 @@ class BufferingStatsdDataFactory extends StatsdDataFactory implements IBuffering
/**
* Check whether this data factory has any data.
- * @return boolean
+ * @return bool
*/
public function hasData() {
return !empty( $this->buffer );
diff --git a/includes/libs/stats/IBufferingStatsdDataFactory.php b/includes/libs/stats/IBufferingStatsdDataFactory.php
index 64ee2676f6f6..f77b26cefb54 100644
--- a/includes/libs/stats/IBufferingStatsdDataFactory.php
+++ b/includes/libs/stats/IBufferingStatsdDataFactory.php
@@ -10,7 +10,7 @@ use Liuggio\StatsdClient\Factory\StatsdDataFactoryInterface;
interface IBufferingStatsdDataFactory extends StatsdDataFactoryInterface {
/**
* Check whether this data factory has any data.
- * @return boolean
+ * @return bool
*/
public function hasData();
diff --git a/includes/libs/stats/NullStatsdDataFactory.php b/includes/libs/stats/NullStatsdDataFactory.php
index 75d6b9e7eb0c..73697514e56d 100644
--- a/includes/libs/stats/NullStatsdDataFactory.php
+++ b/includes/libs/stats/NullStatsdDataFactory.php
@@ -76,7 +76,7 @@ class NullStatsdDataFactory implements IBufferingStatsdDataFactory {
* 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
*/
@@ -108,7 +108,7 @@ class NullStatsdDataFactory implements IBufferingStatsdDataFactory {
/**
* Check whether this data factory has any data.
- * @return boolean
+ * @return bool
*/
public function hasData() {
return false;
diff --git a/includes/libs/stats/SamplingStatsdClient.php b/includes/libs/stats/SamplingStatsdClient.php
index 4db2b6072c73..1da9468d8086 100644
--- a/includes/libs/stats/SamplingStatsdClient.php
+++ b/includes/libs/stats/SamplingStatsdClient.php
@@ -77,7 +77,7 @@ class SamplingStatsdClient extends StatsdClient {
* strings are not allowed here as sampleData requires a StatsdDataInterface
* @param int $sampleRate
*
- * @return integer the data sent in bytes
+ * @return int the data sent in bytes
*/
public function send( $data, $sampleRate = 1 ) {
if ( !is_array( $data ) ) {