<exclude name="PSR2.Methods.MethodDeclaration.Underscore"/>
<exclude name="MediaWiki.NamingConventions.PrefixedGlobalFunctions.wfPrefix"/>
<exclude name="Squiz.Classes.ValidClassName.NotCamelCaps"/>
- <exclude name="MediaWiki.WhiteSpace.SpaceAfterControlStructure.Incorrect"/>
<exclude name="Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed"/>
</rule>
<file>.</file>
*/
public function testRunningStatAccuracy() {
$rstat = new RunningStat();
- foreach( $this->points as $point ) {
+ foreach ( $this->points as $point ) {
$rstat->push( $point );
}
public function testRunningStatMerge() {
$expected = new RunningStat();
- foreach( $this->points as $point ) {
+ foreach ( $this->points as $point ) {
$expected->push( $point );
}
// Accumulate the first half into one RunningStat object
$first = new RunningStat();
- foreach( $sets[0] as $point ) {
+ foreach ( $sets[0] as $point ) {
$first->push( $point );
}
// Accumulate the second half into another RunningStat object
$second = new RunningStat();
- foreach( $sets[1] as $point ) {
+ foreach ( $sets[1] as $point ) {
$second->push( $point );
}