@@ -26,6 +26,7 @@ discard block |
||
| 26 | 26 | * @see MediaWiki::wfGetCaller |
| 27 | 27 | * @since 2.0 |
| 28 | 28 | * |
| 29 | + * @param integer $depth |
|
| 29 | 30 | * @return $string |
| 30 | 31 | */ |
| 31 | 32 | public function getCaller( $depth = null ) { |
@@ -44,6 +45,7 @@ discard block |
||
| 44 | 45 | * @see MediaWiki::wfGetCallers |
| 45 | 46 | * @since 2.0 |
| 46 | 47 | * |
| 48 | + * @param integer $depth |
|
| 47 | 49 | * @return array |
| 48 | 50 | */ |
| 49 | 51 | public function getCallers( $depth = null ) { |
@@ -15,7 +15,8 @@ |
||
| 15 | 15 | /** |
| 16 | 16 | * @since 1.0 |
| 17 | 17 | * |
| 18 | - * @param ContainerLoader $containerLoader |
|
| 18 | + * @param ContainerLoader $containerBuilder |
|
| 19 | + * @return void |
|
| 19 | 20 | */ |
| 20 | 21 | public function register( ContainerBuilder $containerBuilder ); |
| 21 | 22 | |
@@ -211,6 +211,9 @@ |
||
| 211 | 211 | throw new ServiceTypeMismatchException( $serviceName, $this->expectedReturnTypeByHandler[$serviceName], ( is_object( $instance ) ? get_class( $instance ) : $instance ) ); |
| 212 | 212 | } |
| 213 | 213 | |
| 214 | + /** |
|
| 215 | + * @param string $serviceName |
|
| 216 | + */ |
|
| 214 | 217 | private function getReturnValueFromSingletonFor( $serviceName, $parameters ) { |
| 215 | 218 | |
| 216 | 219 | $instance = null; |
@@ -24,7 +24,6 @@ discard block |
||
| 24 | 24 | /** |
| 25 | 25 | * @since 2.0 |
| 26 | 26 | * |
| 27 | - * @param CallbackContainer|null $callbackContainer |
|
| 28 | 27 | * @param BacktraceSniffer|null $backtraceSniffer |
| 29 | 28 | * @param CallFuncMemorySniffer|null $callFuncMemorySniffer |
| 30 | 29 | * |
@@ -51,7 +50,6 @@ discard block |
||
| 51 | 50 | /** |
| 52 | 51 | * @since 2.0 |
| 53 | 52 | * |
| 54 | - * @param ContainerBuilder|null $callbackContainer |
|
| 55 | 53 | * |
| 56 | 54 | * @return ServicesManager |
| 57 | 55 | */ |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | /** |
| 77 | 77 | * @since 2.0 |
| 78 | 78 | * |
| 79 | - * @return float |
|
| 79 | + * @return integer |
|
| 80 | 80 | */ |
| 81 | 81 | public function getTimeUsed() { |
| 82 | 82 | return $this->time; |
@@ -17,6 +17,9 @@ |
||
| 17 | 17 | $this->addCallbackHandlers( $containerBuilder ); |
| 18 | 18 | } |
| 19 | 19 | |
| 20 | + /** |
|
| 21 | + * @param ContainerBuilder $containerBuilder |
|
| 22 | + */ |
|
| 20 | 23 | private function addCallbackHandlers( $containerBuilder ) { |
| 21 | 24 | |
| 22 | 25 | $containerBuilder->registerCallback( 'Foo', function( $containerBuilder ) { |
@@ -163,6 +163,9 @@ discard block |
||
| 163 | 163 | return $instance; |
| 164 | 164 | } |
| 165 | 165 | |
| 166 | + /** |
|
| 167 | + * @param string $serviceName |
|
| 168 | + */ |
|
| 166 | 169 | private function initLog( $serviceName ) { |
| 167 | 170 | |
| 168 | 171 | if ( isset( $this->logs[$serviceName] ) ) { |
@@ -214,6 +217,9 @@ discard block |
||
| 214 | 217 | return json_encode( $this->logs, $flag ); |
| 215 | 218 | } |
| 216 | 219 | |
| 220 | + /** |
|
| 221 | + * @param string $type |
|
| 222 | + */ |
|
| 217 | 223 | private function calcMedian( $type, $serviceName, $record, $count ) { |
| 218 | 224 | if ( isset( $record[$type] ) && $count > 0 ) { |
| 219 | 225 | $this->logs[$serviceName][$type . '-median'] = array_sum( $record[$type] ) / $count; |