From: Siebrand Mazeland Date: Sat, 10 May 2014 08:45:53 +0000 (+0200) Subject: Pass phpcs-strict on includes/profiler/ X-Git-Tag: 1.31.0-rc.0~15774^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=1c0980ebb085ce254d0b073c80b3f8630ccdc35e;p=lhc%2Fweb%2Fwiklou.git Pass phpcs-strict on includes/profiler/ Change-Id: Ic9058a650ea0735b71b3725703d76cc62b5c9fb1 --- diff --git a/includes/profiler/Profiler.php b/includes/profiler/Profiler.php index efbdf05d76..f6bafd5d7d 100644 --- a/includes/profiler/Profiler.php +++ b/includes/profiler/Profiler.php @@ -101,8 +101,10 @@ abstract class Profiler { /** @var TransactionProfiler */ protected $trxProfiler; - /** @var Profiler */ - public static $__instance = null; // do not call this outside Profiler and ProfileSection + // @codingStandardsIgnoreStart PSR2.Classes.PropertyDeclaration.Underscore + /** @var Profiler Do not call this outside Profiler and ProfileSection */ + public static $__instance = null; + // @codingStandardsIgnoreEnd /** * @param array $params diff --git a/includes/profiler/ProfilerSimpleDB.php b/includes/profiler/ProfilerSimpleDB.php index 6911d4bfbd..38a6436f9d 100644 --- a/includes/profiler/ProfilerSimpleDB.php +++ b/includes/profiler/ProfilerSimpleDB.php @@ -105,6 +105,7 @@ class ProfilerSimpleDB extends ProfilerStandard { if ( $useTrx ) { $dbw->commit(); } - } catch ( DBError $e ) {} + } catch ( DBError $e ) { + } } } diff --git a/includes/profiler/ProfilerStub.php b/includes/profiler/ProfilerStub.php index 6de97bae25..1d3b65d261 100644 --- a/includes/profiler/ProfilerStub.php +++ b/includes/profiler/ProfilerStub.php @@ -30,16 +30,37 @@ class ProfilerStub extends Profiler { public function isStub() { return true; } + public function isPersistent() { return false; } - public function profileIn( $fn ) {} - public function profileOut( $fn ) {} - public function getOutput() {} - public function close() {} - public function logData() {} - public function getCurrentSection() { return ''; } - public function transactionWritingIn( $server, $db, $id = '' ) {} - public function transactionWritingOut( $server, $db, $id = '' ) {} - public function getRawData() { return array(); } + + public function profileIn( $fn ) { + } + + public function profileOut( $fn ) { + } + + public function getOutput() { + } + + public function close() { + } + + public function logData() { + } + + public function getCurrentSection() { + return ''; + } + + public function transactionWritingIn( $server, $db, $id = '' ) { + } + + public function transactionWritingOut( $server, $db, $id = '' ) { + } + + public function getRawData() { + return array(); + } }