aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance/benchmarks
diff options
context:
space:
mode:
authorReedy <reedy@wikimedia.org>2020-05-19 22:49:33 +0100
committerTimo Tijhof <krinklemail@gmail.com>2020-05-20 03:33:39 +0100
commit3b94e2af1c83796756ed330df234d5abcb34e486 (patch)
tree1c6bc4464b80f258e16c1a069882d33079040a73 /maintenance/benchmarks
parentdadd8687a834760a22556033a0a57fa3409e51d5 (diff)
downloadmediawikicore-3b94e2af1c83796756ed330df234d5abcb34e486.tar.gz
mediawikicore-3b94e2af1c83796756ed330df234d5abcb34e486.zip
Narrow MediaWiki.Commenting.FunctionComment.WrongStyle
Change-Id: I95d1195f09a806910559a0c5106d472addd3dec4
Diffstat (limited to 'maintenance/benchmarks')
-rw-r--r--maintenance/benchmarks/bench_HTTP_HTTPS.php8
-rw-r--r--maintenance/benchmarks/bench_if_switch.php8
-rw-r--r--maintenance/benchmarks/bench_wfIsWindows.php8
3 files changed, 18 insertions, 6 deletions
diff --git a/maintenance/benchmarks/bench_HTTP_HTTPS.php b/maintenance/benchmarks/bench_HTTP_HTTPS.php
index cd0939fd521a..71d86711d8c6 100644
--- a/maintenance/benchmarks/bench_HTTP_HTTPS.php
+++ b/maintenance/benchmarks/bench_HTTP_HTTPS.php
@@ -51,12 +51,16 @@ class BenchHttpHttps extends Benchmarker {
get( "$proto://localhost/", [], __METHOD__ );
}
- // bench function 1
+ /**
+ * bench function 1
+ */
protected function getHTTP() {
$this->doRequest( 'http' );
}
- // bench function 2
+ /**
+ * bench function 2
+ */
protected function getHTTPS() {
$this->doRequest( 'https' );
}
diff --git a/maintenance/benchmarks/bench_if_switch.php b/maintenance/benchmarks/bench_if_switch.php
index e084661ad3c1..a07af8685cab 100644
--- a/maintenance/benchmarks/bench_if_switch.php
+++ b/maintenance/benchmarks/bench_if_switch.php
@@ -44,7 +44,9 @@ class BenchIfSwitch extends Benchmarker {
] );
}
- // bench function 1
+ /**
+ * bench function 1
+ */
protected function doElseIf() {
$a = 'z';
if ( $a == 'a' ) {
@@ -67,7 +69,9 @@ class BenchIfSwitch extends Benchmarker {
}
}
- // bench function 2
+ /**
+ * bench function 2
+ */
protected function doSwitch() {
$a = 'z';
switch ( $a ) {
diff --git a/maintenance/benchmarks/bench_wfIsWindows.php b/maintenance/benchmarks/bench_wfIsWindows.php
index 87de58d870ce..414eea3208bb 100644
--- a/maintenance/benchmarks/bench_wfIsWindows.php
+++ b/maintenance/benchmarks/bench_wfIsWindows.php
@@ -48,12 +48,16 @@ class BenchWfIsWindows extends Benchmarker {
return substr( php_uname(), 0, 7 ) == 'Windows';
}
- // bench function 1
+ /**
+ * @return bool
+ */
protected function wfIsWindows() {
return self::is_win();
}
- // bench function 2
+ /**
+ * @return bool
+ */
protected function wfIsWindowsCached() {
static $isWindows = null;
if ( $isWindows == null ) {